RC3 trouble?
Neal P. Murphy
Tue Nov 07 04:48:01 2017
I got ip6tables working, and tried RC3, but there's little joy in Mudville. (I follow the list here, but I may have missed/forgotten some syntax and other changes.)
The main errors that caught my eye:
- unknown options
- wrong iaid on eth3 (I suspect it should be ...7d, but previous versions would only work with ...7a)
- parse error on ia_pd (?)
Per Smoothwall, eth0, eth1, eth2 are 'internal' nets, and eth3 is internet. ISP is Comcrash and has been happy to give me a /60 in the past.
I hope it's just that my config is outdated.
Neal
This conf worked well before (v6 and maybe early v7). I wrote a script that generates the .conf from a template; it uses data it finds in the system or sensible defaults for items not found.
----
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
duid
# Persist interface configuration when dhcpcd exits.
persistent
# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
# Some interface drivers reset when changing the MTU so disabled by default.
#option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# Generate Stable Private IPv6 Addresses instead of hardware based ones
slaac private
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname, hostname, resolv.conf, ntp.conf, timezone, wpa_supplicant
# Use smoothie's script
script /etc/rc.d/rc.update6red
allowinterfaces eth0 eth1 eth2 eth3
denyinterfaces lo ipsec0 ipsec1
debug
ipv6only
ipv6ra_own
ipv6ra_own_default
leasetime 31622400
nodhcp
nodhcp6
noipv6rs
logfile /var/log/dhcpcd6.log
interface eth0
iaid 4b:17:f2:7a
interface eth1
iaid 4b:17:f2:7b
interface eth2
iaid 4b:17:f2:7c
interface eth3
dhcp6
ipv6rs
iaid 4b:17:f2:7d
ia_na 4b:17:f2:7d
ia_pd 4b:17:f2:7a/2601:5ca:4280:170::/60 eth0/1/64 eth1/2/64 eth2/3/64
----
Here's the output of RC3:
----
unknown option: ipv6ra_own
unknown option: ipv6ra_own_default
dhcpcd-7.0.0-rc3 starting
unknown option: ipv6ra_own
unknown option: ipv6ra_own_default
unknown option: ipv6ra_own
unknown option: ipv6ra_own_default
unknown option: ipv6ra_own
unknown option: ipv6ra_own_default
unknown option: ipv6ra_own
unknown option: ipv6ra_own_default
eth3: if_disable_autolinklocal: Operation not supported
eth0: executing `/etc/rc.d/rc.update6red' PREINIT
eth0: executing `/etc/rc.d/rc.update6red' CARRIER
eth1: executing `/etc/rc.d/rc.update6red' PREINIT
eth1: executing `/etc/rc.d/rc.update6red' NOCARRIER
eth2: executing `/etc/rc.d/rc.update6red' PREINIT
eth2: executing `/etc/rc.d/rc.update6red' CARRIER
eth3: executing `/etc/rc.d/rc.update6red' PREINIT
eth3: executing `/etc/rc.d/rc.update6red' CARRIER
DUID 00:01:00:01:21:92:aa:19:00:90:0b:17:f2:7d
eth0: IAID 4b:17:f2:7a
eth2: IAID 4b:17:f2:7c
eth3: IAID 4b:17:f2:7d
eth3: IAID 4b:17:f2:7a
eth3: IAID conflicts with one assigned to eth0
eth3: delaying IPv6 router solicitation for 0.8 seconds
eth3: reading lease `/var/db/dhcpcd/eth3.lease6'
eth3: soliciting a DHCPv6 lease
eth3: delaying SOLICIT6 (xid 0x7bd156), next in 0.3 seconds
eth1: waiting for carrier
eth3: broadcasting SOLICIT6 (xid 0x7bd156), next in 1.0 seconds
eth3: ADV 2001:558:6036:65:55fe:87a8:c66a:fc18/128 from fe80::201:5cff:fe8e:ea46
eth3: broadcasting REQUEST6 (xid 0xd69aac), next in 1.1 seconds
eth3: accepted reconfigure key
eth3: REPLY6 received from fe80::201:5cff:fe8e:ea46
eth3: adding address 2001:558:6036:65:55fe:87a8:c66a:fc18/128
eth3: pltime 4054 seconds, vltime 4054 seconds
ipv6_addaddr1: Invalid argument
eth3: renew in 2027, rebind in 3243, expire in 4054 seconds
lo: adding reject route to 2601:5ca:4400:d65::/64
eth3: writing lease `/var/db/dhcpcd/eth3.lease6'
eth3: delegated prefix 2601:5ca:4400:d65::/64
eth0: invalid prefix 2601:5ca:4400:d65::/64 + 1/64: Numerical result out of range
eth2: invalid prefix 2601:5ca:4400:d65::/64 + 3/64: Numerical result out of range
eth1: has no carrier, cannot delegate addresses
eth3: executing `/etc/rc.d/rc.update6red' BOUND6
..DHCP6 lease bound (BOUND6) and prefix delegated; update RED6 info
RTNETLINK answers: File exists
forking to background
forked to background, child pid 8964
----
Here're the resulting addresses, obfuscated where desired; eth1 is not connected:
----
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb state UP group default qlen 1000
link/ether 00:90:0b:17:f2:7a brd ff:ff:ff:ff:ff:ff
inet 10.230.30.1/24 scope global eth0
inet6 fe80::290:bff:fe17:f27a/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc htb state DOWN group default qlen 1000
link/ether 00:90:0b:17:f2:7b brd ff:ff:ff:ff:ff:ff
inet 10.221.30.1/24 scope global eth1
inet6 fe80::60b5:c420:2f76:c7f3/64 scope link tentative
valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb state UP group default qlen 1000
link/ether 00:90:0b:17:f2:7c brd ff:ff:ff:ff:ff:ff
inet 10.212.30.1/24 scope global eth2
inet6 fe80::290:bff:fe17:f27c/64 scope link
valid_lft forever preferred_lft forever
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb state UP group default qlen 1000
link/ether 00:90:0b:17:f2:7d brd ff:ff:ff:ff:ff:ff
inet w.x.y.z/22 brd 255.255.255.255 scope global eth3
inet6 2601:5ca:4400::1/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::290:bff:fe17:f27d/64 scope link
valid_lft forever preferred_lft forever
----
Archive administrator: postmaster@marples.name