Can you have more than one CARP VIP on the same interface?
-
we are trying to troubleshoot our CARP issues (e.g. "incorrect hash" on all CARPS except 2) , and came across a post which said:
- cant have multiple carps assigned to the same subnet
Is this true? If so we are in trouble - each of our websites IPs are carped on our WAN interface - so we have about 10 carps for one interface. The CARPS are used by the HAProxy module to load balance web servers etc.
-
Not sure what you mean here. I have around 20 CARP address on my WAN. (We have a 64 ip block from which to pull). Are you trying to put some on that are not in the same subnet as the WAN interface?
-
You have the context of that quote wrong. It was referencing conflicting VHIDs on the same broadcast domain. You can have as many CARP IPs on a subnet as there are VHIDs (and more IPs by adding aliases on top of CARP VIPs). You most likely have a VHID conflict.
-
You cannot have more that 1 or 2 on the same VHID … iirc. I usually just use the last octet as my vhid.
-
You cannot have more that 1 or 2 on the same VHID … iirc. I usually just use the last octet as my vhid.
One per VHID per broadcast domain. Using the last octet is a good option most of the time.