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

Doug Barton dougb at FreeBSD.org
Tue Apr 19 18:01:45 UTC 2011


On 4/19/2011 10:18 AM, Lev Serebryakov wrote:
> Hello, Freebsd-net.
>
>
>    I'm looking for way to setup IPv6 router config on IPv4-configured
> node without reboot.

Your best bet is actually to reboot. There are a lot of moving parts, 
and it's difficult to catch them all, especially with a gateway setup.

Meanwhile, you need to tell us what version of FreeBSD you're using, as 
IPv6 configuration is different in all 3 supported branches atm.

>    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"

I hope that the hhhh here is a method of obfuscating the real addresses 
for this message?

> 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.

Check the ifconfig output. You're looking for the auto link-local and 
ifdisabled options. Check the ifconfig man page for what you need to 
twiddle.


hth,

Doug

-- 

	Nothin' ever doesn't change, but nothin' changes much.
			-- OK Go

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/



More information about the freebsd-net mailing list