You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

Starting from Debian 9, the Network interface naming rules changed from ethxx to ensxx convention. This change was necessitated by the release of systemd/udev newer than v197. You can read more on Systemd Network device naming schemes.

Below is my current network configuration:

$ ip ad
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 52:54:00:6b:b7:3d brd ff:ff:ff:ff:ff:ff
    inet 192.168.121.52/24 brd 192.168.121.255 scope global dynamic ens5
       valid_lft 2747sec preferred_lft 2747sec
    inet6 fe80::5054:ff:fe6b:b73d/64 scope link 
       valid_lft forever preferred_lft forever

If you’re obsessed with old naming, don’t despair since it can be changed. To switch to the old schema, add the following kernel parameters to GRUB_CMDLINE_LINUX variable in /etc/default/grub file.

$ sudo nano /etc/default/grub
......
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

See below screenshot

change network interfaces naming debian

You need to update grub and reboot your system after making the change.

$ sudo update-grub
$ sudo reboot

Confirm your new network configuration.

$ ip ad
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 52:54:00:6b:b7:3d brd ff:ff:ff:ff:ff:ff
    inet 192.168.121.52/24 brd 192.168.121.255 scope global dynamic eth0
       valid_lft 3563sec preferred_lft 3563sec
    inet6 fe80::5054:ff:fe6b:b73d/64 scope link 
       valid_lft forever preferred_lft forever

That’s how easy it is to change network naming convention to ethXX on Debian 10 (Buster) / Debian 9 (Stretch).

Similar:

How To Configure 802.1q VLAN Tagging on RHEL / CentOS 7/8 & Fedora Interface

How To Customize Qcow2/Raw Linux OS disk image with virt-customize

How To Deploy OpenStack Cloud on CentOS 7 With Packstack RDO

As an appreciation for the content we put out,
we would be thrilled if you support us!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

LEAVE A REPLY

Please enter your comment!
Please enter your name here