Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
change an interface's identifier
« previous
next »
Print
Pages: [
1
]
Author
Topic: change an interface's identifier (Read 4313 times)
tedly
Newbie
Posts: 12
Karma: 0
change an interface's identifier
«
on:
November 11, 2023, 05:56:03 am »
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.
Logged
bartjsmit
Hero Member
Posts: 2018
Karma: 194
Re: change an interface's identifier
«
Reply #1 on:
November 11, 2023, 07:12:50 am »
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...
Logged
tedly
Newbie
Posts: 12
Karma: 0
Re: change an interface's identifier
«
Reply #2 on:
November 11, 2023, 07:42:22 am »
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.
Logged
bartjsmit
Hero Member
Posts: 2018
Karma: 194
Re: change an interface's identifier
«
Reply #3 on:
November 11, 2023, 12:50:56 pm »
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...
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
change an interface's identifier