[opensuse] bonding for dummies...
Ok, trying to figure out how to bond the network cards on SUSE into one. Man page for ifcfg-bonding says: "To setup a bonding interface you need a configuration file ifcfg-bond<X> with the usual network settings. But you must add additional variables" Ok, I need a configuration file. Where does it go? I'm reading the Linux Ethernet Bonding Driver HOWTO but it fails to tell you where to put the config file (how about specifying a path at least the first time a file is mentioned, or even every time, just to make life simple?) It also suggests that to determine if ones server has the capability to do this one use the grep ifenslave /bin/ifup command - which returns command not found but in fact there appears to be an ifenslave program in /sbin, and there is a file called ifup in there as well. oh well, I'm still coming to grips with learning grep. Thanks. - Joel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Here's a copy from one of my configurations:
BOOTPROTO='static'
BROADCAST='172.17.6.255'
IPADDR='172.17.6.192'
MTU='1500'
NETMASK='255.255.255.0'
NETWORK='172.17.6.0'
REMOTE_IPADDR=''
STARTMODE='onboot'
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=balance-rr miimon=100'
BONDING_SLAVE0='bus-pci-0000:1a:00.0'
BONDING_SLAVE1='bus-pci-0000:1a:00.1'
BONDING_SLAVE2='bus-pci-0000:15:00.0'
BONDING_SLAVE3='bus-pci-0000:15:00.1'
In general, just setup however many interfaces you want to bond to
dhcp first. This will generate an
/etc/sysconfig/network/ifcfg-eth-XXXXXXX..... Change bootproto to
none, and startmode to off in them. Now grab your bus-pci info from
them and list them as your bonding_slaves...this should be enough to
get you going!
also, /usr/src/KERNEL/Documentation/networking/bonding.txt should be
the most recent info for all the bonding options out there. Default
method is to have a round-robin mode, but a lot only use the
active-passive method. i like more throughput, while maintaining
redundancy! in our 10g cluster, i have to use the active-passive
method for our RAC interconnect though. At the time of build, Oracle
stated that was the only bonded method that they would support.
BUMMER!!! =p
Good luck, and ask away if you have any additional questions!!
Mike
On 10/10/07, JJB
Ok, trying to figure out how to bond the network cards on SUSE into one.
Man page for ifcfg-bonding says:
"To setup a bonding interface you need a configuration file ifcfg-bond<X> with the usual network settings. But you must add additional variables"
Ok, I need a configuration file. Where does it go? I'm reading the
Linux Ethernet Bonding Driver HOWTO
but it fails to tell you where to put the config file (how about specifying a path at least the first time a file is mentioned, or even every time, just to make life simple?)
It also suggests that to determine if ones server has the capability to do this one use the
grep ifenslave /bin/ifup
command
- which returns command not found
but in fact there appears to be an ifenslave program in /sbin, and there is a file called ifup in there as well.
oh well, I'm still coming to grips with learning grep.
Thanks.
- Joel
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Here's a copy from one of my configurations:
BOOTPROTO='static' BROADCAST='172.17.6.255' IPADDR='172.17.6.192' MTU='1500' NETMASK='255.255.255.0' NETWORK='172.17.6.0' REMOTE_IPADDR='' STARTMODE='onboot' BONDING_MASTER='yes' BONDING_MODULE_OPTS='mode=balance-rr miimon=100' BONDING_SLAVE0='bus-pci-0000:1a:00.0' BONDING_SLAVE1='bus-pci-0000:1a:00.1' BONDING_SLAVE2='bus-pci-0000:15:00.0' BONDING_SLAVE3='bus-pci-0000:15:00.1'
In general, just setup however many interfaces you want to bond to dhcp first. This will generate an /etc/sysconfig/network/ifcfg-eth-XXXXXXX..... Change bootproto to none, and startmode to off in them. Now grab your bus-pci info from them and list them as your bonding_slaves...this should be enough to get you going!
also, /usr/src/KERNEL/Documentation/networking/bonding.txt should be the most recent info for all the bonding options out there. Default method is to have a round-robin mode, but a lot only use the active-passive method. i like more throughput, while maintaining redundancy! in our 10g cluster, i have to use the active-passive method for our RAC interconnect though. At the time of build, Oracle stated that was the only bonded method that they would support. BUMMER!!! =p
Good luck, and ask away if you have any additional questions!!
Mike
On 10/10/07, JJB
wrote: Ok, trying to figure out how to bond the network cards on SUSE into one.
Man page for ifcfg-bonding says:
"To setup a bonding interface you need a configuration file ifcfg-bond<X> with the usual network settings. But you must add additional variables"
Ok, I need a configuration file. Where does it go? I'm reading the
Linux Ethernet Bonding Driver HOWTO
but it fails to tell you where to put the config file (how about specifying a path at least the first time a file is mentioned, or even every time, just to make life simple?)
It also suggests that to determine if ones server has the capability to do this one use the
grep ifenslave /bin/ifup
command
- which returns command not found
but in fact there appears to be an ifenslave program in /sbin, and there is a file called ifup in there as well.
oh well, I'm still coming to grips with learning grep.
Thanks.
- Joel
Thanks Michael. Does the ifcfg-bond<X> go in the same folder as
Michael Kershaw wrote: the ifcfg-eth-XXXXXXX file? What does the X stand for, and what is the filename syntax for he ifcfg-bond file? Thanks much, - Joel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Oct 10 2007 16:42, JJB wrote:
Thanks Michael. Does the ifcfg-bond<X> go in the same folder as the ifcfg-eth-XXXXXXX file?
It goes into the same _directory_, yes.
What does the X stand for, and what is the filename syntax for he ifcfg-bond file?
Any arbitary number. The format is ifcfg-<NAME> or ifcfg-eth-id-<XX> (obsoleted in 10.3) or ifcfg-bus-pci-<PCIADDR> (obsoleted too) basically. You could even go and name it ifcfg-foobar I suppose, BONDING=yes should trigger all necessary stuff. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thanks everybody, it was pretty simple to get working with your help. Thanks, - Joel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dňa Thursday 11 October 2007 01:08:10 JJB ste napísal:
Ok, trying to figure out how to bond the network cards on SUSE into one.
Have you tried: YaST -> Network Devices -> Network Card Press 'Add' Select 'Bond' as Device Type. HTH Stano -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Stanislav Visnovsky wrote:
Dňa Thursday 11 October 2007 01:08:10 JJB ste napísal:
Ok, trying to figure out how to bond the network cards on SUSE into one.
Have you tried: YaST -> Network Devices -> Network Card
Press 'Add' Select 'Bond' as Device Type.
HTH
Stano
Hi Stano, Under Device Type there is only: Arcnet Bluetooth Dummy Ethernet FDDI Myrinet Token Ring USB Wireless Meanwhile, I've got it working via Michael Kershaw's very helpful posting. What release are you using? The servers we have here are running OpenSUSE 10.2 64 bit, and the one I just configured is running SLES 10.2 64 bit. Maybe bonding is in YAST under 10.3? - Joel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dňa Thursday 11 October 2007 20:24:07 JJB ste napísal:
Stanislav Visnovsky wrote:
Dňa Thursday 11 October 2007 01:08:10 JJB ste napísal:
Ok, trying to figure out how to bond the network cards on SUSE into one.
Have you tried: YaST -> Network Devices -> Network Card
Press 'Add' Select 'Bond' as Device Type.
HTH
Stano
Hi Stano,
Under Device Type there is only:
Arcnet Bluetooth Dummy Ethernet FDDI Myrinet Token Ring USB Wireless
Meanwhile, I've got it working via Michael Kershaw's very helpful posting. What release are you using? The servers we have here are running OpenSUSE 10.2 64 bit, and the one I just configured is running SLES 10.2 64 bit.
Maybe bonding is in YAST under 10.3?
Ah, sorry. Yes, I'm on 10.3. Stano -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Jan Engelhardt
-
JJB
-
Michael Kershaw
-
Stanislav Visnovsky