[clue] EL-6 Ethernet port bonding

James Mills jmills at knowtown.com
Mon Jul 15 15:40:33 MDT 2013


if those files you cat in your post are from the system, it looks like you
have an extra E in line one of the ifcfg-bond0 file:
DEVICEE=
instead of
DEVICE=

I always put my parameters in the device ifcfg files myself and that always
works for me.

James


On Mon, Jul 15, 2013 at 3:15 PM, <clue-request at cluedenver.org> wrote:

> Send clue mailing list submissions to
>         clue at cluedenver.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://cluedenver.org/mailman/listinfo/clue
> or, via email, send a message with subject or body 'help' to
>         clue-request at cluedenver.org
>
> You can reach the person managing the list at
>         clue-owner at cluedenver.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of clue digest..."
>
>
> Today's Topics:
>
>    1. EL-6 Ethernet port bonding (Christopher Cross)
>    2. Re: EL-6 Ethernet port bonding (adam bultman)
>    3. Re: EL-6 Ethernet port bonding (Christopher Cross)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 15 Jul 2013 14:35:30 -0600
> From: Christopher Cross <g1ccross at gmail.com>
> Subject: [clue] EL-6 Ethernet port bonding
> To: "CLUE's mailing list" <clue at cluedenver.org>
> Message-ID:
>         <CANMPyz-+=ziaLr9_p_SiQ=V7n=
> HeeUKSWE2woko3_FH-TKXAww at mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> I cannot for the life of me get port bonding to work in EL-6. Here is what
> the ifcfg files and modprobe.d/bonding.conf look like
>
> # cat ifcfg-bond0
> > DEVICEE="bond0"
> > ONBOOT="yes"
> > BOOTPROTO="none"
> > IPADDR="172.16.200.11"
> > IPV6INIT="no"
> > NETMASK="255.255.255.0"
> > USERCTL=no
> > BONDING_OPTS="mode=4 miimon=100"
>
>
> # cat ifcfg-p2p1
> > DEVICE=p2p1
> > BOOTPROTO=?none?
> > HWADDR=xxxxxxxx
> > NM_CONTROLLED=?no?
> > ONBOOT=?yes?
> > TYPE=?Ethernet?
> > UUID=xxxxxxx
> > MASTER=bond0
> > SLAVE=yes
> > USERCTL=no
>
>
> # cat ifcfg-p2p2
> > DEVICE=p2p2
> > BOOTPROTO=?none?
> > HWADDR=xxxxxxxx
> > NM_CONTROLLED=?no?
> > ONBOOT=?yes?
> > TYPE=?Ethernet?
> > UUID=xxxxxxx
> > MASTER=bond0
> > SLAVE=yes
> > USERCTL=no
>
>
> # cat /etc/modprobe.d/bond.conf
> > alias bond0 bonding
>
>
> # lsmod | grep bonding
> > bonding               127363  0
> > 8021q                  25317  1 bonding
> > ipv6                  321454  86
> > bonding,ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
>
>
> I run service network restart and get. I should note that the bonding
> module is not loaded at boot.
>
> # service network restart
>
> Shutting down loopback interface:                          [  OK  ]
> > Bringing up loopback interface:                            [  OK  ]
> > Bringing up interface bond0:  Device does not seem to be present,
> delaying
> > initialization.
> >                                                            [FAILED]
>
>
> Now I can create the bond manually and it works.
>
> # modprobe bonding mode=4 miimon=100
> > # ifconfig bond0 172.16.200.11/24
> > # ifenslave bond0 p2p1
> > # ifenslave bond0 p2p2
> > # ping -c 3 172.16.200.13
> > PING 172.16.200.13 (172.16.200.13) 56(84) bytes of data.
> > 64 bytes from 172.16.200.13: icmp_seq=1 ttl=64 time=0.806 ms
> > 64 bytes from 172.16.200.13: icmp_seq=2 ttl=64 time=0.213 ms
> > 64 bytes from 172.16.200.13: icmp_seq=3 ttl=64 time=0.212 ms
> > --- 172.16.200.13 ping statistics ---
> > 3 packets transmitted, 3 received, 0% packet loss, time 2000ms
> > rtt min/avg/max/mdev = 0.212/0.410/0.806/0.280 ms
>
>
> #cat /proc/net/bonding/bond0
> > Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
> > Bonding Mode: IEEE 802.3ad Dynamic link aggregation
> > Transmit Hash Policy: layer2 (0)
> > MII Status: up
> > MII Polling Interval (ms): 100
> > Up Delay (ms): 0
> > Down Delay (ms): 0
> > 802.3ad info
> > LACP rate: slow
> > Aggregator selection policy (ad_select): stable
> > Active Aggregator Info:
> > Aggregator ID: 1
> > Number of ports: 2
> > Actor Key: 17
> > Partner Key: 682
> > Partner Mac Address: xxxxxx
> > Slave Interface: p2p1
> > MII Status: up
> > Speed: 1000 Mbps
> > Duplex: full
> > Link Failure Count: 0
> > Permanent HW addr: xxxxxxx
> > Aggregator ID: 1
> > Slave queue ID: 0
> > Slave Interface: p2p2
> > MII Status: up
> > Speed: 1000 Mbps
> > Duplex: full
> > Link Failure Count: 0
> > Permanent HW addr: xxxxxxx
> > Aggregator ID: 1
> > Slave queue ID: 0
>
>
> Not sure what I am doing wrong but I need some help.
>
>
> Christopher Cross
> g1ccross at gmail.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://cluedenver.org/pipermail/clue/attachments/20130715/de1fcfeb/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Mon, 15 Jul 2013 13:09:52 -0800
> From: adam bultman <adamb at glaven.org>
> Subject: Re: [clue] EL-6 Ethernet port bonding
> To: CLUE's mailing list <clue at cluedenver.org>
> Message-ID: <51E46520.8060101 at glaven.org>
> Content-Type: text/plain; charset=UTF-8
>
> Your modprobe.conf, or modprobe.d stuff, is missing the bonding info.
>
> I'm not sure how version 6 does it, but on Centos5.9, I have:
>
> alias bond0 bonding
> options bond0 mode=4 miimon=100 downdelay=200
>
>
> in my /etc/modprobe.conf file.  You might need to put it in
> /etc/modprobe.d/bonding or something, though.
>
>
> On 07/15/2013 12:35 PM, Christopher Cross wrote:
> > I cannot for the life of me get port bonding to work in EL-6. Here is
> > what the ifcfg files and modprobe.d/bonding.conf look like
> >
> >     # cat ifcfg-bond0?
> >     DEVICEE="bond0"
> >     ONBOOT="yes"
> >     BOOTPROTO="none"
> >     IPADDR="172.16.200.11"
> >     IPV6INIT="no"
> >     NETMASK="255.255.255.0"
> >     USERCTL=no
> >     BONDING_OPTS="mode=4 miimon=100"
> >
> >
> >     # cat ifcfg-p2p1
> >     DEVICE=p2p1
> >     BOOTPROTO=?none?
> >     HWADDR=xxxxxxxx
> >     NM_CONTROLLED=?no?
> >     ONBOOT=?yes?
> >     TYPE=?Ethernet?
> >     UUID=xxxxxxx
> >     MASTER=bond0
> >     SLAVE=yes
> >     USERCTL=no
> >
> >
> >     # cat ifcfg-p2p2
> >     DEVICE=p2p2
> >     BOOTPROTO=?none?
> >     HWADDR=xxxxxxxx
> >     NM_CONTROLLED=?no?
> >     ONBOOT=?yes?
> >     TYPE=?Ethernet?
> >     UUID=xxxxxxx
> >     MASTER=bond0
> >     SLAVE=yes
> >     USERCTL=no
> >
> >
> >     # cat /etc/modprobe.d/bond.conf?
> >     alias bond0 bonding
> >
> >
> >     # lsmod | grep bonding
> >     bonding ? ? ? ? ? ? ? 127363 ?0?
> >     8021q ? ? ? ? ? ? ? ? ?25317 ?1 bonding
> >     ipv6 ? ? ? ? ? ? ? ? ?321454 ?86
> >     bonding,ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
> >
> >
> > I run service network restart and get. I should note that the bonding
> > module is not loaded at boot.
> >
> >     # service network restart?
> >
> >     Shutting down loopback interface: ? ? ? ? ? ? ? ? ? ? ? ? ?[ ?OK ?]
> >     Bringing up loopback interface: ? ? ? ? ? ? ? ? ? ? ? ? ? ?[ ?OK ?]
> >     Bringing up interface bond0: ?Device does not seem to be present,
> >     delaying initialization.
> >     ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?[FAILED]
> >
> >
> > Now I can create the bond manually and it works.
> >
> >     # modprobe bonding mode=4 miimon=100
> >     # ifconfig bond0 172.16.200.11/24 <http://172.16.200.11/24>
> >     # ifenslave bond0 p2p1
> >     # ifenslave bond0 p2p2
> >     # ping -c 3 172.16.200.13
> >     PING 172.16.200.13 (172.16.200.13) 56(84) bytes of data.
> >     64 bytes from 172.16.200.13 <http://172.16.200.13>: icmp_seq=1
> >     ttl=64 time=0.806 ms
> >     64 bytes from 172.16.200.13 <http://172.16.200.13>: icmp_seq=2
> >     ttl=64 time=0.213 ms
> >     64 bytes from 172.16.200.13 <http://172.16.200.13>: icmp_seq=3
> >     ttl=64 time=0.212 ms
> >     --- 172.16.200.13 ping statistics ---
> >     3 packets transmitted, 3 received, 0% packet loss, time 2000ms
> >     rtt min/avg/max/mdev = 0.212/0.410/0.806/0.280 ms
> >
> >
> >     #cat /proc/net/bonding/bond0
> >     Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
> >     Bonding Mode: IEEE 802.3ad Dynamic link aggregation
> >     Transmit Hash Policy: layer2 (0)
> >     MII Status: up
> >     MII Polling Interval (ms): 100
> >     Up Delay (ms): 0
> >     Down Delay (ms): 0
> >     802.3ad info
> >     LACP rate: slow
> >     Aggregator selection policy (ad_select): stable
> >     Active Aggregator Info:
> >     Aggregator ID: 1
> >     Number of ports: 2
> >     Actor Key: 17
> >     Partner Key: 682
> >     Partner Mac Address: xxxxxx
> >     Slave Interface: p2p1
> >     MII Status: up
> >     Speed: 1000 Mbps
> >     Duplex: full
> >     Link Failure Count: 0
> >     Permanent HW addr: xxxxxxx
> >     Aggregator ID: 1
> >     Slave queue ID: 0
> >     Slave Interface: p2p2
> >     MII Status: up
> >     Speed: 1000 Mbps
> >     Duplex: full
> >     Link Failure Count: 0
> >     Permanent HW addr: xxxxxxx
> >     Aggregator ID: 1
> >     Slave queue ID: 0
> >
> >
> > Not sure what I am doing wrong but I need some help.
> >
> >
> > Christopher Cross
> > g1ccross at gmail.com <mailto:g1ccross at gmail.com>
> >
> >
> >
> > _______________________________________________
> > clue mailing list: clue at cluedenver.org
> > For information, account preferences, or to unsubscribe see:
> > http://cluedenver.org/mailman/listinfo/clue
>
> --
> Adam
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 15 Jul 2013 15:15:05 -0600
> From: Christopher Cross <g1ccross at gmail.com>
> Subject: Re: [clue] EL-6 Ethernet port bonding
> To: "CLUE's mailing list" <clue at cluedenver.org>
> Message-ID:
>         <CANMPyz-=B7Xov3f3eSNPAvV=g6udbXKj8LKCsa=
> aNF-G-qXZDQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I attempted both adding the options to my modprobe.d/bonding.conf and
> moving everything to /etc/modprobe.conf but both failed the same
> way. /etc/modprobe.conf is deprecated and the Red Hat docs say to not put
> the options in the bonding.conf.
>
> From
>
> https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-networkscripts-interfaces-chan.html
>
> > Parameters for the bonding kernel module must be specified as a
> > space-separated list in the BONDING_OPTS="*bonding parameters*" directive
> > in the ifcfg-bond*N* interface file. Do*not* specify options for the
> > bonding device in /etc/modprobe.d/*bonding*.conf, or in the deprecated
> > /etc/modprobe.conf file. For further instructions and advice on
> > configuring the bonding module and to view the list of bonding
> parameters,
> > refer to Section 25.7.2, ?Using Channel Bonding?<
> https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Using_Channel_Bonding.html
> >
> > .
>
>
> Christopher Cross
> g1ccross at gmail.com
>
>
>
> On Mon, Jul 15, 2013 at 3:09 PM, adam bultman <adamb at glaven.org> wrote:
>
> > Your modprobe.conf, or modprobe.d stuff, is missing the bonding info.
> >
> > I'm not sure how version 6 does it, but on Centos5.9, I have:
> >
> > alias bond0 bonding
> > options bond0 mode=4 miimon=100 downdelay=200
> >
> >
> > in my /etc/modprobe.conf file.  You might need to put it in
> > /etc/modprobe.d/bonding or something, though.
> >
> >
> > On 07/15/2013 12:35 PM, Christopher Cross wrote:
> > > I cannot for the life of me get port bonding to work in EL-6. Here is
> > > what the ifcfg files and modprobe.d/bonding.conf look like
> > >
> > >     # cat ifcfg-bond0?
> > >     DEVICEE="bond0"
> > >     ONBOOT="yes"
> > >     BOOTPROTO="none"
> > >     IPADDR="172.16.200.11"
> > >     IPV6INIT="no"
> > >     NETMASK="255.255.255.0"
> > >     USERCTL=no
> > >     BONDING_OPTS="mode=4 miimon=100"
> > >
> > >
> > >     # cat ifcfg-p2p1
> > >     DEVICE=p2p1
> > >     BOOTPROTO=?none?
> > >     HWADDR=xxxxxxxx
> > >     NM_CONTROLLED=?no?
> > >     ONBOOT=?yes?
> > >     TYPE=?Ethernet?
> > >     UUID=xxxxxxx
> > >     MASTER=bond0
> > >     SLAVE=yes
> > >     USERCTL=no
> > >
> > >
> > >     # cat ifcfg-p2p2
> > >     DEVICE=p2p2
> > >     BOOTPROTO=?none?
> > >     HWADDR=xxxxxxxx
> > >     NM_CONTROLLED=?no?
> > >     ONBOOT=?yes?
> > >     TYPE=?Ethernet?
> > >     UUID=xxxxxxx
> > >     MASTER=bond0
> > >     SLAVE=yes
> > >     USERCTL=no
> > >
> > >
> > >     # cat /etc/modprobe.d/bond.conf?
> > >     alias bond0 bonding
> > >
> > >
> > >     # lsmod | grep bonding
> > >     bonding ? ? ? ? ? ? ? 127363 ?0?
> > >     8021q ? ? ? ? ? ? ? ? ?25317 ?1 bonding
> > >     ipv6 ? ? ? ? ? ? ? ? ?321454 ?86
> > >     bonding,ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
> > >
> > >
> > > I run service network restart and get. I should note that the bonding
> > > module is not loaded at boot.
> > >
> > >     # service network restart?
> > >
> > >     Shutting down loopback interface: ? ? ? ? ? ? ? ? ? ? ? ? ?[ ?OK ?]
> > >     Bringing up loopback interface: ? ? ? ? ? ? ? ? ? ? ? ? ? ?[ ?OK ?]
> > >     Bringing up interface bond0: ?Device does not seem to be present,
> > >     delaying initialization.
> > >     ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?[FAILED]
> > >
> > >
> > > Now I can create the bond manually and it works.
> > >
> > >     # modprobe bonding mode=4 miimon=100
> > >     # ifconfig bond0 172.16.200.11/24 <http://172.16.200.11/24>
> > >     # ifenslave bond0 p2p1
> > >     # ifenslave bond0 p2p2
> > >     # ping -c 3 172.16.200.13
> > >     PING 172.16.200.13 (172.16.200.13) 56(84) bytes of data.
> > >     64 bytes from 172.16.200.13 <http://172.16.200.13>: icmp_seq=1
> > >     ttl=64 time=0.806 ms
> > >     64 bytes from 172.16.200.13 <http://172.16.200.13>: icmp_seq=2
> > >     ttl=64 time=0.213 ms
> > >     64 bytes from 172.16.200.13 <http://172.16.200.13>: icmp_seq=3
> > >     ttl=64 time=0.212 ms
> > >     --- 172.16.200.13 ping statistics ---
> > >     3 packets transmitted, 3 received, 0% packet loss, time 2000ms
> > >     rtt min/avg/max/mdev = 0.212/0.410/0.806/0.280 ms
> > >
> > >
> > >     #cat /proc/net/bonding/bond0
> > >     Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
> > >     Bonding Mode: IEEE 802.3ad Dynamic link aggregation
> > >     Transmit Hash Policy: layer2 (0)
> > >     MII Status: up
> > >     MII Polling Interval (ms): 100
> > >     Up Delay (ms): 0
> > >     Down Delay (ms): 0
> > >     802.3ad info
> > >     LACP rate: slow
> > >     Aggregator selection policy (ad_select): stable
> > >     Active Aggregator Info:
> > >     Aggregator ID: 1
> > >     Number of ports: 2
> > >     Actor Key: 17
> > >     Partner Key: 682
> > >     Partner Mac Address: xxxxxx
> > >     Slave Interface: p2p1
> > >     MII Status: up
> > >     Speed: 1000 Mbps
> > >     Duplex: full
> > >     Link Failure Count: 0
> > >     Permanent HW addr: xxxxxxx
> > >     Aggregator ID: 1
> > >     Slave queue ID: 0
> > >     Slave Interface: p2p2
> > >     MII Status: up
> > >     Speed: 1000 Mbps
> > >     Duplex: full
> > >     Link Failure Count: 0
> > >     Permanent HW addr: xxxxxxx
> > >     Aggregator ID: 1
> > >     Slave queue ID: 0
> > >
> > >
> > > Not sure what I am doing wrong but I need some help.
> > >
> > >
> > > Christopher Cross
> > > g1ccross at gmail.com <mailto:g1ccross at gmail.com>
> > >
> > >
> > >
> > > _______________________________________________
> > > clue mailing list: clue at cluedenver.org
> > > For information, account preferences, or to unsubscribe see:
> > > http://cluedenver.org/mailman/listinfo/clue
> >
> > --
> > Adam
> >
> > _______________________________________________
> > clue mailing list: clue at cluedenver.org
> > For information, account preferences, or to unsubscribe see:
> > http://cluedenver.org/mailman/listinfo/clue
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://cluedenver.org/pipermail/clue/attachments/20130715/fb863884/attachment.html
>
> ------------------------------
>
> _______________________________________________
> clue mailing list
> clue at cluedenver.org
> http://cluedenver.org/mailman/listinfo/clue
>
> End of clue Digest, Vol 30, Issue 17
> ************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20130715/51a572b6/attachment-0001.html 


More information about the clue mailing list