How to find out device name (ADSL modem connected via Ethernet) in Linux/Ubuntu? The name is required for using tcpdump, the connection is active and was created in UI.

link|improve this question
feedback

migrated from serverfault.com Feb 6 at 19:06

This question came from our site for system administrators and desktop support professionals.

1 Answer

up vote 1 down vote accepted

That depends: if you are using PPPoE, it will be ppp${n}, where n is allocated starting at 0, and the first available number used for a new connection.

If you are using NAT, or direct IP, it will just be the eth${n} interface, and communication will be through TCP/IP as normal.

The easiest way to figure out the device is probably run ip route show and look for the "default" line - the dev part of that will tell you what device is used for your default (eg: "everything else") route:

daniel@ki:~$ ip route show
172.16.23.0/24 dev eth1  proto kernel  scope link  src 172.16.23.5 
default via 172.16.23.1 dev eth1 

In my example, my default route is via eth1.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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