bonding

Matthew Joyce MJoyce at ccia.unsw.edu.au
Mon Sep 6 02:26:01 CDT 2004


Hi,

Thanks everyone who replied.
I fixed up ifcfg-eth0, I think one of our developers had ran setup and
configured eth0 to be static.
They also fiddled with iptables and I still cannot ssh into this box,
but can https, so I reckon the network is fixed.

I tried pinging from the box and disconnected the cables.
Tailing messages I could see the nics becoming active.

My modules.conf was already set 

alias eth0 tg3
alias eth1 tg3
alias scsi_hostadapter aacraid
alias usb-controller usb-ohci
alias bond0 bonding
options bond0 mode=1 miimon=500

Thanks again.


Matt Joyce
Children's Cancer Institute Australia
http://www.ccia.org.au
 

> -----Original Message-----
> From: Sean Plaice [mailto:splaice at gmail.com] 
> Sent: Saturday, 4 September 2004 4:55 AM
> To: Matthew Joyce
> Cc: linux-poweredge at dell.com
> Subject: Re: bonding
> 
> On Fri, 3 Sep 2004 17:02:58 +1000, Matthew Joyce 
> <mjoyce at ccia.unsw.edu.au> wrote:
> > /etc/sysconfig/network-scripts/ifcfg-bond0
> > # Channel Bonding Interface - MJoyce May 2004 DEVICE=bond0 
> > BOOTPROTO=static
> > BROADCAST=aaa.bbb.ccc.255
> > IPADDR=aaa.bbb.ccc.21
> > NETMASK=255.255.255.0
> > NETWORK=aaa.bbb.ccc.0
> > ONBOOT=yes
> > USERCTL=NO
> > 
> > /etc/sysconfig/network-scripts/ifcfg-eth0
> > DEVICE=eth0
> > ONBOOT=yes
> > BOOTPROTO=static
> > IPADDR=aaa.bbb.ccc.21
> > NETMASK=255.255.255.0
> > GATEWAY=aaa.bbb.ccc.1
> --
> The missing MASTER value in eth0 cfg would cause the 
> interfaces to not bond. The redhat network configuration 
> scripts use the MASTER/SLAVE values to determine if it should 
> add the interface the bond device using ifenslave.
> 
> This was pointed out by another poster, who also noted that 
> you forgot to post the contents of /etc/modprobe.conf. Your 
> modprobe.conf should include specific configuration regarding 
> the setup of your bonded interfaces (mode, miimon settings, 
> arp settings).
> 
> > 
> > /etc/sysconfig/network-scripts/ifcfg-eth1
> > # Broadcom Corporation|NetXtreme BCM5703 Gigabit Ethernet # 
> Modified 
> > for channel bonding by MJoyce May 2004 # original file 
> moved to /root
> > DEVICE=eth1
> > BOOTPROTO=none
> > HWADDR=00:0F:1F:6B:74:C2
> > ONBOOT=yes
> > MASTER=bond0
> > SLAVE=yes
> > USERCTL=no
> > 
> > If I unplug one nic I would expect network operation to 
> continue, but 
> > this is not happening.
> > What happens is nothing, not network, if I reconnect, still nothing.
> > If I manualy bring down/up the nics, still nothing.
> > Even a reboot did nothing.
> > I had to shutdown/start the server.
> --
> If the interfaces are not actually bonded properly this is to 
> be expected. Post the output from 'cat 
> /proc/net/bonding/bond0'. This will display the status and 
> configuration for your bonding device.
> 
> > What happening here ?  Any ideas ?
> > I have not had much exposure to RH, and this server will be 
> needed as 
> > a prodcution server within a few weeks, I'm keen to get it 
> sorted out.
> --
> Your bonding is probably just misconfigured. This is not 
> really a redhat specific issue, redhat actually makes setting 
> up bonded interfaces very trivial.
> 
> Also depending on the bonding mode you use your network 
> switch will need to be configured appropriatly for the mode 
> you are using. This is all nicely documented in bonding.txt 
> in the kernel src docs.
> 
> > 
> > Has anyone else had problems bonding nics ?
> --
> No, but here is an example configuration I currently use. 
> (Ignore the lack of an ip address on my bond0, this interface 
> handles it ip's on 802.1q vlan tagged interfaces)
> 
> ifcfg-bond0
> DEVICE=bond0
> IPADDR=0.0.0.0
> NETMASK=255.255.255.0
> ONBOOT=yes
> BOOTPROTO=none
> USERCTL=no
> 
> ifcfg-eth1
> # Intel Corp.|82546GB Gigabit Ethernet Controller
> DEVICE=eth1
> USERCTL=no
> ONBOOT=yes
> MASTER=bond0
> SLAVE=yes
> BOOTPROTO=none
> HWADDR=00:C0:9F:43:3E:07
> 
> ifcfg-eth2
> # Intel Corp.|82546GB Gigabit Ethernet Controller
> DEVICE=eth2
> USERCTL=no
> ONBOOT=yes
> MASTER=bond0
> SLAVE=yes
> BOOTPROTO=none
> HWADDR=00:04:23:A7:FE:8C
> 
> ifcfg-eth3
> # Intel Corp.|82546GB Gigabit Ethernet Controller
> DEVICE=eth3
> USERCTL=no
> ONBOOT=yes
> MASTER=bond0
> SLAVE=yes
> BOOTPROTO=none
> HWADDR=00:04:23:A7:FE:8D
> 
> modprobe.conf
> alias bond0 bonding
> options bond0 miimon=100 mode=6
> alias eth0 e1000
> alias eth1 e1000
> alias eth2 e1000
> alias eth3 e1000
> 
> --
> Sean
> 




More information about the Linux-PowerEdge mailing list