Which eth number is assigned in Linux?

Hi, I am using a EM7455 in our embedded linux design. I am using Gobi drivers and both the enumeration and Gobi drivers work on boot up. I can then do a ifconfig eth3 up to bring up the LTE network interface.

But I got a question: How can I discovered from Linux what network interface number was assigned to the LTE network interface? Right now it is always 3, but it may be something else in a fully loaded system.

Thanks

probably you can check dmesg.


[221040.884376] GobiNet 4-1:1.8 eth1: register ‘GobiNet’ at usb-0000:00:14.0-1, GobiNet Ethernet Device, 52:33:f0:9a:86:64


Or you can check by “ls /sys/bus/usb/devices/*.8/net”

Thanks for your reply. Appreciate it!