CARP interface

Muenz, Michael m.muenz at spam-fetish.org
Thu Feb 11 21:34:16 UTC 2021


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



More information about the freebsd-net mailing list