[CentOS-virt] [Advice] CentOS6 + KVM + bonding + bridging

Fri Sep 7 18:17:26 UTC 2012
Nanook <nanook at eskimo.com>

      Could try building a 3.6 kernel from the git repository and see if they've
resolve the issue there.

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
  Eskimo North Linux Friendly Internet Access, Shell Accounts, and Hosting.
    Knowledgeable human assistance, not telephone trees or script readers.
  See our web site: http://www.eskimo.com/ (206) 812-0051 or (800) 246-6874.

On Fri, 7 Sep 2012, SilverTip257 wrote:

> Date: Fri, 7 Sep 2012 12:50:49 -0400
> From: SilverTip257 <silvertip257 at gmail.com>
> Reply-To: Discussion about the virtualization on CentOS
>     <centos-virt at centos.org>
> To: Discussion about the virtualization on CentOS <centos-virt at centos.org>
> Subject: Re: [CentOS-virt] [Advice] CentOS6 + KVM + bonding + bridging
> 
> @Dennis
> Good to know, but rather than strip it back to 6.2, I'll just find a
> suitable solution using 6.3.  Had I known I'd have these problems with
> mode6, I probably would have kept this box at the 6.2 release.
>
> @Phil
> Thanks for the example!
> I'll have to give mode4 a shot.
>
> This makes me wish that 'work' used bonding on the production KVM
> hosts rather than just hooking a bridge to each individual interface
> and attaching the hosts to the bridges.  So with our setup there
> currently is no network load balancing or redundancy for the VMs (and
> I'd like to fix that).
>
> Thank you both for the advice.
> Have a great weekend!
> ---~~.~~---
> Mike
> //  SilverTip257  //
>
>
> On Thu, Sep 6, 2012 at 4:35 PM, Philip Durbin <philipdurbin at gmail.com> wrote:
>> On 09/06/2012 12:19 PM, SilverTip257 wrote:
>>> My question to the members of this list is what bonding mode(s) are
>>> you using for a high availability setup?
>>> I welcome any advice/tips/gotchas on bridging to a bonded interface.
>>
>> I'm not sure I'd call this high availability... but here's an example of
>> bonding two ethernet ports (eth0 and eth1) together into a bond (mode 4)
>> and then setting up a bridge for a VLAN (id 375) that some VMs can run on:
>>
>> [root at kvm01a network-scripts]# grep -iv hwadd ifcfg-eth0
>> DEVICE=eth0
>> SLAVE=yes
>> MASTER=bond0
>> [root at kvm01a network-scripts]# grep -iv hwadd ifcfg-eth1
>> DEVICE=eth1
>> SLAVE=yes
>> MASTER=bond0
>> [root at kvm01a network-scripts]# cat ifcfg-bond0 | sed 's/[1-9]/x/g'
>> DEVICE=bond0
>> ONBOOT=yes
>> BOOTPROTO=static
>> IPADDR=x0.xxx.xx.xx
>> NETMASK=xxx.xxx.xxx.0
>> DNSx=xx0.xxx.xxx.xxx
>> DNSx=x0.xxx.xx.xx
>> DNSx=x0.xxx.xx.x0
>> [root at kvm01a network-scripts]# cat ifcfg-br375
>> DEVICE=br375
>> BOOTPROTO=none
>> TYPE=Bridge
>> ONBOOT=yes
>> [root at kvm01a network-scripts]# cat ifcfg-bond0.375
>> DEVICE=bond0.375
>> BOOTPROTO=none
>> ONBOOT=yes
>> VLAN=yes
>> BRIDGE=br375
>> [root at kvm01a network-scripts]# cat /etc/modprobe.d/local.conf
>> alias bond0 bonding
>> options bonding mode=4 miimon=100
>> [root at kvm01a network-scripts]# grep Mode /proc/net/bonding/bond0
>> Bonding Mode: IEEE 802.3ad Dynamic link aggregation
>> [root at kvm01a network-scripts]# egrep '^V|375' /proc/net/vlan/config
>> VLAN Dev name    | VLAN ID
>> bond0.375      | 375  | bond0
>>
>> Repeat ad nauseam for the other VLANs you want to put VMs on (assuming
>> your switch is trunking them to your hypervisor).
>>
>> See also http://backdrift.org/howtonetworkbonding via
>> http://irclog.perlgeek.de/crimsonfu/2012-08-15#i_5900501
>>
>> Phil
>> _______________________________________________
>> CentOS-virt mailing list
>> CentOS-virt at centos.org
>> http://lists.centos.org/mailman/listinfo/centos-virt
> _______________________________________________
> CentOS-virt mailing list
> CentOS-virt at centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt
>