1829054 Members
2891 Online
109986 Solutions
New Discussion

two network cards

 
SOLVED
Go to solution
Fadia Almarei
Super Advisor

two network cards

Hi All , i have two network card in alinux 9 system , i want to know how to configure these two cards to make load balancing ,or fail over processes or both for these two cards ,and i want these cards to take the same IP adress . thanks All
fadia.marei
16 REPLIES 16
Alexander Chuzhoy
Honored Contributor
Solution

Re: two network cards

take a look at this link-http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/ref-guide/s1-modules-ethernet.html



see the section
A.3.2. The Channel Bonding Module

Good Luck.
Olivier Drouin
Trusted Contributor

Re: two network cards

this is what you want
http://h18004.www1.hp.com/support/files/server/us/download/20073.html

install the rpm and read
/usr/share/doc/bonding-/bonding.txt
Fadia Almarei
Super Advisor

Re: two network cards

thanks for help

but i still find it difficult to be sure that the configuration work properly ,please send me or tell me in steps how to be sure that my configuration is work

thanks,
fadia
fadia.marei
Alexander Chuzhoy
Honored Contributor

Re: two network cards

Your server should be connected with it's two nics (with the same IP address )to a network.
Ping this address.
Then dissconnect one network adapter.
The ping should continiue replying.If it does-then connect the dissconnected adapter and dissconnect the other one.If the ping still replies-then it works....
Steven E. Protter
Exalted Contributor

Re: two network cards

I hate to poach, but wonder if I can do this with 1000 BaseT cards.

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
Fadia Almarei
Super Advisor

Re: two network cards

hi SEP

what do you mean by poach
fadia.marei
Olivier Drouin
Trusted Contributor

Re: two network cards

Yes you can!

Check my modules.conf

###
alias eth0 bcm5700
alias eth1 bcm5700
options bcm5700 full_duplex=1 lone_speed=1000
alias eth2 e1000
alias eth3 e1000
options e1000 Duplex=2 Speed=1000
alias scsi_hostadapter qla2300
alias scsi_hostadapter1 cciss
alias usb-controller usb-ohci
alias bond0 bonding
options bond0 -o bonding0 miimon=100
alias bond1 bonding
options bond1 -o bonding1 miimon=100
###

My bonding is even set between different NIC drivers...

Steven E. Protter
Exalted Contributor

Re: two network cards

What i meant by poaching was hijacking your thread to ask my question instead of starting my own.

My question seemed quite releated and I was quite lazy, so I posted. No points deserved.

Excellent thread. Going to order another pair of gigabit cards for a project.


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
Olivier Drouin
Trusted Contributor

Re: two network cards

The cabling must be real clean for gigabit to work though...

I have problems right now with my cat5 cables. I'll need to test cat5e or cat6 to see if I can get better speed.
Fadia Almarei
Super Advisor

Re: two network cards

Hi all , please i do all the configuration and when i test the ifconfig ,the result is " bond0 Link encap:Ethernet HWaddr 00:0D:56:B9:71:54
inet addr:212.14.224.33 Bcast:212.14.224.63 Mask:255.255.255.192
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:626593 errors:0 dropped:0 overruns:0 frame:0
TX packets:120729 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:57402990 (54.7 Mb) TX bytes:105293582 (100.4 Mb)

eth0 Link encap:Ethernet HWaddr 00:0D:56:B9:71:54
inet addr:212.14.224.33 Bcast:212.14.224.63 Mask:255.255.255.192
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:626593 errors:0 dropped:0 overruns:0 frame:0
TX packets:120729 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:57402990 (54.7 Mb) TX bytes:105293582 (100.4 Mb)
Interrupt:28

eth1 Link encap:Ethernet HWaddr 00:0D:56:B9:71:55
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:544 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:51735 (50.5 Kb) TX bytes:0 (0.0 b)
Interrupt:29

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2361545 errors:0 dropped:0 overruns:0 frame:0
TX packets:2361545 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:152937041 (145.8 Mb) TX bytes:152937041 (145.8 Mb)" and when i test by changing the cable of the network to driver two there is no response from the ping ,it seems not work tell me what to do ,
fadia.marei
Fadia Almarei
Super Advisor

Re: two network cards

and the modules.conf file is as the following "alias scsi_hostadapter aacraid
alias eth0 tg3
alias eth1 tg3
alias bond0 bonding
options bond0 mode=0

alias usb-controller usb-ohci" please tell me what to do
fadia.marei
Fadia Almarei
Super Advisor

Re: two network cards

please i need your help , most the documentation i read tell me that i must have ifenslave software ,and a /usr/src/linux/include/linux/if_bonding.h but, i do not have these
fadia.marei
Olivier Drouin
Trusted Contributor

Re: two network cards

Show us your /usr/sysconfig/network-scripts/ifcfg-*
config files.
Fadia Almarei
Super Advisor

Re: two network cards

after configuring my system by bonding configuration , i know that to do the test of the fail over i try to remove one card or cable and see if the other is work or not , but if i want to do the test for load balancing configuration what should i do for that ,

please help
fadia.marei
Peeyush
Regular Advisor

Re: two network cards

fadia,

look at http://geocities.com/peeyush_maurya/bonding.htm

#how to the test of the fail over .
- fadia, unplug the cable will be easy and effective way as taking out ur NIC will mess with few settings.

#i want to do the test for load balancing configuration
- ifconfig, iptraf will show u the usage
eg.
[root@]# ifconfig | grep bytes
RX bytes:36823836 (35.1 Mb) TX bytes:191044357 (182.1 Mb)
RX bytes:242485455 (231.2 Mb) TX bytes:84063200 (80.1 Mb)
RX bytes:450753 (440.1 Kb) TX bytes:450753 (440.1 Kb)bytes:83871086 (79.9 Mb)
here:: first line is my eth0, second eth1, third lo

Regards,
Peeyush
any suggestion for my site.. http://geocities.com/peeyush_maurya/
Roshan Sequeira
Advisor

Re: two network cards

Olivier, what do the -o bonding0 and -o bonding1 options in your modules.conf file mean? Is it necessary to copy bonding.o to bonding0.o and bonding1.o?