UcremBlog #1: How to change Ethernet name on Ubuntu 16
Hi,
From Ubuntu 16 a change was introduced regarding the name of the network interfaces.
In fact, since release 16, Ubuntu calls the enpXsX network interfaces and no longer ethX.
It may also happen that with a hardware-level system change (such as adding a graphics card or any PCI card), when you restart the system, the network interface name changes.
To overcome this problem and then return to the ethX name and make it permanent I created this little guide.
Warning! Execute these commands only if you have access to the machine locally, you may lose your connection and no longer reach your machine.
ok let's start!
Point 1) Edit the Grub with the following command:
sudo nano /etc/default/grub
Add or change the following line:
GRUB_CMDLINE_LINUX = "net.ifnames = 0 biosdevname = 0"
Save the file and exit.
Step 2) Update the Grup with the following command:
sudo update-grub
Step 3) Restart
On reboot, if you do an ifconfig you do not see the network card do these other steps:
Step 1) Edit the interfaces file:
sudo / etc / network / interfaces
Change the enpXsX names to ethX
Save and exit
Step 2) Restart the network services:
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
now if you redo the ifconfig command you should find your network card with the name ethX and it will remain in such a way after every reboot, even if you change the hardware of the machine.
If you have any question or problem let me know and i answer asap :)
Bye
You upvoted me I upvoted you. Welcome to Steemit Italian guy from Milan.
Cool! I follow you.
Congratulations @ucrem! You received a personal award!
Happy Birthday! - You are on the Steem blockchain for 1 year!
Click here to view your Board
Congratulations @ucrem! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!