Skip to content

Rage Against the Shell

Linux tips and other things…

  • Home
  • Contact
  • Privacy Policy

Rename network interfaces in Ubuntu

Posted on May 19, 2016 - September 25, 2016 by Mr. Reboot

Tested on Ubuntu 16

From Ubuntu 15, network interfaces names are generated by systemd/udev using predictable names based in several policies and schemes like firmware, BIOS, interface’s MAC address, geographical location and others. Names like enp2s0 for example.

However it’s possible change the name, if you want retro-compatibility with old software or for scripting, to do it add net.ifnames=0 to the /etc/default/grub file:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash net.ifnames=0"

Now make an update-grub:

~ $ sudo update-grub

And reboot:

~ $ sudo reboot

Interfaces now be called eth0, wlan0, eth1 etc…

Posted in Distros

Post navigation

Tuning ubuntu on Asus X series
GeoIP Location in Varnish

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Calendar

May 2016
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Apr   Jun »

Categories

  • Apache
  • Cisco
  • Command line
  • Distros
  • Dovecot
  • File systems
  • Gadgets
  • GlusterFS
  • MySQL
  • Nginx
  • NTP
  • Opendkim
  • Pacemaker + Corosync
  • Postfix
  • Raspberrypi
  • SSH
  • SSL
  • Varnish

RSS RSS

  • Using qrencode January 16, 2022
  • Compile varnish module vmod_vsthrottle April 22, 2020
  • SSH vpn with sshuttle April 9, 2020
  • Disable swap in systemd December 16, 2019
  • Getting the parent process pid October 12, 2018
Proudly powered by WordPress | Theme: micro, developed by DevriX.