Forum archive
New interfaces names in TurnkeyCore
Hi, im using Turnkeycore 16.1, which is based in Debian Buster 10.
The network interface name, e.g. eth0, is assigned to each hardware in the Linux kernel through the user space configuration mechanism, udev (see Section 3.3, “The udev system”), as it is found. The network interface name is referred as physical interface in ifup(8) and interfaces(5).
But since Debian Buster the preferred way is:
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInte...
- Names incorporating Firmware/BIOS provided index numbers for on-board devices (example:
eno1) - Names incorporating Firmware/BIOS provided PCI Express hotplug slot index numbers (example:
ens1) - Names incorporating physical/geographical location of the connector of the hardware (example:
enp2s0) - Names incorporating the interfaces's MAC address (example:
enx78e7d1ea46da) - Classic, unpredictable kernel-native ethX naming (example:
eth0)
So instead eth0, eth1... the names could be enp2s0, enp2s1 ... etc..So i have beent tweaking and googling and i cant get the "new" names, i got eth0 and eth1 to the two network interfaces added using vbox ( eth0 in mode bridge, and eth1 in mode internal network)
How can i setup turnkey to appear the new names instead old, deprecated names ?
Thanks
As you note we use the legacy interface names. We do that intentionally as NICs tend to be static in servers, so we figured that made the most sense.
Having said that, if you prefer to use the "predictable names", then changing it to use that shouldn't cause any issues.
If you look in the grub config file (/etc/default/grub) then you'll find this line:
Simply remove the 'net.ifnames=0' so it looks like this:
Then update grub and reboot:
And you should now have "predictable names". If that's your only interface, then Confconsole should auto update to report on the new interface. If not, you may need to explicitly tell it which interface to show (set 'default_nic' value in /etc/confconsole/confconsole.conf).