Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

System and Network configuration • Re: USB LTE Modem Changing Ports

$
0
0
I don't have the issue with random usb enumeration, and don't use a setup like yours - but, I'd assume the LTE modem does have a MAC address that the system sees regardless of port. With that info I'd make a link file to rename the interface and then use this new name for anything that uses the interface.

This may only work if using 'interfaces' and ifup configuration and not network manager or others?

Code:

# /etc/systemd/network/10-LTEmodem-usb.link[Match]MACAddress=00:00:00:00:00:00[Link]Name=LTE


Maybe, that rename will work with all setups if you configure the device as the named 'LTE', or whatever you decide to use. This 'friendly name' substitutes any long name including address, port, or whatever.

Find it;

Code:

$  ls /sys/class/neteth0  lo whatever
check it's MAC

Code:

$  cat /sys/class/net/eth0/address52:54:00:21:02:19
You'd use 'whatever' instead of eth0, assuming whatever is your LTE modem.
Once the rename is in place, 'whatever' would be 'LTE'
...maybe

Statistics: Posted by CwF — 2024-07-19 16:28



Viewing all articles
Browse latest Browse all 2849

Trending Articles