About me

Paolo Iannelli Picture

Paolo Iannelli

Sr. Software Engineer / Software Architect at LeaseWeb

Amsterdam Area, Netherlands
Information Technology and Services
Python, Big Data, Scalability, High Availability, Performance
Senior Software Engineer and Architect with more than 8 years experience.
Strong in critical thinking, problem solving and high performance architectures.
Paolo Iannelli Labs Rss

How to rename network interface in Ubuntu / Debian / SUSE / Linux

Posted on : 25-05-2011 | By : Paolo Iannelli | In : Linux administration, System Administration

Tags: , , , , , , , , , , , , ,


To rename a network interface in linux is easy, as long as you know how to do it !

Open the file “/etc/udev/rules.d/70-persistent-net.rules” and look for something like this :

This will be written in a single line, but for displaying reasons I had to split it in 3 lines

If you just want to rename the interface with mac address 00:11:22:33:44:55 to “eth0“, in this case you would just change the name stated in the NAME parameter.

  • NOTE : you don’t have to change the KERNEL parameter.

After doing this, remember also to check your /etc/network/interfaces file to reflect the interface’s name change.

Finally, restart the networking with :

That’s it !