[clue] EL-6 Ethernet port bonding
adam bultman
adamb at glaven.org
Mon Jul 15 15:09:52 MDT 2013
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
More information about the clue
mailing list