Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SECONDARY MENU
Advertisement
YOU ARE HERE: Home Linux How To's Ubuntu Change default network name (ens33) to old eth0 on Ubuntu 16.04
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Change default network name (ens33) to old eth0 on
Ubuntu 16.04
Just after the Ubuntu 16.04 installation, I came to know that the network interface name got changed to
ens33 from old school eth0. If you ever interested in changing interface names to old type ethX, here is
the tutorial for you.
As you can see in the following command, my system is having a network adapter called ens33.
84
Note: This is just the case of VMware environment, it may vary depends on the hardware but the steps to
get back ethX will be the same.
87
SHARES
$ ip a
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
1: lo: <loopback,up,lower_up> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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: ens33: <broadcast,multicast,up,lower_up> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:05:a3:e2 brd ff:ff:ff:ff:ff:ff
inet 192.168.12.12/24 brd 192.168.12.255 scope global dynamic ens33
valid_lft 1683sec preferred_lft 1683sec
inet6 fe80::20c:29ff:fe05:a3e2/64 scope link
valid_lft forever preferred_lft forever
From the dmesg command, you can see that the device got renamed during the system boot.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
To get an ethX back, edit the grub file.
From:
GRUB_CMDLINE_LINUX=""
To:
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
Edit the interface file and change the network device name so that you will have a static ip address for
ethX.
If your network card is DHCP enabled, you can skip the below step
From:
auto ens33
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
iface ens33 inet static
address 192.168.12.12
netmask 255.255.255.0
dns-nameservers 192.168.12.2
gateway 192.168.12.2
To:
auto eth0
iface eth0 inet static
address 192.168.12.12
netmask 255.255.255.0
dns-nameservers 192.168.12.2
gateway 192.168.12.2
$ sudo reboot
After the system reboot, just check whether you have an ethX back.
$ ip a
1: lo: <loopback,up,lower_up> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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 00:0c:29:05:a3:e2 brd ff:ff:ff:ff:ff:ff
inet 192.168.12.12/24 brd 192.168.12.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe05:a3e2/64 scope link
valid_lft forever preferred_lft forever
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Linux Server Tutorial
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Share This Post
How to Install Zabbix Agent Install qBittorrent on How To Install Zabbix How to Setup Docker
on CentOS 7 / Ubuntu Ubuntu 16.04 / Linux Mint Server 3.2 on CentOS 7 / Private Registry on CentOS
16.04 / Debian 8 18 / Fedora 25 Ubuntu 16.04 / Debian 8 7 / Ubuntu 16.04 / Fedora
Alternative to uTorrent 25
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Sorry, the browser you are using is not currently supported. Disqus actively supports the following browsers:
Firefox
Chrome
Internet Explorer 11+
Safari
THANKS!
THANK YOU. This is what resolved it for me after a PXE installation of Linux Mint 18.1 x64 Mate. Installation over the
network I'm sure wrecked the eth0 as being available since it was in use during install, and pushed the stupid
predictable naming convention on me that Ubuntu devs thought was pretty clever.
Thank's it also worked for me. But now I can't connect to the internet. Can someone help?
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com