Re: IPv6 router failover

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, Jan 21, 2014 at 12:41:36PM +0100, Vrf Identity wrote:
> Yes, this is it! Thanks Erik!
> 
> BTW it is quite stupid for me adding by default static route and not
> using backup router if one will fail, but second is available. In my
> opinion this "feature with static route" should be disabled by default
> for IPv6 protocol.

That static route seems to be added by NetworkManager.

If I disable NetworkManager and configure IPv6 SLAAC manually, just the
dynamic default route is added:

$ # NOTE: disabling NetworkManager disables ALL interfaces, not just those
$ #       controlled via NetworkManager
$ # disable NetworkManager (same as deselecting "Enable Networking" in GUI)
$ nmcli nm enable false
$ ip -6 route show
$ ip -6 addr show eth0
$ # enable SLAAC
$ sudo sysctl -w net.ipv6.conf.eth0.forwarding=0
net.ipv6.conf.eth0.forwarding = 0
$ sudo sysctl -w net.ipv6.conf.eth0.autoconf=1
net.ipv6.conf.eth0.autoconf = 1
$ sudo sysctl -w net.ipv6.conf.eth0.accept_ra=1
net.ipv6.conf.eth0.accept_ra = 1
$ sudo ip link set dev eth0 up
$ # wait a short time for SLAAC to finish...
$ ip -6 addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 2001:638:208:cd00:XXX:XXff:feXX:XXXX/64 scope global dynamic 
       valid_lft 2591989sec preferred_lft 604789sec
    inet6 fe80::XXX:XXff:feXX:XXXX/64 scope link 
       valid_lft forever preferred_lft forever
$ ip -6 route show
2001:638:208:cd00::/64 dev eth0  proto kernel  metric 256  expires 2592302sec
fe80::/64 dev eth0  proto kernel  metric 256 
default via fe80::XXX:XXff:feXX:XXXX dev eth0  proto kernel  metric 1024  expires 1778sec
$

Tested on Ubuntu 12.04 LTS.

Erik
--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux