HOWTO : Add or rename network interface on Debian 5.0

When you insert a new network interface to a already setup server, it will not recognized your new added network interface correctly. However, we can edit it manually.

Step 1 :

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

Edit the MAC address and/or name of the interface when necessary.

Step 2 :

sudo nano /etc/network/interfaces

Add a new entry for the new interface accordingly.

auto eth2
iface eth2 inet dhcp

*dhcp if IP is assigned automatically by DHCP

Step 3 :

sudo ifconfig ethX up

sudo /etc/init.d/networking restart

*where ethX will be eth0, eth1, eth2 ….

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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: