echo /sys/class/net/[ew]*
Code: Select all
/sys/class/net/eth0
Code: Select all
root@lenny:/# rgrep -w eth0 /etc
/etc/udev/rules.d/70-persistent-net.rules:SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="44:8a:5b:9e:2d:57", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
/etc/samba/smb.conf.ucf-dist:; interfaces = 127.0.0.0/8 eth0
/etc/samba/smb.conf:; interfaces = 127.0.0.0/8 eth0
/etc/samba/smb-1.conf:; interfaces = 127.0.0.0/8 eth0
/etc/samba/smb.conf~:; interfaces = 127.0.0.0/8 eth0
/etc/samba/dhcp.conf: wins server = eth0:192.168.0.199 eth0:192.168.0.199
/etc/avahi/avahi-daemon.conf~:#allow-interfaces=eth0
/etc/avahi/avahi-daemon.conf.dpkg-dist:#allow-interfaces=eth0
/etc/avahi/avahi-daemon.conf:#allow-interfaces=eth0
/etc/network/interfaces~:allow-hotplug eth0
/etc/network/interfaces~:iface eth0 inet static
/etc/network/interfaces~:iface eth0 inet6 static
/etc/network/interfaces:allow-hotplug eth0
/etc/network/interfaces:iface eth0 inet static
/etc/network/interfaces:iface eth0 inet6 static
/etc/network/if-up.d/upstart: # Ignoring unknown interface eth0=eth0.
/etc/initramfs-tools/initramfs.conf:# Specify a specific network interface, like eth0
/etc/monit/monitrc:# check network public with interface eth0
/etc/dhcp/dhclient.conf:# interface "eth0";
/etc/dhcp/dhclient.conf:# interface "eth0";
Code: Select all
root@lenny:/# udevadm test-builtin net_id /sys/class/net/eth0 2>/dev/null
ID_NET_NAME_MAC=enx448a5b9e2d57
ID_OUI_FROM_DATABASE=Micro-Star INT'L CO., LTD.
ID_NET_NAME_PATH=enp2s0