carp on 10.0 and ipv6 network route

Ole Myhre ole.myhre at dataoppdrag.no
Thu Oct 31 21:58:12 UTC 2013


Hi,

I'm testing carp on 10.0-BETA2, and there seems to be different
behaviour with the network route between IPv4 and IPv6 when using carp
on interfaces.

IPv4 routes are not present in the routing table when the interface is
in BACKUP state (as expected), but IPv6 routes are present in the
routing table in both BACKUP and MASTER state. This causes some issues
with routing daemons as the network route is announced to other
routers from both machines running carp.

[root at rtr1 ~]# ifconfig em2 vhid 1 192.168.0.1/24

[root at rtr2 ~]# ifconfig em2 vhid 1 192.168.0.1/24

[root at rtr1 ~]# ifconfig em2 | grep carp
        carp: MASTER vhid 1 advbase 1 advskew 0
[root at rtr1 ~]# netstat -rn | grep 192.168.0.0
192.168.0.0/24     link#3             U           0        0    em2
[root at rtr1 ~]#

[root at rtr2 ~]# ifconfig em2 | grep carp
        carp: BACKUP vhid 1 advbase 1 advskew 0
[root at rtr2 ~]# netstat -rn | grep 192.168.0.0
[root at rtr2 ~]#

[root at rtr1 ~]# ifconfig em2 inet6 2001:db8::1/64 vhid 1

[root at rtr2 ~]# ifconfig em2 inet6 2001:db8::1/64 vhid 1

[root at rtr1 ~]# ifconfig em2 | grep carp
        carp: MASTER vhid 1 advbase 1 advskew 0
[root at rtr1 ~]# netstat -rn | grep 2001:db8::/64
2001:db8::/64                     link#3                        U           em2
[root at rtr1 ~]#

[root at rtr2 ~]# ifconfig em2 | grep carp
        carp: BACKUP vhid 1 advbase 1 advskew 0
[root at rtr2 ~]# netstat -rn | grep 2001:db8::/64
2001:db8::/64                     link#3                        U           em2
[root at rtr2 ~]#

Thanks,
Ole


More information about the freebsd-net mailing list