Page 1 of 1

How to change NIC name from ethX to something else

Posted: Tue Jul 24, 2007 2:45 pm
by jamil_redhat
How to change NIC Name (Default is ethX, where X is NIC number):
----------------------------------------------------------------

Scnario:


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

STEPS:
-----

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
To
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]