[CentOS] After a long break, one more try at bond/bridge nics

Digimer linux at alteeve.com
Fri Jan 27 22:21:41 UTC 2012


I do this in my clusters (using six NICs, but that doesn't matter). I've
documented how I create bonds and bridges with details here:

https://alteeve.com/w/2-Node_Red_Hat_KVM_Cluster_Tutorial#Network

Scroll down a bit to:

https://alteeve.com/w/2-Node_Red_Hat_KVM_Cluster_Tutorial#Configuring_The_Bridge

and

https://alteeve.com/w/2-Node_Red_Hat_KVM_Cluster_Tutorial#Network

In short;
- Put the host's IP on the bridge, not the bond.
- HWADDR are defined in the interfaces only, not the bond or bridge.

Digimer

On 01/27/2012 05:16 PM, Bob Hoffman wrote:
> took a couple months off due to road blocks, hoping a fresh look would 
> allow me to use my server as desired.
> 
> I have three ports, eth0-2 over two nics.
> I want to bond them, and then use a bridge to connect to virtual 
> machines on the virtual host computer.
> Never having done this, I am confused on some parts.
> 
> Here is where I am at now and any pointers helpful. Single server, 
> centos 6.x
> My issue is do I add the ip address of the virtual host and where?
> Do I not add any of the ip addresses of the virtual machines? (thus they 
> will be looked for via the bridge?)
> Each virtual machine will be getting its own ip address as it will be 
> used for a website.
> 
> here is the basic configuration I am looking at, with some things not 
> added like hwaddress and a few tweaks (zeroconf?)
> 
> am I even close? I admit I have never done this and have no mentor other 
> than this exceptional mailing list.
> 
> ============================
> /etc/modprobe.conf
> alias bond0 bonding
> options bond0 mode=balance-alb miimon=100
> ============================
> 
> ============================
> bond0
> DEVICE=bond0
> BOOTPROTO=none
> BRIDGE=br0
> ONBOOT=yes
> BONDING_OPTS="mode=1 miimon=100 primary=eth0"
> ============================
> 
> ============================
> br0
> DEVICE=br0
> TYPE=Bridge
> BOOTPROTO=none
> IPADDR=<my virtual host IP address?>
> NETWORK=xxx.xx.xx.xxx
> BROADCAST=xxx.xx.xx.xx
> NETMASK=255.255.255.0
> ONBOOT=yes
> GATEWAY=xx.xxx.xxx.xx
> ============================
> 
> I did not add the hwaddress to the items below.
> ========================================
> eth0
> DEVICE=eth0
> USERCTL=no
> ONBOOT=yes
> MASTER=bond0
> SLAVE=yes
> BOOTPROTO=none
> 
> eth1
> DEVICE=eth0
> USERCTL=no
> ONBOOT=yes
> MASTER=bond0
> SLAVE=yes
> BOOTPROTO=none
> 
> eth2
> DEVICE=eth0
> USERCTL=no
> ONBOOT=yes
> MASTER=bond0
> SLAVE=yes
> BOOTPROTO=none
> =========================================
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos


-- 
Digimer
E-Mail:              digimer at alteeve.com
Papers and Projects: https://alteeve.com



More information about the CentOS mailing list