[ale] Dual NICs
ChangingLINKS.com
x3 at ChangingLINKS.com
Fri Feb 14 15:49:31 EST 2003
I want some of that.
I have a software program that helps me do research on the Internet. It
bottlenecks 1 nic card, but not my internet connection. The program currently
takes days to run which leaves it vulnerable to lost electricity or other
crashes. Currently, if I run the program from 2 boxes (on the same LAN), it
runs the data twice as fast.
Will I get "twice" the bandwidth using a bonding driver and 2 nics?
Since reading this email, I added another nic to my server. It installed OK,
via Kudzu, and it has an ip and can be pinged.
I ran ifconfig, and got everything except the "bonding driver"
>From what I have googled, I have to recompile the kernel?
I did a makemenuconfig
IP: multicasting is enabled
multicast routing is enabled
Ethernet Bridging is "module" or <M>
Everything else that seems related is enabled.
The box is a RedHat 7.2 with up2date -uf
So I added : "alias bond0 bonding" to /etc/modules.conf
+IMPORTANT!!! If you are running on Redhat 7.1 or greater, you need
+to be careful because /usr/include/linux is no longer a symbolic link
+to /usr/src/linux/include/linux. If you build ifenslave while this is
+true, ifenslave will appear to succeed but your bond won't work. The
purpose
+of the -I option on the ifenslave compile line is to make sure it uses
+/usr/src/linux/include/linux/if_bonding.h instead of the version from
+/usr/include/linux.
ifenslave was in the /sbin directory.
I added the following line to /etc/conf.modules (or /etc/modules.conf):
alias bond0 bonding
I created ifcfg-bond0 file in /etc/sysconfig/network-scripts directory that
looks like this:
DEVICE=bond0
IPADDR=192.168.123.122
NETMASK=255.255.255.0
NETWORK=192.168.123.0
BROADCAST=192.168.231.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
On boot, the messages said :
bringing up interface bond0: [OK]
bringing up interface eth0: [OK]
bringing up interface eth1: [OK]
Then when I ran ifconfig, I got everything to look just like below, except
eth1 has a different IP address than bond0 and eth0.
I am using DHCP and both nics are connected to the same switch.
The Bcast is the same for all.
Is that ok?
How do I test it?
On Friday 14 February 2003 10:57 am, Chris Ricker wrote:
> On Thu, 13 Feb 2003, Thomas Holmquist wrote:
>
> > I want 2 NICs in my server (in a load-balancing array) they would both
> > be going to the same Lan.
> >
> > where should I get started/any tips?
>
> Look at the bonding driver. Basic idea is that you bind the two NICs
together
> as a single virtual interface:
>
> [cricker at mooru cricker]$ /sbin/ifconfig
> bond0 Link encap:Ethernet HWaddr 00:E0:18:25:00:F6
> inet addr:10.1.0.5 Bcast:10.1.255.255 Mask:255.255.0.0
> UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
> RX packets:36711512 errors:0 dropped:0 overruns:1 frame:0
> TX packets:70010247 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> RX bytes:911066397 (868.8 Mb) TX bytes:952155100 (908.0 Mb)
>
> eth0 Link encap:Ethernet HWaddr 00:E0:18:25:00:F6
> inet addr:10.1.0.5 Bcast:10.1.255.255 Mask:255.255.0.0
> UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
> RX packets:25427716 errors:0 dropped:0 overruns:0 frame:0
> TX packets:35040887 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> RX bytes:783462271 (747.1 Mb) TX bytes:499775924 (476.6 Mb)
>
> eth1 Link encap:Ethernet HWaddr 00:E0:18:25:00:F6
> inet addr:10.1.0.5 Bcast:10.1.255.255 Mask:255.255.0.0
> UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
> RX packets:11283796 errors:0 dropped:0 overruns:1 frame:0
> TX packets:34969360 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> RX bytes:127604126 (121.6 Mb) TX bytes:452379176 (431.4 Mb)
> <snip>
>
> Here, eth0 and eth1 are bound. Traffic is routed over bond0
>
> [cricker at mooru cricker]$ netstat -rn
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt
Iface
> 10.1.0.0 0.0.0.0 255.255.0.0 U 40 0 0
bond0
> 10.1.0.0 0.0.0.0 255.255.0.0 U 40 0 0
eth0
> 10.1.0.0 0.0.0.0 255.255.0.0 U 40 0 0
eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
> 0.0.0.0 10.1.0.1 0.0.0.0 UG 40 0 0
bond0
> [cricker at mooru cricker]$
>
> and load-balances across the underlying physical interfaces....
>
> later,
> chris
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
>
--
Wishing you Happiness, Joy and Laughter,
Drew Brown
http://www.ChangingLINKS.com
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list