[CentOS-virt] bridging bonded NICs, centos6
baptiste.agasse at lyra-network.com
Tue Oct 25 06:48:30 EDT 2011
> De: "Bob Hoffman" <bob at bobhoffman.com>
> À: centos-virt at centos.org
> Envoyé: Mardi 25 Octobre 2011 02:44:40
> Objet: [CentOS-virt] bridging bonded NICs, centos6
> Trying to think this through, hope someone can lend a hand.
> I have 3 eths I want to bond together and that seems simple enough.
> eth0,1,2 <-> bond0 , though not sure how this would be for multiple ip
> addresses needed for the virtual machines...
> perhaps eth:0, eth:1 etc....to bond0:1, bond0:2 ?
> then I want to bridge to my virtual machines....
> I am going to be using virtual machines, each with one ip address
> (websites) some with possibly more than one ip...
> for each ip do I need to bond all three nics, go to a new bonding
> then to the bridge file for that virtual machine?
> what happens when I use two IP addresses for the same virtual machine?
> Each machine wants to use just one bridge, but will it use more than
> I am pretty sure each bonding file must have an ipaddress on it...so
> it will be multiple eth files pointing to multiple bonding files
> pointing to single bridge files
> for each machine?
> somewhat confused.
> any help appreciated.
> am I even close?
> CentOS-virt mailing list
> CentOS-virt at centos.org
I use bonding on my Xen hypervisor and my virtual machines are in bridged mode (with VLAN).
I didn't create virtual interface (bond0:X) for my VMs, IP addresses are configured in VM (like a physical box). If you want to have multiple IPs for the same VM, you just have to create virtual interface in your VM, or if IPs are not on the same VLAN (i don't know if you use VLAN), just add another interface in your VM config file and link it to the other bridge and make network configuration for it in VM like the first one.
Hope this helps.
More information about the CentOS-virt