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:xen:network_xenbr_vlan.html



Xen Networking

Xen:Networking:xenbrX, multi interface, VLAN

Installing

yum install vconfig

Configuration

/etc/sysconfig/network

VLAN=yes
VLAN_NAME_TYPE=DEV_PLUS_VID


/etc/sysconfig/network-scripts/ifcfg-*

example1

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

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes

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

DEVICE=eth0.0900
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.1.1
NETMASK=255.255.255.0


example2

/etc/modprobe.conf

#abbr
alias bond0 bonding
options bond0 miimon=100 mode=1 primary=eth0

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

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes

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

DEVICE=bond0.11
BOOTPROTO=none
ONBOOT=yes
VLAN=yes
BRIDGE=xenbr0

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

DEVICE=bond0.31
BOOTPROTO=none
ONBOOT=yes
VLAN=yes
BRIDGE=xenbr1

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

DEVICE=eth0
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

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

DEVICE=eth1
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

/etc/sysconfig/network-scripts/ifcfg-eth2

DEVICE=eth2
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.10
NETMASK=255.255.255.0


TIPS

disabling transmit checksum offloading

With the DomUs bridged to VLAN interfaces, some optimizations need to be disabled or tcp and udp connections will fail. This is done by disabling transmit checksum offloading:

http://wiki.xen.org/wiki/Xen_Networking

#cat /etc/rc.local
#abbr#
ethtool -K eth0 tx off
ethtool -K eth1 tx off



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

Page Tools