Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have multiple USB to ethernet devices which are plugged to the same pc.

Is there a way to identify which one is mapped to which eth* network interface via usb port/etc ?

I have tried looking in lsusb and /proc, but haven't found anything useful.

share|improve this question
    
possible duplicate of what is the command to flash a NIC link light? –  Scott Pack Jul 12 '12 at 14:39

3 Answers 3

If your system uses udev for device management, you can use the following to get device IDs:

grep -i eth /var/log/udev

Provided your OS stores the udev activity log there; adjust when necessary.

share|improve this answer
    
Only eth0 is there (the pci network interface, non of the usb are there), so it doens't help. –  user62167 Jul 12 '12 at 13:35

Have you considered using the hardware addresses of the devices? That way you can map which device is connected to which eth*, though you wouldn't know exactly how (e.g. which USB port exactly - but do you really want this?)

You can obtain this information from ifconfig

share|improve this answer
    
I'm looking for a way which would work on different computers without having to map them –  user62167 Jul 12 '12 at 13:36

You could unplug it and plug it back in, then check the latest messages in dmesg.

share|improve this answer
    
This would work, but its not an option. –  user62167 Jul 12 '12 at 13:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.