Ubuntu 16: rename network interface

image_print

This manual is for Ubuntu 16.04. For Ubuntu 18 see How to rename the network interface on Ubuntu 18.04.

vi /etc/default/grub
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
update-grub
Grub-Konfigurationsdatei wird generiert ...
Linux-Abbild gefunden: /boot/vmlinuz-4.4.0-21-generic
initrd-Abbild gefunden: /boot/initrd.img-4.4.0-21-generic
erledigt

Dynamic IP (DHCP)

vi /etc/network/interfaces
#auto ens32
#iface ens32 inet dhcp
auto eth0
iface eth0 inet dhcp

Static IP

vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
broadcst 192.168.0.255
dns-nameservers 192.168.0.2 192.168.0.3
dns-search lan
reboot