OPNsense Forum

English Forums => High availability => Topic started by: rise on March 24, 2021, 01:09:00 pm

Title: Virtual IP and vlan interface mismatch after performing a sync
Post by: rise on March 24, 2021, 01:09:00 pm
I know some have had similar issues, but I need to "speak up" anyway...  :)
We have 15-20 VLANs, with a CARP ip assigned to each... when syncing, everything is mixed up in a mess on backup node...
IP for vlan 10 is on vlan 15 etc etc

(Created all VLANs/interfaces with same names on backup node)
"Created in wrong order"....   thats just stupid, shouldnt same name on both nodes be enough???

Or am I missing something? I have to scrap the whole HA idea because this BUG is not acceptable





Title: Re: Virtual IP and vlan interface mismatch after performing a sync
Post by: Maurice on March 24, 2021, 05:34:22 pm
Created all VLANs/interfaces with same names on backup node

Same names (optX) or same description?
Title: Re: Virtual IP and vlan interface mismatch after performing a sync
Post by: rise on March 25, 2021, 09:40:39 am
Same description... not having optX at all

Created VLANs, assigned interfaces, then changed description to something more meaningful

(for some strange reason someone decided that "description" should be used to set name...)


Title: Re: Virtual IP and vlan interface mismatch after performing a sync
Post by: Patrick M. Hausen on March 25, 2021, 12:22:19 pm
Click on each one of them in the Interfaces section. Then look at the URL field in your browser. It should end in something like
Code: [Select]
interfaces.php?if=opt1
Check the "if=X" parameter for every single one. If there's a mismatch, that's likely your problem. I agree that this is rather inconvenient and at least a bit suprising, but OPNsense is not alone in this regard. Many commercial offerings require artefacts like zones and interfaces to be created in the exact same order on all cluster nodes ... e.g. Sidewinder comes to mind. BTDT.

HTH,
Patrick
Title: Re: Virtual IP and vlan interface mismatch after performing a sync
Post by: Maurice on March 25, 2021, 01:16:34 pm
for some strange reason someone decided that "description" should be used to set name...

The description is indeed just a description. A user-friendly string used in the UI, nothing more. Interface names need to match for sync to work. Names are always "optX" (except for the default LAN / WAN interfaces which are named "lan" / "wan"). You cannot "set" the name at all, only change the assignments. You can see the names like Patrick explained or in Interfaces / Overview.
Title: Re: Virtual IP and vlan interface mismatch after performing a sync
Post by: rise on March 25, 2021, 01:48:15 pm
Ok! I will give it another try then...

thanks for your answers!
Title: Re: Virtual IP and vlan interface mismatch after performing a sync
Post by: miso76 on September 29, 2021, 04:00:47 pm
Hello,

i am facing the same problem rsp. similiar so instead to open a new thread i will use this one.

I have 2 pfsense in failover and i configure the VLANs on each box. For some reason on the 1st the opt8 interface is missing but on the 2nd it is present.
So i have one VLAN X on different opt interfaces. so VLAN8 on the first at opt9 and on the 2nd on opt8 which cause problem.
If all opt interfaces were present i could change simply the order on the 2nd box but due one is missing i cannot fix it in this way.
When i create an assignment it create the opt interface always in order.

May i have to backup the interfaces on the first box adjust the XML file (IP´s) and restore the interfaces on the 2nd box to have it equal ?
Is there another way ?

Thanks in advanced

Best Regards

-> created another assignment and opt8 was present so i just have to change the order. solved by myselv thanks

Title: Re: Virtual IP and vlan interface mismatch after performing a sync
Post by: bimbar on October 08, 2021, 10:45:10 am
I think that's pretty much the answer. Play around deleting and creating interfaces until it matches up.