Date: Thu, 11 Feb 2021 22:37:56 +0100 From: "Muenz, Michael" <m.muenz@spam-fetish.org> To: freebsd-net@freebsd.org Subject: Re: CARP interface Message-ID: <a31ca18c-e02d-4939-9b68-7e032401de1a@spam-fetish.org> 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
Am 11.02.2021 um 17:36 schrieb Lutz Donnerhacke: > 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="${cloned_interfaces} vlan100" > create_args_vlan100="vlan 100 vlandev ixl1" > ifconfig_vlan100="up" > ifconfig_vlan100_aliases="inet 100.115.0.26/17" > ifconfig_vlan100_aliases="${ifconfig_vlan100_aliases} inet vhid 103 advskew 10 pass **** 100.115.0.60/32" > ifconfig_vlan100_aliases="${ifconfig_vlan100_aliases} inet vhid 104 advskew 20 pass **** 100.115.0.61/32" > ifconfig_vlan100_aliases="${ifconfig_vlan100_aliases} inet vhid 105 advskew 30 pass **** 100.115.0.62/32" > ifconfig_vlan100_aliases="${ifconfig_vlan100_aliases} inet vhid 106 advskew 30 pass **** 100.115.0.63/32" > ifconfig_vlan100_aliases="${ifconfig_vlan100_aliases} inet vhid 107 advskew 30 pass **** 100.115.0.64/32" > ifconfig_vlan100_aliases="${ifconfig_vlan100_aliases} inet vhid 108 advskew 30 pass **** 100.115.0.65/32" > I know the FreeBSD handbook tells you the carp IP is /32 but pfsense and OPNsense always refers to using the same netmask as the main interface. Maybe this will do the trick? Best, Michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31ca18c-e02d-4939-9b68-7e032401de1a>