Centos bonding +vlan

[root@node01 network-scripts]# cat ifcfg-enp1s0f0
TYPE=Ethernet
BOOTPROTO=none
NAME=enp1s0f0
DEVICE=enp1s0f0
ONBOOT=yes
MASTER=bond0
SLAVE=yes

[root@node01 network-scripts]# cat ifcfg-enp1s0f1
TYPE=Ethernet
BOOTPROTO=none
NAME=enp1s0f1
DEVICE=enp1s0f1
ONBOOT=yes
MASTER=bond0
SLAVE=yes

[root@node01 network-scripts]# cat ifcfg-bond0
TYPE=Ethernet
NAME=bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=4 miimon=100 xmit_hash_policy=layer3+4"


[root@node01 network-scripts]# cat ifcfg-vlan36
TYPE=Ethernet
NAME=vlan36
DEVICE=vlan36
ONBOOT=yes
PHYSDEV=bond0
VLAN=yes
BOOTPROTO=static
IPADDR=192.168.36.x
PREFIX=24
GATEWAY=192.168.36.xxx
原文地址:https://www.cnblogs.com/gaozhengwei/p/9112892.html