Ubuntu: renaming Ethernet interfaces from “p1p1” to “eth0”

systemd generates Ethernet interface names like p1p1 or enp48a instead of the traditional eth0 to avoid race conditions.

When do you need eth0 interface name

Some old software (e.g. old Matlab versions) will only accept eth0 for licensing using the MAC address (low security!) Also sometimes for convenience in embedded/IoT systems where you know you’ll only have one Ethernet interface, you’d like to simple return to eth0.

Force legacy eth0 network interface names

  1. edit /etc/default/grub:

    GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
  2. reboot
  3. login and type ip a to confirm your network adapter is at eth0

Leave a Comment