Proper way to setup IPv6 gateway on running node without reboot?

Lev Serebryakov lev at FreeBSD.org
Tue Apr 19 17:18:13 UTC 2011


Hello, Freebsd-net.


  I'm looking for way to setup IPv6 router config on IPv4-configured
node without reboot.

  I've added to /etc/rc.conf:

ipv6_enable="YES"
ipv6_ifconfig_em0="2001:470:hhhh:1::1 prefixlen 64"
ipv6_ifconfig_wlan0="2001:470:hhhh:2::1 prefixlen 64"
ipv6_defaultrouter="2001:470:xxxx:xxxx::2" # uplink
rtadvd_enable="YES"
rtadvd_interfaces="em0 wlan0"
ipv6_gateway_enable="YES"

 and run

/etc/rc.d/network_ipv6 start
/etc/rc.d/rtadvd start

 Interfaces em0 and wlan0 now have static addresses, but not
link-local automatic ones, and it seems, that rtadvd doesn't announce
anything.

 As far as I understand, rtadvd can not work without link-local
addresses, am I right? Why these addresses doesn't appear on
interfaces?

-- 
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>



More information about the freebsd-net mailing list