User Tools

Site Tools


ubuntu:classiclinuxinterfacenames

Classic Network Interface Names

Default ifconfig

enp4s0f2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.176.110  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::d334:8200:7b74:3f8e  prefixlen 64  scopeid 0x20<link>
        ether 80:fa:5b:02:f7:5f  txqueuelen 1000  (Ethernet)
        RX packets 144472722  bytes 151841659416 (151.8 GB)
        RX errors 0  dropped 35036  overruns 0  frame 0
        TX packets 47781942  bytes 39829907985 (39.8 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Restore EthX

  1. edit /etc/default/grub
  2. append “net.ifnames=0 biosdevname=0” to GRUB_CMDLINE_LINUX
  3. save /etc/default/grub
  4. run update-grub

Ifconfig now showing eth0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.176.110  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::d334:8200:7b74:3f8e  prefixlen 64  scopeid 0x20<link>
        ether 80:fa:5b:02:f7:5f  txqueuelen 1000  (Ethernet)
        RX packets 144472722  bytes 151841659416 (151.8 GB)
        RX errors 0  dropped 35036  overruns 0  frame 0
        TX packets 47781942  bytes 39829907985 (39.8 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
ubuntu/classiclinuxinterfacenames.txt · Last modified: 2019/02/06 09:24 by tschulz