找一个ifcfg-eth0的文件改编一下:
bond:
把eth1和eth2绑定为bond0,将ifcfg-eth0 复制为 ifcfg-bond0,在末尾加入
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=1 miimon=100'
BONDING_SLAVE0='eth1'
BONDING_SLAVE1='eth2'
vlan:
在bond0上加入vlan100, 把ifcfg-eth0 复制为 ifcfg-vlan100,在末尾加入:
ETHERDEVICE='bond0' //也可以创建在eth上
PREFIXLEN='16'
bridge:
在vlan100上创建bridge0, 把ifcfg-eth0 复制为 ifcfg-bridge0,在末尾加入:
BRIDGE='yes'
BRIDGE_FORWARDDELAY='0'
BRIDGE_STP='off'
BRIDGE_PORTS='vlan100' //也可以创建在eth上