Skip to content

Instantly share code, notes, and snippets.

@maxivak
Last active October 17, 2017 08:26
Show Gist options
  • Save maxivak/4b4a2e9294f123380f35c93d653d5c37 to your computer and use it in GitHub Desktop.
Save maxivak/4b4a2e9294f123380f35c93d653d5c37 to your computer and use it in GitHub Desktop.
Rename interface to eth0 on Ubuntu 16.04

Fix interface to 'eth0'

for ubuntu 16.04:

sudo sed -i "s/GRUB_CMDLINE_LINUX_DEFAULT=\"\(.*\)\"/GRUB_CMDLINE_LINUX_DEFAULT=\"\1 net.ifnames=0\"/" /etc/default/grub 
sudo update-grub2
  • reboot

  • check

ip addr

ifconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment