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_vlan.html



KVM Networking

KVM:Networking:brX VLAN

Physical Image

--- Host eth0 ---- bond0
    (MASTER=bond0)
                       bond0.10 -------- br10 -------------------- Guest1 eth0
                          (BRIDGE=br0)   (IPADDR=x.x.x.x)            (IPADDR=x.x.x.x)

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


Configuration

/etc/sysconfig/network

#abbr
VLAN=yes
VLAN_NAME_TYPE=DEV_PLUS_VID_NO_PAD





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

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes

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

DEVICE=eth0.10
BOOTPROTO="none"
ONBOOT=yes
BRIDGE=br10

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

DEVICE=eth0.20
BOOTPROTO="none"
ONBOOT=yes
BRIDGE=br20





/etc/sysconfig/network-scripts/ifcfg-br10

DEVICE=br10
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.10.100
NETMASK=255.255.255.0

/etc/sysconfig/network-scripts/ifcfg-br20

DEVICE=br20
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.20.100
NETMASK=255.255.255.0




# /etc/init.d/network restart

# cat /proc/net/vlan/config

# ifconfig
# brctl show



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

Page Tools