声明:本站文章皆基于公开来源信息,仅代表作者个人观点,与作者所在公司无关!

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

 

posted @ 2018-05-30 19:35  Hi,云计算!  阅读(344)  评论(0编辑  收藏  举报