Menu

#446 Bug: IPv6 default route is not set, although ipv6_defaultrouter is set

12.3.0.4
open
nobody
1
2022-07-02
2022-07-02
O. Hartmann
No

When setting IPv6 enabled and assign a static IPv6 (in our case an ULA) to the LAN interface as well as a default IPv6 gateway, then there is no default route set!
Checking /etc/rc.conf indicates, that

ipv6_defaultrouter="fd00:xxxx:xxx::1"

is already set and correct, but checking routing via

netstat -Warn

reveals that only for IPv4 the default reoute is set properly, IPv6 is missing.

[...]
nas01: ~# netstat -Warn
Routing tables

Internet:
Destination Gateway Flags Use Mtu Netif Expire
default 192.168.0.1 UGS 32 1500 em0
127.0.0.1 link#2 UH 0 16384 lo0
192.168.0.0/24 link#1 U 215 1500 em0
192.168.0.10 link#1 UHS 0 16384 lo0

Internet6:
Destination Gateway Flags Use Mtu Netif Expire
::1 link#2 UH 4 16384 lo0
fd01:17a::/64 link#1 U 76 1500 em0
fd01:17a::10 link#1 UHS 0 16384 lo0
fe80::%em0/64 link#1 U 0 1500 em0

And /etc/rc.conf shows the correct defaultrouter entry for IPv6 (I rebooted the box especially to check, setting the default route for IPv6 via <route -6="" default="" fd01:17a::10=""> results in a correct setting and so a working IPv6 system.</route>

Discussion


Log in to post a comment.