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

Sometimes, an Ethernet interface will install itself as “p1p1” or “enp48a” or the like instead of the traditional “eth0”, and some old software will only accept “eth0” for licensing.

Here’s how to rename your network card to legacy names like “eth0” in Ubuntu if you need to:

  1. edit /etc/default/grub line to say

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

Tags:

Categories:

Updated: