Table of Contents

KVM brX Networking with bonding and VLAN tagged



KVM Physical Network Image

KVM brX Networking with bonding and VLAN tagged


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