How to change NIC name from ethX to something else

Share your expert knowledge and show off your skills.

How to change NIC name from ethX to something else

Postby jamil_redhat » Tue Jul 24, 2007 2:45 pm

How to change NIC Name (Default is ethX, where X is NIC number):


No of NIC: 1
Default Device Alias: eth0
New Device Alias: lan0


1. Open /etc/sysconfig/hwconf

And Change device: eth0 to as given bellow
class: NETWORK
bus: PCI
detached: 0
device: lan0
driver: 3c59x
desc: "3Com Corporation 3c905B 100BaseTX [Cyclone]"
network.hwaddr: 00:50:04:99:c4:1d
vendorId: 10b7
deviceId: 9055
subVendorId: 10b7
subDeviceId: 9055
pciType: 1
pcidom: 0
pcibus: 1
pcidev: b
pcifn: 0

2. open /etc/modprobe.conf

And Change eth0 to lan0

Change from
alias eth0 3c59x
alias lan0 3c59x

Save and Exit.

3. Change the name of /etc/sysconfig/network-scripts/ifcfg-eth0 file to /etc/sysconfig/network-scripts/ifcfg-lan0

mv /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-lan0

4. Reboot System.

Thats all System will show you during boot process

Bringing up lan0 [OK]
Lance Naik
Posts: 31
Joined: Tue Dec 30, 2003 11:25 pm
ICQ: 95288551
Yahoo Messenger:
Location: Karachi

Return to “%s” Howto's & Tip n' Tricks

Who is online

Users browsing this forum: No registered users and 1 guest