Operating System - Linux
1829159 Members
2049 Online
109986 Solutions
New Discussion

Changing network card binding order in Redhat linux AS 2,1

 
SOLVED
Go to solution
Praveen R
Frequent Advisor

Changing network card binding order in Redhat linux AS 2,1

How to change network card binding order incase of dual NIC as we can change in MS windows network properties.

Regards
Praveen R
3 REPLIES 3
Mark Grant
Honored Contributor

Re: Changing network card binding order in Redhat linux AS 2,1

Do you mean the order of which ip addresses get assigned?

Red Hat's method of doing this boggles my mind. I can not believe they thought this was the easiest way to do it (I have actually logged on to a Red Hat box for the first time in a long time to look at this).

All the interface cards are called eth0, eth1,eth2 etc etc etc

It looks to me like you need to have a config file "ifcfg-eth?" where the ? is which NIC you are talking about. In here you put which IP and stuff you want to be associated with this NIC. It gets a lot more painful if you start looking at their ifup and the ifup-aliases file but it looks like you probably don't need to.

I hope somebody shows me I'm wrong here because I seem to be able to achieve the same thing in three lines on most systems.



Never preceed any demonstration with anything more predictive than "watch this"
Claudio Cilloni
Honored Contributor

Re: Changing network card binding order in Redhat linux AS 2,1

I think what Mark is saying is right. in RH9 and RH73 systems the ifcfg-eth0 file is located in /etc/sysconfig/network-scripts/. It contains all is needed to configure a network card.

Ciao!
Claudio
Steven E. Protter
Exalted Contributor
Solution

Re: Changing network card binding order in Redhat linux AS 2,1

As far as which card gets picked first, that is done by its position along the pci bus. No choice there.


Everything else is controlled by the files in /etc/sysconfig/network-scripts

The order starts with ifcfg-eth0 then ifcfg-eth0:1 etc.

The actual assignment need not be in numeric order.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com