CentOS系统设置网卡的VLAN TAG方法为:
1.加载802.1q协议
查询是否加载modinfo 8021q 或者:modinfo -F filename 8021q
2.复制bond0口并修改接口名称:
cp /etc/sysconfig/network-scripts/ifcfg-bond1 /etc/sysconfig/network-scripts/ifcfg-bond1.208
3.配置/etc/sysconfig/network-scripts/ifcfg-bond1.208
DEVICE=bond1.208
BOOTPROTO=none
ONBOOT=yes
IPADDR=x.x.x.x
PREFIX=24
NETWORK=x.x.x.1
VLAN=yes (开启vlan,表明此子接口为vlan接口)