Click to See Complete Forum and Search --> : default eth


rjnlinux
01-13-2010, 12:44 PM
I am running a linux on a old desktop
It has two network cards

one which is on the motherboard which is 100 mbps and an additional new card 1 gbps

now the motherboard network card is assigned eth1 and the additional card is assigned eth0


I am trying to configure Oracle RAC on this Desktop and I need
eth0 to be the motherboard card

how do i change them.

rjnlinux
01-13-2010, 01:50 PM
distro is centos 5.3
similar to redhat 5

furrycat
01-14-2010, 07:41 AM
According to this document (http://utcc.utoronto.ca/~cks/space/blog/linux/RHELEthernetNaming) it should be sufficient to rename the device in /etc/sysconfig/network/scripts/ifcfg-ethN. Although I have some CentOS 5.3 boxes available I don't have any I can just switch off and start playing with networking, so I tested on Fedora 11 (which is a bit newer). I found I also needed to do some udev hacking as described here (http://www.linuxforums.org/forum/linux-networking/119259-eth-renaming-upon-reboot.html). Some combination of the above should work for you.

rjnlinux
01-14-2010, 12:01 PM
This is what I did for the Centos 5.3 box (This method also works for RedHat also)

open a terminal window and issue the command
ifconfig

note the contents


go to administration/network
disable/deactivate both network cards

open a terminal window logged in as root.

vi /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/sysconfig/network-scripts/ifcfg-eth1

take the following line


HWADDR=00:19:B1:2A:BA:B8

and swap the lines from ifcfg-eth0 to ifcfg-eth1

save the files and go back to the admin/network screen and activate both the cards


run the command ifconfig again and note the contents- now you will see the info has changed.....