cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
anchor
New Contributor III

Port-Channel and Linux Bonding

Ok, so it took me a while to get my head around 'active' only (static) and which Linux mode that correlated with... So, I figured I would post my configs here to save others some time.  The take away is that you can't test the bond with ping as with Redhat 6 the kernel drops the packets thinking they are spoofs.  (Thanks Evan for all you help! )

SERVER CONFIGs

cat ifcfg-bond0

DEVICE=bond0

USERCTL=no

BOOTPROTO=none

ONBOOT=yes

IPADDR=10.0.1.10

NETMASK=255.255.255.0

BONDING_OPTS="miimon=100 mode=0 downdelay=300 updelay=300"

#HWADDR=00:01:02:03:04:00

TYPE=BOND

IPV6INIT=no

[root@**** network-scripts]# cat ifcfg-eth4

DEVICE=eth4

TYPE=Ethernet

UUID=f55fb2ea-c856-4c07-9d22-856c3b7d2ea7

#HWADDR=00:01:02:03:04:01

ONBOOT=yes

NM_CONTROLLED=no

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

USERCTL=no

[root@**** network-scripts]# cat ifcfg-eth5

DEVICE=eth5

TYPE=Ethernet

UUID=9b1fa7e8-f678-4ff2-a9e2-467a0647265b

ONBOOT=yes

NM_CONTROLLED=no

BOOTPROTO=none

MASTER=bond0

#HWADDR=00:01:02:03:04:02

SLAVE=yes

USERCTL=no

[root@**** network-scripts]# cat ifcfg-eth6

DEVICE=eth6

TYPE=Ethernet

UUID=dc1593f3-5dc7-40d4-ac97-7bdd393e3255

ONBOOT=yes

NM_CONTROLLED=no

BOOTPROTO=none

MASTER=bond0

#HWADDR=00:01:02:03:04:03

SLAVE=yes

USERCTL=no

cat /etc/modprobe.d/bonding.conf

alias netdev-bond0 bonding

EXAMPLE SWITCH CONFIG (just relevant parts)

interface port-channel 1

  description echoLAN

  spanning-tree bpdufilter enable #(don't think this is required)

  spanning-tree edgeport

  no shutdown

interface gigabit-switchport 0/11

  no shutdown

  channel-group 1 mode on

!

interface gigabit-switchport 0/12

  no shutdown

  channel-group 1 mode on

!

interface gigabit-switchport 0/13

  no shutdown

  channel-group 1 mode on

!

Labels (1)
0 Kudos