OVS 配置虚机vlan
测试环境:
网络:vlan100, 192.168.100.0/24
vlan101, 192.168.101.0/24
宿主系统:CentOS-7.2 64bit
宿主IP:192.168.100.33
宿主网卡:eth0, 对应交换机端口trunks[100, 101], pvid 100
待配置虚机IP:192.168.100.34, 192.168.101.34
操作
1.修改/etc/sysconfig/network-scripts/ifcfg-eth0;
DEVICE="eth0"
ONBOOT="yes"
NM_CONTROLLED="no"
2.增加/etc/sysconfig/network-scripts/ifcfg-ovsbr0;