Stuart Henderson <stu <at> spacehopper.org> writes: > I setup carp-on-vlan-on-trunk-on-bnx0/1 on an R210-II running 5.1 > the other day, no trouble. In this case they're webservers so I didn't > set net.inet.ip.forwarding in sysctl.conf and i'm using ip balancing > rather than simple carp failover.
OK, something very odd going on here. I destroyed the interface and manually created it (ie not via hostname.carp119) and it worked. I can't see the difference here. See the following output: # ifconfig carp119 destroy # # ifconfig carp119 carpdev vlan119 vhid 119 pass riohperi advskew 10 # ifconfig carp119 inet 213.133.66.67 netmask 255.255.255.248 -inet6 # ifconfig carp119 carp119: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> # mtu 1500 lladdr 00:00:5e:00:01:77 priority: 0 carp: MASTER carpdev vlan119 vhid 119 advbase 1 advskew 10 groups: carp status: master inet 213.133.66.67 netmask 0xfffffff8 broadcast 213.133.66.71 # tcpdump -vni vlan119 proto carp tcpdump: listening on vlan119, link-type EN10MB tcpdump: WARNING: compensating for unaligned libpcap packets 20:25:02.077789 carp 213.133.66.65 > 224.0.0.18: CARPv2-advertise 36: # vhid=119 advbase=1 advskew=10 demote=0 (DF) [tos 0x10] (ttl 255, id # 8952, len 56) 20:25:03.127836 carp 213.133.66.65 > 224.0.0.18: CARPv2-advertise 36: # vhid=119 advbase=1 advskew=10 demote=0 (DF) [tos 0x10] (ttl 255, id # 32794, len 56) 20:25:04.177887 carp 213.133.66.65 > 224.0.0.18: CARPv2-advertise 36: # vhid=119 advbase=1 advskew=10 demote=0 (DF) [tos 0x10] (ttl 255, id # 15849, len 56) 20:25:05.227937 carp 213.133.66.65 > 224.0.0.18: CARPv2-advertise 36: # vhid=119 advbase=1 advskew=10 demote=0 (DF) [tos 0x10] (ttl 255, id # 58244, len 56) ^C 7 packets received by filter 0 packets dropped by kernel # ifconfig carp119 destroy # cat /etc/hostname.carp119 inet 213.133.66.67 255.255.255.248 carpdev vlan119 vhid 119 pass riohperi advskew 10 -inet6 # sh /etc/netstart carp119 # ifconfig carp119 carp119: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> # mtu 1500 lladdr 00:00:5e:00:01:77 priority: 0 carp: MASTER carpdev vlan119 vhid 119 advbase 1 advskew 10 groups: carp status: master inet 213.133.66.67 netmask 0xfffffff8 broadcast 213.133.66.71 # tcpdump -vni vlan119 proto carp tcpdump: listening on vlan119, link-type EN10MB ^C 6 packets received by filter 0 packets dropped by kernel #