Rename network interface?
-
Iam setting up a HA cluster, for some uknown reason the master has an OPT8 interface that i have renamed to LAN3 - but on the cluster partner that was OPT4 after basic install, i renamed it to LAN3 - but now i cant sync CARP addresses nor firewall rules. (for that specific interface), its "vmx2" on both machines, so i have a hard time understanding why...
HA slave says interface does not exist.
ideas?
-
@planetinse
Ensure that the interfaces are in the same order on both nodes (Interfaces > Interface Assignments). -
@viragomann they are in exact same order
only difference i can spot is that its called OPT8 vs OPT4 in the CLI
-
@planetinse said in Rename network interface?:
only difference i can spot is that its called OPT8 vs OPT4 in the CLI
The OPTx names pfSense originally uses?
If so these have to be the same.You can also check the original name in Status > Interfaces. They are WAN, LAN, OPT1, OPT2,...
The have to match on both boxes. -
@viragomann They dont match - so how can i rename them, for some reason the original box has (i guess due do adding/removing network interfaces in the past)
OPT1, OPT2, OPT3, OPT8
and the new box
OPT1, OPT2, OPT3, OPT4
-
stephenw10 Netgate Administratorlast edited by stephenw10 Aug 10, 2021, 9:48 PM Aug 10, 2021, 9:48 PM
Yeah those logical interface names are what pfSense uses for all the rules and firewall states. They must match in an HA pair.
At some point the first firewall had other interfaces added and then removed which is why it's up to OPT8.The easiest way to do this is usually to edit the config from the secondary directly so it dies match and then restore it. It shouldn't be that difficult with only one mismatched interface to find/replace OPT4 with OPT8. There is always some risk of a typo with editing the config of course.
Steve
-
@stephenw10 any clue where this config is stored?
-
@planetinse
Export it: Diagnostics > Backup & Restore > Backup & Restore
Modify it and re-import it again. -
@viragomann no this is lower level, only place where i can see OPT name (since i have renamed them in Web-interface) is in the CLI
EDIT - however i see it in backup file - LET ME TRY :)
EDIT2 - IT WORKED !! - thank you @viragomann !!
-
Nice result!
-
-
@noplan said in Rename network interface?:
OPT13 ....
I suspect you deleted and recreated interfaces quite often.