shep wrote:"iw dev/ls /sys/class/net/ip link" for Debian 9.
I use Debian 9, but sorry to say I am quite sure you are probably wrong for a simple reason:
iw is not installed during a netinstall, and the network always works fine after reboot, based on /etc/network/interfaces configuration and ifupdown tool (this is true for Debian, but not for all....).
And iw is only for
wireless configuration !
An other assumption is that the Debian installation
script is creating this default network name, bounded to the MAC address of the network card and PCI position.
example:
Code: Select all
ls -l /sys/class/net/
/sys/class/net/enp2s0 -> ../../devices/pci0000:00/0000:00:05.0/0000:02:00.0/net/enp2s0
To be noted that Debian 9 still installs
ifconfig (from
net-tools package) +
ifupdown tools as default network configuration tools, but systemd is able to configure by itself the network starting from /usr/lib/systemd/network/
99-default.link which is likely parameters used by a script to create the default network name.
see man { systemd.network, systemd.link, systemd-networkd.service, systemd.netdev, systemd-resolved.service }
ifupdown is not necessary anymore in Debian 9, and I investigate what can be cleaned up to avoid redundancy/conflict of network tools which is quite hard to understand (DNS / resolv / symlinks between network configuration tools..... ).