建议:
1、桥接下bonding的模式中mode=x 建议配置成 mode=5
2、虚拟网卡配置为常见的 intel e1000 千兆网络模块作为虚拟网络设备
rhel 6 KVM
/etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
ONBOOT=yes
TYPE=Bridge (特别注意B必须大小、其他字母必须小写)
BOOTPROTO=static
IPADDR=
NETMASK=
GATEWAY=
/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BRIDGE=br0
BONDING_OPTS = “miimon=100 mode=5”
USERCTL= no
/etc/sysconfig/network-scripts/ifcfg-ethX
DEVICE=ethX
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
USERCTL= no
使用 virt-manager 设置网络即可
rhel 5 Xen
# /etc/xen/xend-config.sxp
“network-script network-bridge”
network-script ‘network-bridge netdev=eth1’
or
network-script ‘network-bridge bridge=br0 netdev=bond0’
eth1 will be bridged to xenbr0
# brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.000000000000 yes
xenbr0 8000.feffffffffff no peth1
vif0.0
转载请注明:爱开源 » XEN & KVM 下的网络桥接