Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Nov 2009 19:09:11 -0800
From:      =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= <ask@develooper.com>
To:        freebsd-net@freebsd.org
Subject:   carp advskew not 'sticking'
Message-ID:  <F88017B2-351D-4409-9BC4-6EFAFD29F971@develooper.com>

next in thread | raw e-mail | index | archive | help
Hi everyone,

On a set of gw boxes I have 5 carp interfaces.  4 are working fine,  
but on one for some reason the advskew setting isn't "sticking" (and I  
get carp2: incorrect hash).   I'm running 7.2-STABLE from a few days  
ago.

gw-a# ifconfig carp2 vhid 12 advskew 100 pass abc123 10.0.100.1/24
gw-a# ifconfig carp2
carp2: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
	inet 10.0.100.1 netmask 0xffffff00
	carp: BACKUP vhid 12 advbase 1 advskew 0

gw-b# ifconfig carp2 vhid 12 advskew 200 pass abc123 10.0.100.1/24
gw-b# ifconfig carp2
carp2: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
	inet 10.0.100.1 netmask 0xffffff00
	carp: MASTER vhid 12 advbase 1 advskew 0

(notice how advskew is 200 ...)

I'm pasting the ifconfig for the parent interfaces (the physical  
interface and the vlan) and for the other carp interface on the same  
network below for each host.

Any ideas would be greatly appreciated.  I don't usually use the /cidr  
notation on carp interfaces, but I noticed the netmask was wrong  
before and thought that could be related.

How can I get more debug information?  Right now all I get is "carp2:  
incorrect hash"

Another related question: I use net.inet.carp.preempt=1; but for some  
reason this interface gets to "float" to either box without all the  
other interfaces moving along with it.


  - ask

gw-a# ifconfig vr2
vr2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric  
0 mtu 1500
	options=280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC>
	ether 00:0d:b9:12:75:ea
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
gw-a# ifconfig vlan2
vlan2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST>  
metric 0 mtu 1500
	ether 00:0d:b9:12:75:ea
	inet 10.0.100.2 netmask 0xffffff00 broadcast 10.0.100.255
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
	vlan: 102 parent interface: vr2
gw-a# ifconfig carp4
carp4: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
	inet 10.0.100.254 netmask 0xffffff00
	carp: MASTER vhid 5 advbase 1 advskew 100
gw-a#


gw-b# ifconfig vr2
vr2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric  
0 mtu 1500
	options=280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC>
	ether 00:0d:b9:12:75:3e
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
gw-b# ifconfig vlan2
vlan2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST>  
metric 0 mtu 1500
	ether 00:0d:b9:12:75:3e
	inet 10.0.100.3 netmask 0xffffff00 broadcast 10.0.100.255
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
	vlan: 102 parent interface: vr2
gw-b# ifconfig carp4
carp4: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
	inet 10.0.100.254 netmask 0xffffff00
	carp: BACKUP vhid 5 advbase 1 advskew 200
gw-b#







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F88017B2-351D-4409-9BC4-6EFAFD29F971>