Sysfs/network devices

From Gentoo Wiki
< Sysfs
Jump to:navigation Jump to:search
This page is a translated version of the page Sysfs/network devices and the translation is 100% complete.

Obtenha o nome do dispositivo listando o diretório /sys/class/net usando ls -al ou o comando tree (provido pelo pacote app-text/tree):

user $tree /sys/class/net
/sys/class/net/
├── enp2s14 -> ../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.0/net/enp2s14
├── lo -> ../../devices/virtual/net/lo
├── sit0 -> ../../devices/virtual/net/sit0
└── wlp8s0 -> ../../devices/pci0000:00/0000:00:1c.0/0000:08:00.0/net/wlp8s0