Ubuntu return to old interfaces ethX

De Wiki do Bernardino
Revisão em 19h18min de 20 de janeiro de 2017 por JPB (Discussão | contribs)
Ir para: navegação, pesquisa

Change default network name (ens33) to old “eth0” on Ubuntu 16.04

How-to 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.

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.

$ 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: 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