Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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.

share|improve this question

migrated from Feb 6 '12 at 19:06

This question came from our site for system and network administrators.

1 Answer 1

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 dev eth1  proto kernel  scope link  src 
default via dev eth1 

In my example, my default route is via eth1.

share|improve this answer

Your Answer


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.