how to determine network device names

Bo Berglund bo.berglund at gmail.com
Sun Nov 7 21:25:59 UTC 2021


On Sun, 7 Nov 2021 12:28:20 -0500, Little Girl <littlergirl at gmail.com> wrote:

>This command will give it to you:
>
>ip address | grep "BROADCAST" | cut -d' ' -f2 | cut -d':' -f1
>ip route | grep kernel | cut -f2 -d'/' | cut -f3 -d' '
>
Thanks for the commands!

Results:
--------
On two Ubuntu 20.04.3 desktop machines:
1st command:
enp0s25
wlo1

2nd command
enp0s25
wlo1

On one Ubuntu 20.04.3 *server*, which has been release-upgraded from 16 to 18
before finally to 20:
1st command
eth0
wlan0

2nd command
tun0
tun1
eth0

So on the server the results vary between the commands but not on the desktops.


I still wonder about the real reason for changing the names...
Bitcoin mining with thousands of units all interconnected?


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list