Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
High availability
»
Web UI to virtual IP keeps switching between primary and backup
« previous
next »
Print
Pages: [
1
]
Author
Topic: Web UI to virtual IP keeps switching between primary and backup (Read 1059 times)
litebit
Newbie
Posts: 12
Karma: 0
Web UI to virtual IP keeps switching between primary and backup
«
on:
August 17, 2024, 07:55:09 pm »
Hi,
My setup in short:
- Primary OPNsense and backup OPNsense each in a VM on ESX, same hardware specification for the VM
- 4 regular interfaces (LAN, WAN, DMZ, GUEST)
- 1 trunk interface
- 1 "sync" interface for any HA and sync purposes
- 3 CARP interfaces with a virtual IP: LAN, GUEST, DMZ (each time and IP ending with .1)
Configuration seems to sync fine. When I check the status of the virtual IP's on the primary, I see that they all 3 are "Master"
The addressing is as follows:
.1 = the virtual IP
.2 = the primary firewall
.3 = the secondary firewall
To go to the web UI, I'm using the .1 virtual ip address of the LAN.
Although the primary is always master, the .1 seems to switch randomly and often between primary and backup (even though the primary is always master)
Is this expected behavior?
If not, how can this be fixed?
I appreciate the feedback
L.
«
Last Edit: September 04, 2024, 06:23:38 pm by litebit
»
Logged
litebit
Newbie
Posts: 12
Karma: 0
Re: Web UI to virtual IP keeps switching between primary and backup
«
Reply #1 on:
September 04, 2024, 06:21:02 pm »
No one out there with a similar problem while using HA?
It also seems to cause some issues with DNS (when the secondary is the active one)
«
Last Edit: September 04, 2024, 06:22:42 pm by litebit
»
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1601
Karma: 176
Re: Web UI to virtual IP keeps switching between primary and backup
«
Reply #2 on:
September 04, 2024, 06:28:20 pm »
If the CARP VIP randomly swaps back and forth I would look at the advskew value. Master should have 0 and Backup 100 or higher in the virtual IPs.
Logged
Hardware:
DEC740
litebit
Newbie
Posts: 12
Karma: 0
Re: Web UI to virtual IP keeps switching between primary and backup
«
Reply #3 on:
September 20, 2024, 05:44:04 pm »
Hi,
Thanks for the tip.
I checked the advskew values on master and backup, they were already set to 0 (on the master) and 100 (on the backup).
I now changed the ones on the backup to 254.
In case it matters : the advbase values are "1" on both hosts.
I'll give feedback in a few days whether this change helps or not
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
High availability
»
Web UI to virtual IP keeps switching between primary and backup