Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Dec 2016 16:11:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-net@FreeBSD.org
Subject:   [Bug 202510] [CARP] advertisements sourced from CARP IP cause double MASTER situations
Message-ID:  <bug-202510-2472-Pa38oMqsct@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-202510-2472@https.bugs.freebsd.org/bugzilla/>
References:  <bug-202510-2472@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202510

--- Comment #9 from dam@my.gd ---
(In reply to Kubilay Kocak from comment #7)


Confirming behaviour on 10-STABLE (r309356) with my provided patch.




patch
=3D=3D
root@bsd10:/usr/src/etc # patch < /tmp/network.subr.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- network.subr.orig  2015-08-24 14:10:15.188579000 +0000
|+++ network.subr.patched       2015-08-24 14:10:22.298347000 +0000
--------------------------
File to patch: network.subr
Patching file network.subr using Plan A...
Hunk #1 succeeded at 1091.
Hunk #2 succeeded at 1144.
done




rc.conf
=3D=3D
ifconfig_vtnet0=3D"inet 46.[snip].253/25 -rxcsum -txcsum -tso -vlanhwtso
-vlanhwcsum -vlanhwtag up"
ipv4_addrs_vtnet0=3D"1.1.1.1/32"
ifconfig_vtnet0_alias0=3D"1.1.1.2/32"
ifconfig_vtnet0_alias1=3D"vhid 101 pass test advskew 50 1.1.1.3/32"




ifconfig
=3D=3D
root@bsd10:~ # ifconfig
vtnet0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric=
 0 mtu
1500
=20=20=20=20=20=20=20
options=3D6804a8<VLAN_MTU,JUMBO_MTU,VLAN_HWCSUM,LRO,LINKSTATE,RXCSUM_IPV6,T=
XCSUM_IPV6>
        ether f2:53:d5:fc:49:8a
        inet 46.[snip].253 netmask 0xffffff80 broadcast 46.182.42.255=20
        inet 1.1.1.1 netmask 0xffffffff broadcast 1.1.1.1=20
        inet 1.1.1.2 netmask 0xffffffff broadcast 1.1.1.2=20
        inet 1.1.1.3 netmask 0xffffffff broadcast 1.1.1.3 vhid 101=20
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet 10Gbase-T <full-duplex>
        status: active
        carp: MASTER vhid 101 advbase 1 advskew 50




tcpdump
=3D=3D
root@bsd10:~ # tcpdump -ni vtnet0 vrrp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vtnet0, link-type EN10MB (Ethernet), capture size 65535 bytes
16:04:27.942147 IP 46.[snip].253 > 224.0.0.18: VRRPv2, Advertisement, vrid =
101,
prio 50, authtype none, intvl 1s, length 36
16:04:29.156181 IP 46.[snip].253 > 224.0.0.18: VRRPv2, Advertisement, vrid =
101,
prio 50, authtype none, intvl 1s, length 36
16:04:30.358144 IP 46.[snip].253 > 224.0.0.18: VRRPv2, Advertisement, vrid =
101,
prio 50, authtype none, intvl 1s, length 36

     ^---- sourced with physical IP despite the use of ipv4_addrs_vtnet0



Can anyone confirm 9 and 11 branches ?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202510-2472-Pa38oMqsct>