[CentOS] How to change NIC alias?

Thu Dec 28 20:55:12 UTC 2006
Barry Brimer <lists at brimer.org>

> Hello all.
> I'm installing CentOS 4.4 over a PC with 3 ethernet cards, one onboard
> (gigabit) and the another two discrete PCI.
> During installation I have no choice to control who will be eth0, eth1
> and eth2, but I need that eth0 be the onboard ethernet.
> In the end of the installation, it turned out to be one of the
> discrete ethernet eth0.
> I need to change that alias, so that the actual eth0 become eth1 and vice 
> versa.
> Thanks a lot

Modify the "/etc/modprobe.conf" files to reflect the drivers you wish to 
use for each interface.  Also change the "HWADDR" directive in the 
interface configuration files which are located in 
"/etc/sysconfig/network-scripts" to match accordingly.