Change the Network Card name in Ubuntu 12.04

In this short tutorial, I will show you that how to change the NIC(s) name in Ubuntu 12.04.

First, we check the current NIC(s) name using ifconfig command:

ifconfig

eth0 is connected to the internet so, I want to give it a name: WAN

eth1 is connected to the Local Network, so I want to give it a name: LAN

To acheive this goal, just edit /etc/udev/rules.d/70-persistent-net.rules file:

sudo nano /etc/udev/rules.d/70-persistent-net.rules

By default, it assigns the name eth0,eth1 etc to the NIC(s):

Change it to whatever you want, like I want WAN for eth0 and LAN for eth1:

After that edit the /etc/network/interfaces file:

sudo nano /etc/network/interfaces

By default, it also assigns the name eth0,eth1 etc to the NIC(s):

Change it exactly the same as we assigned in the /etc/udev/rules.d/70-persistent-net.rules file, like WAN for eth0 and LAN for eth1:

Reboot the Ubuntu System!

After reboot, check your NIC(s) name using ifconfig command:

ifconfig

Hope this will help you!

Please Remember me in your prayers!

2 responses to “Change the Network Card name in Ubuntu 12.04

  1. Pingback: Ubuntu as a firewall/gateway router « Lazy Geek -:)

  2. Pingback: How to Change Interface Card Name on Ubuntu | blog_do_airton += coisa_nova;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: