Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2008 11:01:52 -0700
From:      Christopher Cowart <ccowart@rescomp.berkeley.edu>
To:        freebsd-net@FreeBSD.org
Subject:   carp and vlan interfaces recovery issue
Message-ID:  <20080509180152.GV89055@hal.rescomp.berkeley.edu>

next in thread | raw e-mail | index | archive | help

--ZSRqT0vnbHyWXlI9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

I have the following configuration:

box1:/etc/rc.conf:
| ifconfig_bge1=3D"up"
| ifconfig_vlan95=3D"inet 10.9.128.2/20 vlan 95 vlandev bge1"
| ifconfig_carp15=3D"inet 10.9.128.1/32 vhid 15 pass secret advskew 100"
| ifconfig_carp25=3D"inet 10.9.128.1/32 vhid 25 pass secret"

box2:/etc/rc.conf:
| ifconfig_fxp0=3D"up"
| ifconfig_vlan95=3D"inet 10.9.128.3/20 vlan 95 vlandev fxp1"
| ifconfig_carp15=3D"inet 10.9.128.1/32 vhid 15 pass secret"
| ifconfig_carp25=3D"inet 10.9.128.1/32 vhid 25 pass secret advskew 100"

/etc/sysct.conf:
| net.inet.carp.arpbalance=3D1

Output from ifconfig:

box1:
| carp15: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: BACKUP vhid 15 advbase 1 advskew 100
| carp25: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: MASTER vhid 25 advbase 1 advskew 0

box2:
| carp15: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: MASTER vhid 15 advbase 1 advskew 0
| carp25: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: BACKUP vhid 25 advbase 1 advskew 100

Then, on box 1, I `ifconfig vlan95 down'. Updated output from ifconfig:

box1:
| carp15: flags=3D8<LOOPBACK> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: INIT vhid 15 advbase 1 advskew 100
| carp25: flags=3D8<LOOPBACK> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: INIT vhid 25 advbase 1 advskew 0

box2:
| carp15: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: MASTER vhid 15 advbase 1 advskew 0
| carp25: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: MASTER vhid 25 advbase 1 advskew 100

Then, on box 1, I `ifconfig vlan95 up'. Again:

box1:
| carp15: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: BACKUP vhid 15 advbase 1 advskew 100
| carp25: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: BACKUP vhid 25 advbase 1 advskew 0

box2:
| carp15: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff
|         carp: MASTER vhid 15 advbase 1 advskew 0
| carp25: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff
|         carp: MASTER vhid 25 advbase 1 advskew 100

Notice that both carp interfaces are running in "BACKUP" mode on box1,
even after some period of waiting. I would expect things to return to
the initial state.=20

If I `tcpdump -i vlan95 vrrp' on both boxes at this point, I see:
| 10:57:20.502188 IP 10.9.128.3 > VRRP.MCAST.NET: VRRPv2, Advertisement,=20
|     vrid 15, prio 0, authtype none, intvl 1s, length 36
| 10:57:21.503211 IP 10.9.128.3 > VRRP.MCAST.NET: VRRPv2, Advertisement,=20
|     vrid 15, prio 0, authtype none, intvl 1s, length 36
| 10:57:21.537201 IP 10.9.128.3 > VRRP.MCAST.NET: VRRPv2, Advertisement,=20
|     vrid 25, prio 100, authtype none, intvl 1s, length 36
| 10:57:22.504234 IP 10.9.128.3 > VRRP.MCAST.NET: VRRPv2, Advertisement,=20
|     vrid 15, prio 0, authtype none, intvl 1s, length 36

Note that box1 (10.9.128.2) isn't sending any advertisements.=20

If I use the physical interface, not the vlan interface `ifconfig bge1
down' on box1:

box1:
| carp15: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: MASTER vhid 15 advbase 1 advskew 100
| carp25: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: MASTER vhid 25 advbase 1 advskew 0

box2:
| carp16: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.144.1 netmask 0xffffffff=20
|         carp: MASTER vhid 16 advbase 1 advskew 0
| carp26: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.144.1 netmask 0xffffffff=20
|         carp: MASTER vhid 26 advbase 1 advskew 100

And finally, `ifconfig bge1 up' on box1:

| carp15: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: BACKUP vhid 15 advbase 1 advskew 100
| carp25: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
|         inet 10.9.128.1 netmask 0xffffffff=20
|         carp: MASTER vhid 25 advbase 1 advskew 0

Things return to where they should be.

Is this a bug?

--=20
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley

--ZSRqT0vnbHyWXlI9
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iQIVAwUBSCSRkCPHEDszU3zYAQLIRw//QN5k5ul47h5Y84O1a1Zv17DLYiHjYbPg
CEIBzI93Y4kFh+OoAwZxJ89rzzgqrcUy18ohXVdbr7WCm28eJHF5KvaX52jrfOSs
AJGSCCgSUoi9hAoN4R/7G7ZqoqJhrvVSXzsTuLACEbZVbuor6iV1Ypk+EQNULfyQ
p+VLB3cI5mPb/iKeWB/mXNRhgG9Jf6j7FrNrdzlGA3ldHRO4Oci6HP/EXUEDS7rT
tXWFwXmMUhhjW5f2XQfyM/5D7ZfaNOmU8ccsRAZHnMcUWA36NyuG98lzUQkrVtJz
2bdM/6C4rF20rYocAbCkc/Xodfr/qAGhdvjv+EG3wwY+rTn+q8sEeBo+a5fNWwDL
zKw9ipXaArOljybsLUTQj7dXrjBEPusOuMeYANBs3kp2GaOAHHgOOPT4L6gGNJ8w
62cqta0zw3E2wmR9F2foEVvqdoBAYbPFeaXvnVTMmeIpkCigofWeTCVJfgCZnS9O
yjjz3sYQ1csY1oob46uph5s9Yh6yQkTA80YvczMd9MUPlPwF/MkTF+hxTKaMWhSm
pGUs63VA6oKjStwR/zrJpcc5BPMTKm85joQpr4271J067eyFp+ycgPJJln07iWLc
ZkkDTaWKuEM47fYpC0xhPzGJm0qnRNFFS0Rw+Dc9gH+BThNQMjNsgxseBX8FWpYg
brjHp8bu2qw=
=sBd8
-----END PGP SIGNATURE-----

--ZSRqT0vnbHyWXlI9--



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