Rhialto
2016-02-04 20:20:38 UTC
Since yesterday I have a new arrangemet wrt my IPv6 connection, and I'm
trying to use dhcpcd to manage the addresses tat are assigned to me from
my provider (xs4all.nl). They do native IPv6 via Fritz!Box modems and
(V)VDSL.
Little schematic:
.--------. .-----------. .------.
| xs4all +------+ Fritz!Box +-----re1+ Main +re0---- local network
`--------' `-----------' `------'
So I thought I'd use the example give in the manual page,
dhcpcd.conf(5):
noipv6rs # disable routing solicitation
denyinterfaces eth2 # Don't touch eth2 at all
interface eth0
ipv6rs # enable routing solicitation get the
# default IPv6 route
ia_na 1 # request an IPv6 address
ia_pd 2 eth1/0 # get a /64 and assign it to eth1
This didn't work at all! And when it did things, it did them wrong.
(Of course I adjusted for my interfaces).
It took me a while to realise that this is a devilishly deceptive
example. dhcpcd does not allow end-of-line comments!
That surely should be made clearer in the manual, closer to the example,
and not just the line near the start "Blank lines and lines starting
with # are ignored.".
Now that I've come past this hurdle, after some time (about 40 minutes),
I get syslog messages like in the subject:
Feb 4 20:51:48 murthe dhcpcd[10390]: re1: DHCPv6 REPLY: iana not found
Around the same time, ifconfig shows my IPv6 address has gone
deprecated.
Any idea what's wrong?
This is what gets logged when I restart dhcpcd manually,
and it includes another one of those "iana not found" messages:
Feb 4 20:57:17 murthe dhcpcd[1617]: version 6.7.1 starting
Feb 4 20:57:17 murthe dhcpcd[1617]: DUID xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Feb 4 20:57:17 murthe dhcpcd[1617]: re0: IAID xxxxxxxxxxx
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: IAID xxxxxxxxxxx
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: IAID xxxxxxxxxxx
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: IAID xxxxxxxxxxx
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: creating pseudo interface to handle Prefix Delegation
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: confirming prior DHCPv6 lease
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: rebinding prior DHCPv6 lease
Feb 4 20:57:18 murthe dhcpcd[1617]: re1: rebinding lease of 192.168.178.20
Feb 4 20:57:18 murthe dhcpcd[1617]: re1: changing host route to 192.168.178.20 via 127.0.0.1
Feb 4 20:57:18 murthe dhcpcd[1617]: re1: changing route to 192.168.178.0/24
Feb 4 20:57:18 murthe dhcpcd[1617]: re1: changing default route via 192.168.178.1
Feb 4 20:57:18 murthe dhcpcd[1617]: forked to background, child pid 11370
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: removing default route via 192.168.178.1
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: DHCPv6 REPLY: iana not found
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: soliciting a DHCPv6 lease
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: soliciting an IPv6 router
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: Router Advertisement from fe80::xxxxxxxxxxxeee:a54b
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: adding address 2001:984:4b2a:1:xxxxxxxxxxx871:2a5c/64
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: adding address 2001:984:4b2a:1:xxxxxxxxxxxd00:3aa4/64
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: adding route to 2001:984:4b2a:1::/64
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: adding default route via fe80::xxxxxxxxxxxeee:a54b
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: REPLY6 received from fe80::xxxxxxxxxxxeee:a54b
Feb 4 20:57:18 murthe dhcpcd[11370]: re0: adding address 2001:xxxxxxxxxxx::1/64
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: renew in 1800 seconds, rebind in 2880 seconds
Feb 4 20:57:18 murthe dhcpcd[11370]: re0: adding route to 2001:xxxxxxxxxxx::/64
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: REPLY6 received from fe80::xxxxxxxxxxxeee:a54b
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: adding address 2001:984:4b2a:xxxxxxxxxxxfe1f:968e/128
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: renew in 1800 seconds, rebind in 2880 seconds
Feb 4 21:05:18 murthe dhcpcd[11370]: re1: Router Advertisement from fe80::xxxxxxxxxxxeee:a54b
Feb 4 21:13:57 murthe dhcpcd[11370]: re1: Router Advertisement from fe80::xxxxxxxxxxxeee:a54b
-Olaf.
trying to use dhcpcd to manage the addresses tat are assigned to me from
my provider (xs4all.nl). They do native IPv6 via Fritz!Box modems and
(V)VDSL.
Little schematic:
.--------. .-----------. .------.
| xs4all +------+ Fritz!Box +-----re1+ Main +re0---- local network
`--------' `-----------' `------'
So I thought I'd use the example give in the manual page,
dhcpcd.conf(5):
noipv6rs # disable routing solicitation
denyinterfaces eth2 # Don't touch eth2 at all
interface eth0
ipv6rs # enable routing solicitation get the
# default IPv6 route
ia_na 1 # request an IPv6 address
ia_pd 2 eth1/0 # get a /64 and assign it to eth1
This didn't work at all! And when it did things, it did them wrong.
(Of course I adjusted for my interfaces).
It took me a while to realise that this is a devilishly deceptive
example. dhcpcd does not allow end-of-line comments!
That surely should be made clearer in the manual, closer to the example,
and not just the line near the start "Blank lines and lines starting
with # are ignored.".
Now that I've come past this hurdle, after some time (about 40 minutes),
I get syslog messages like in the subject:
Feb 4 20:51:48 murthe dhcpcd[10390]: re1: DHCPv6 REPLY: iana not found
Around the same time, ifconfig shows my IPv6 address has gone
deprecated.
Any idea what's wrong?
This is what gets logged when I restart dhcpcd manually,
and it includes another one of those "iana not found" messages:
Feb 4 20:57:17 murthe dhcpcd[1617]: version 6.7.1 starting
Feb 4 20:57:17 murthe dhcpcd[1617]: DUID xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Feb 4 20:57:17 murthe dhcpcd[1617]: re0: IAID xxxxxxxxxxx
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: IAID xxxxxxxxxxx
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: IAID xxxxxxxxxxx
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: IAID xxxxxxxxxxx
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: creating pseudo interface to handle Prefix Delegation
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: confirming prior DHCPv6 lease
Feb 4 20:57:17 murthe dhcpcd[1617]: re1: rebinding prior DHCPv6 lease
Feb 4 20:57:18 murthe dhcpcd[1617]: re1: rebinding lease of 192.168.178.20
Feb 4 20:57:18 murthe dhcpcd[1617]: re1: changing host route to 192.168.178.20 via 127.0.0.1
Feb 4 20:57:18 murthe dhcpcd[1617]: re1: changing route to 192.168.178.0/24
Feb 4 20:57:18 murthe dhcpcd[1617]: re1: changing default route via 192.168.178.1
Feb 4 20:57:18 murthe dhcpcd[1617]: forked to background, child pid 11370
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: removing default route via 192.168.178.1
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: DHCPv6 REPLY: iana not found
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: soliciting a DHCPv6 lease
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: soliciting an IPv6 router
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: Router Advertisement from fe80::xxxxxxxxxxxeee:a54b
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: adding address 2001:984:4b2a:1:xxxxxxxxxxx871:2a5c/64
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: adding address 2001:984:4b2a:1:xxxxxxxxxxxd00:3aa4/64
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: adding route to 2001:984:4b2a:1::/64
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: adding default route via fe80::xxxxxxxxxxxeee:a54b
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: REPLY6 received from fe80::xxxxxxxxxxxeee:a54b
Feb 4 20:57:18 murthe dhcpcd[11370]: re0: adding address 2001:xxxxxxxxxxx::1/64
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: renew in 1800 seconds, rebind in 2880 seconds
Feb 4 20:57:18 murthe dhcpcd[11370]: re0: adding route to 2001:xxxxxxxxxxx::/64
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: REPLY6 received from fe80::xxxxxxxxxxxeee:a54b
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: adding address 2001:984:4b2a:xxxxxxxxxxxfe1f:968e/128
Feb 4 20:57:18 murthe dhcpcd[11370]: re1: renew in 1800 seconds, rebind in 2880 seconds
Feb 4 21:05:18 murthe dhcpcd[11370]: re1: Router Advertisement from fe80::xxxxxxxxxxxeee:a54b
Feb 4 21:13:57 murthe dhcpcd[11370]: re1: Router Advertisement from fe80::xxxxxxxxxxxeee:a54b
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl -- 'this bath is too hot.'
___ Olaf 'Rhialto' Seibert -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl -- 'this bath is too hot.'