[SOLVED] default eth0
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.
Try adding the MAC addresses to the config files of the interfaces.
In /etc/udev/rules.d there is probably a file named ??-persistent-net.rules. You can tweak it to change the device name.
Just by curiosity, how can this be a need ?
I don't know if you can. I think the number (eth0 vs eth1) depends upon the order the kernel discovered them when booting up. It can also modify the device name of your disc drives if you add/remove some drives. That said, it may be possible to alter the device name assigned, but I don't know what the safe way to do that is in this case. Perhaps one of the other "linux gurus" here can help.
Do we have a 'Thank you' system here? Thank you nmset. Learnt a new thing.
This is a need because I am configuring a Oracle RAC
Both nodes need to be similar
node 1 has two network cards eth0 - 100 mbps, eth1 is 1Gbps
node2 has two network cards eth0-1gbps and eth1 is 100 mbps
somehow this auto detection has created an issue
Well, you should be able to disable the onboard NIC in the BIOS. That way, the OS won't see them at all, but you'll still have the Gigabit ethernet ports available.
Thanks a lot
my distro is centos 5.3 which is similar to Redhat5
Umm I am unable to disable the nic
I need both nic cards to be working.
Well, you could create an alias for the device name and use those for you RAC configuration. If you go into the network manager tool, you can do that.
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
note the contents
go to administration/network
disable/deactivate both network cards
open a terminal window logged in as root.
take the following line
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.....