change an interface's identifier

Started by tedly, November 11, 2023, 05:56:03 AM

Previous topic - Next topic
I couldn't seem to find any posts or info to answer this, or I didn't pick the right search terms.

But I have a brand new setup with three NICs. I intend to have one for my LAN (internal), WAN (primary gateway), and OPT1 (backup LTE).

But during the setup, the system assigned the "identifier" of "lan" to the LTE interface. And "opt1" to the LAN interface. See attached image.

I'd like to reverse these. I couldn't find where to change these.

And I can't just move the NIC cords because I need certain NICs to do certain duties for performance reasons.

Log into the firewall console as root and use option 1 to assign the interfaces and option 2 to set the IP address for the LAN interface

Bart...

Thank you for the quick reply, Bart.

I did try that already this evening. With a reboot after the change.

I tried it again just now upon your suggestion - in case I had an error before. Unfortunately, it hasn't changed the "identifier" field under Interface Assignments though.

Ultimately my goal is to do multi-wan between the LTE (backup) and the Starlink (primary) networks with the 3rd interface being my LAN. Does the "identifier" name have any bearing on that? Or, if it's just a label that doesn't effect anything, then I can just move on with continuing to configure my first opnsense as-is.

The identifiers are assigned by the FreeBSD kernel, based on the kernel module that was dynamically loaded for the hardware device during boot. You can see this from the dmesg output:

sudo dmesg | grep -i "ethernet adapter"

These names are separate to the interface names that OPNsense uses and you can't easily change them. The main thing is that they are consistent between reboots.

Bart...