OPNsense Forum

English Forums => High availability => Topic started by: itngo on July 19, 2023, 11:38:34 AM

Title: Virtual IP Status weird.
Post by: itngo on July 19, 2023, 11:38:34 AM
Hi,

I have about 15 VIPs configured with CARP. But "Virtual IPs: Status" shows 16.

2 with same IP.
        8 (freq. 1/0)   100.64.0.1     INIT
   WiFiGuest   10 (freq. 1/0)   100.64.0.1     MASTER

VHID 8 has been deleted and should not be there. Also in config.xml export VHID does not exist. What did I wrong?
Title: Re: Virtual IP Status weird.
Post by: Patrick M. Hausen on July 19, 2023, 11:45:11 AM
If you have a VHID mismatch for one IP address between both nodes, that would explain what you are seeing.
Title: Re: Virtual IP Status weird.
Post by: itngo on July 19, 2023, 11:49:21 AM
Thank for response. Config is in Sync and VHID are the same on both nodes.
Title: Re: Virtual IP Status weird.
Post by: nzkiwi68 on September 07, 2023, 01:45:43 AM
Maybe you can use less CARP addresses too.

You can "stack" addresses onto a single CARP VHID using IP Alias for the same interface. I use this for WAN a lot.

Example:
WAN CARP = 202.202.202.202/24 with VHID 100

You can add additional WAN addresses onto the same interface:
WAN IP Alias = 202.202.202.203/24 with VHID 100
WAN IP Alias = 202.202.202.204/24 with VHID 100


See the attachment for an example I added to my LAN for you to see....

See https://docs.opnsense.org/manual/firewall_vip.html