cmdref.net - Cheat Sheet and Example

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

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

middleware:virtualization:kvm:network_brx_vlan.html



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










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

Page Tools