Re: ipv6 default gw
Roy Marples
Fri May 06 09:07:09 2016
Hi
On 05/05/2016 21:21, Matěj Grégr wrote:
> does dhcpcd support more ipv6 default gw?
Yes, but not on the same receiving interface thanks to route metrics.
On BSD this is a flat out no (no route metrics).
> I receive Router
> Advertisement messages from two routers, but only one is added as a
> default gateway. The other RA is ignored.
>
> Example of communication (truncated and anonymized).
>
> dhcpcd-6.10.2 starting
> wlan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
> wlan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
> DUID 00:01:00:01:1b:72:c4:2f:68:b5:99:ea:d4:8a
> wlan0: IAID 82:e5:6b:0f
> wlan0: delaying IPv6 router solicitation for 0.6 seconds
> wlan0: delaying IPv4 for 0.6 seconds
> wlan0: soliciting an IPv6 router
> wlan0: sending Router Solicitation
> wlan0: Router Advertisement from fe80::4631:92ff:feed:735
> wlan0: adding address xxx:4f4c:e756:dcd3:35a2/64
> wlan0: pltime 604800 seconds, vltime 2592000 seconds
> wlan0: adding route to xxx::/64
> wlan0: adding default route via fe80::4631:92ff:feed:735
> wlan0: waiting for Router Advertisement DAD to complete
> wlan0: No DHCPv6 instruction in RA
> wlan0: Router Advertisement from fe80::7a48:59ff:fefa:ace0
> wlan0: adding address xxx:4f4c:e756:dcd3:35a2/64
> wlan0: pltime 604800 seconds, vltime 2592000 seconds
> wlan0: waiting for Router Advertisement DAD to complete
> wlan0: No DHCPv6 instruction in RA
> wlan0: Router Advertisement DAD completed
> wlan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' ROUTERADVERT
> wlan0: Router Advertisement DAD completed
> wlan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' ROUTERADVERT
>
> I receive RA from fe80::4631:92ff:feed:735 and
> fe80::7a48:59ff:fefa:ace0, but only the first one is added as default
> gw. Is this a bug or intended behavior?
It's intended behaviour.
When the router dhcpcd has installed the default route for becomes
unreachable (according to the kernel) then dhcpcd will remove that route
and install a default route for the other router.
Roy
Archive administrator: postmaster@marples.name