Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2011 11:01:20 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        lev@FreeBSD.org
Cc:        freebsd-net@freebsd.org
Subject:   Re: Proper way to setup IPv6 gateway on running node without reboot?
Message-ID:  <4DADCDF0.7000607@FreeBSD.org>
In-Reply-To: <884389059.20110419211805@serebryakov.spb.ru>
References:  <884389059.20110419211805@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DADCDF0.7000607>