Modify network interface name to ethX (Ubuntu 16.04.5)

Step 1. Check dmesg

$ dmesg | grep -i eth
[    2.993750] igb 0000:06:00.0 enp6s0: renamed from eth1
[    3.080609] igb 0000:05:00.0 enp5s0: renamed from eth0
[    3.140633] igb 0000:3b:00.0 enp59s0f0: renamed from eth2
[    3.236701] igb 0000:3b:00.1 enp59s0f1: renamed from eth3

Step 2. Edit GRUB (GRand Unified Bootloader)

$ sudo vi /etc/default/grub

GRUB_CMDLINE_LINUX=""

to 

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

$ sudo grub-mkconfig -o /boot/grub/grub.cfg

Step 3. Modify /etc/network/interfaces and reboot

$ sudo vi /etc/network/interfaces
$ sudo reboot

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *