cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

middleware:virtualization:kvm:network_brx_bonding.html



KVM Networking

KVM:Networking:brX Bonding

Physical Image

-- Host eth0 ----- bond0 --------- br0 --------------------- Guest eth0
    (MASTER=bond0)  (BRIDGE=br0)    (IPADDR=x.x.x.x)           (IPADDR=x.x.x.x)
                    |
                    |
-- Host eth1 -------+
    (MASTER=bond0)


other Bonding Examples

----Host eth0---- bond0 ---- br0 (non IP)  ----------------------- Guest eth0 (servervice ip xx.xx.xx.xx)
                  |
----Host eth3-----+

----Host eth2--------------- br2 (Operation IP xx.xx.xx.xx) ------ Guest eth2 (operation ip xx.xx.xx.xx)


Configuration

/etc/modprobe.d/bonding.conf

alias bond0 bonding





/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
TYPE=Ethernet
HWADDR=XX:XX:XX:XX:XX:XX
BOOTPROTO="none"
MASTER=bond0
SLAVE=yes

/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
TYPE=Ethernet
HWADDR=XX:XX:XX:XX:XX:XX
BOOTPROTO="none"
MASTER=bond0
SLAVE=yes

/etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
BOOTPROTO=none
BRIDGE=br0
BONDING_OPTS="mode=1 primary=eth0 miimon=100 updelay=5000"





/etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
IPADDR=192.168.10.100
NETMASK=255.255.255.0
NETWORK=192.168.10.0
ONBOOT=yes




# /etc/init.d/network restart

# cat /proc/net/bonding/bond0

# ifconfig
# brctl show



middleware/virtualization/kvm/network_brx_bonding.html.txt ยท Last modified: 2017/05/06 by admin

Page Tools