This is related to Sabrent USB 2.5G Ethernet Adapter: Realtek 8152 Chipset Drivers from AUR?. I’ve split it off from there because I already set that thread to sprawling with a digression on MTU and jumbo frames.
tl;dr: The network interface name of a USB ethernet adapter changes when it’s switched to a different ethernet port and I need a way to make it not do that.
In the course of investigating adding a powered USB 3.0 hub to the setup to get around the issue of not being able to put an external USB SSD and the 2.5GbE adapter on the Pi’s USB bus, I lost network connectivity to the switch from the 2.5Gb ethernet port.
I swapped things around a bit so that I was just using the Pi’s built-in ethernet again, and got back into an SSH terminal and then took a look at the USB adapter to see what it was doing.
The network interface name (enp1XXXXX) had changed. Apparently, it changes based on what port it’s plugged into. As soon as I set the proper name of the adapter in nmtui
(the Network Manager text-based console UI).
A couple of questions:
- Why does this happen? Is it just from changing the plug I’m using?
- Can I actually make it not do this? Sometimes I need to unplug and move things around, and locking myself out of a machine because I can’t remember which port I used to hook it up the last time ends up with me hard rebooting a running Pi at least once, which is no fun.
It would be nice to give the adapter a permanent name based on its MAC address. eth1 or something.
Thanks!