Rename network interface because the the physical order is not good

Started by Flogm, February 06, 2024, 10:57:52 AM

Previous topic - Next topic
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

You can assign the interfaces to network adapters from the console (option 1). You will need to re-arrange the cables to follow suit.



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.