Date: Thu, 11 Feb 2021 16:35:01 -0300 From: Cristian Cardoso <cristian.cardoso11@gmail.com> To: Lutz Donnerhacke <lutz@donnerhacke.de> Cc: freebsd-net@freebsd.org Subject: Re: CARP interface Message-ID: <CAKeEC-JO3OXxVfM4mH876aKAaAP1WEVUakXeke%2B8q5RVEd_Y1g@mail.gmail.com> In-Reply-To: <20210211163642.GA20545@belenus.iks-jena.de> References: <CAKeEC-LzDSrRZuuECJcOFYxf2Y1zBhT--_mfiqmfJ2dNC0OUcQ@mail.gmail.com> <20210211163642.GA20545@belenus.iks-jena.de>
next in thread | previous in thread | raw e-mail | index | archive | help
At that moment I already deactivated the server. The configuration of rc.conf was the same as yours, the only difference was that I was using a static route for my internal network instead of the bird. The version of FreeBSD I used for testing is 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC amd64 Em qui., 11 de fev. de 2021 =C3=A0s 13:36, Lutz Donnerhacke <lutz@donnerhacke.de> escreveu: > > On Thu, Feb 11, 2021 at 10:27:44AM -0300, Cristian Cardoso wrote: > > I would like to clarify a doubt, if someone has this scenario in the > > use of CARP for the use of virtual ips in interfaces in FreeBSD. > > I have an interface where I have the 10.19.254.2/24 network and I am > > placing the virtual IP 10.19.254.3/32 in the CARP, this interface does > > not have a default gateway, but a static route "10.0.0.0/8 gw > > 10.19.254.1". > > When I activate CARP, the interface stops communicating with IP > > 10.19.254.1 and with that I have no external access on the machine. > > Could anyone tell me if this is the normal behavior of CARP or is it > > not even for scenarios where the interface has static routes? > > I checked the handbook and several manuals over the internet, I didn't > > find anything related to validate my scenario. > > That's quite unusal and should not happen. Can you please send me the > relevant rc.conf lines? > > Working example here: > > cloned_interfaces=3D"${cloned_interfaces} vlan100" > create_args_vlan100=3D"vlan 100 vlandev ixl1" > ifconfig_vlan100=3D"up" > ifconfig_vlan100_aliases=3D"inet 100.115.0.26/17" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 103 adv= skew 10 pass **** 100.115.0.60/32" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 104 adv= skew 20 pass **** 100.115.0.61/32" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 105 adv= skew 30 pass **** 100.115.0.62/32" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 106 adv= skew 30 pass **** 100.115.0.63/32" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 107 adv= skew 30 pass **** 100.115.0.64/32" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 108 adv= skew 30 pass **** 100.115.0.65/32" > > resulting in: > > vlan100: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> met= ric 0 mtu 1500 > options=3D600703<RXCSUM,TXCSUM,TSO4,TSO6,LRO,RXCSUM_IPV6,TXCSUM_I= PV6> > ether d4:f5:ef:26:2f:58 > inet 100.115.0.26 netmask 0xffff8000 broadcast 100.115.127.255 > inet 100.115.0.60 netmask 0xffffffff broadcast 100.115.0.60 vhid = 103 > inet 100.115.0.61 netmask 0xffffffff broadcast 100.115.0.61 vhid = 104 > inet 100.115.0.62 netmask 0xffffffff broadcast 100.115.0.62 vhid = 105 > inet 100.115.0.63 netmask 0xffffffff broadcast 100.115.0.63 vhid = 106 > inet 100.115.0.64 netmask 0xffffffff broadcast 100.115.0.64 vhid = 107 > inet 100.115.0.65 netmask 0xffffffff broadcast 100.115.0.65 vhid = 108 > groups: vlan > carp: MASTER vhid 103 advbase 1 advskew 10 > carp: BACKUP vhid 104 advbase 1 advskew 20 > carp: BACKUP vhid 105 advbase 1 advskew 30 > carp: BACKUP vhid 106 advbase 1 advskew 30 > carp: BACKUP vhid 107 advbase 1 advskew 30 > carp: BACKUP vhid 108 advbase 1 advskew 30 > vlan: 100 vlanpcp: 0 parent interface: ixl1 > media: Ethernet autoselect (10Gbase-LR <full-duplex>) > status: active > nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > > Routing is done via bird. > > Which version of FreeBSD are you using? > FreeBSD ... 12.2-STABLE FreeBSD 12.2-STABLE stable/12-c243266-gd970a8218e= 1 GENERIC amd64 > > I had a similar problem like you with 13-STABLE but was not able to > investigate further. I suspect, that the new routing code is causing this= .
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKeEC-JO3OXxVfM4mH876aKAaAP1WEVUakXeke%2B8q5RVEd_Y1g>