OPNsense Forum

English Forums => Hardware and Performance => Topic started by: Flogm on February 06, 2024, 10:57:52 AM

Title: Rename network interface because the the physical order is not good
Post by: Flogm on February 06, 2024, 10:57:52 AM
hello has anyone tested this script to rename interfaces using their mac addresses? on my router the order and name of the igb is not practical:
port 1 : igb0
port 2 : igb3
port 3 : igb1
port 4 : igb2
port 5 : igb5
port 6 : igb4

https://github.com/eborisch/ethname

thanks in advance
Title: Re: Rename network interface because the the physical order is not good
Post by: bartjsmit on February 06, 2024, 11:49:41 AM
You can assign the interfaces to network adapters from the console (option 1). You will need to re-arrange the cables to follow suit.
Title: Re: Rename network interface because the the physical order is not good
Post by: Flogm on February 07, 2024, 10:23:59 AM
i know that but it is not user friendly...  :(
Title: Re: Rename network interface because the the physical order is not good
Post by: Flogm on February 13, 2024, 04:06:06 PM
do you have some ideas ?
Title: Re: Rename network interface because the the physical order is not good
Post by: CJ on February 13, 2024, 04:30:43 PM
I'm a bit confused as to your end goal here.  Once you assign an interface it will now have a name that will be used throughout the UI.  So I'm not sure what difference it makes regarding the driver number.

If you're attempting to use the same configs over multiple machines, I don't know that this is the way to go.  I believe someone posted semi recently about having two identical machines with different port orders, presumably due to the internal tracing of the board.

If there are physical labels already printed on the case, then you would just assign the same names in the UI, regardless of whether it's igb1, 2 or 3.