Currently we are using
LINKSYS USB ETHERNET ADAPTER - GIGABIT USB 3.0 (Model-Nr. USB3GIG-EJ)
These work as plug-and-play with debian10.
To assign a permanent name for the network adapter (e.g. as listed by 'ip a' command) one needs to edit/create
the file
/etc/udev/rules.d/70-persistent-net.rules
and add for each adapter:
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="XX.XX.XX.XX.XX.XX", NAME="usb_eth0"
Then reload the rules with:
sudo udevadm control --reload-rules
The device with the given MAC address will now always be loaded as "usb_eth0". |
When using USB/serial ports for slow control, it is advisable to manually bind a certain device to a certain device name.
This is the procedure:
1. connect the device and check the current assignment: sudo dmesg the device might be connected as /dev/ttyUSB0 or similar
2. check the device attributes:udevadm info --name=/dev/ttyUSB0 --attribute-walk note unique attributes, e.g., ATTRS{idVendor}=="XXXX" and ATTRS{idProduct}=="YYYY" or ATTRS{serial}=="ZZZZ" and others
3. add a new local rule:sudo nano /etc/udev/rules.d/10-local.rules add the a line as:ACTION=="add", ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="YYYY", SYMLINK+="my_device_name"
4. reload the rules:sudo udevadm trigger
5. check and reset usb:lsusb check again your device, look for PRODUCT_ID:VENDOR_ID, then reset:usbreset PRODUCT_ID:VENDOR_ID
5. verifyudevadm info /dev/ttyUSB0 this should show at the end:E: DEVLINKS=/dev/my_device_name and probably some more DEVLINKS in the same line
so udevadm info /dev/my_device_name should also work |