CentOS多网卡802.3ad动态链接聚合bond配置

场景:
1. 两台A、B接入交换机做堆叠,两台交换机A和B各选一个网口做动态LACP端口聚合
2. 服务器网卡em1、em2分别接入两台交换机相应聚合网口

CentOS 下网卡配置

/etc/sysconfig/network-scripts/ifcfg-em1

DEVICE=em1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=no
MASTER=bond0
SLAVE=yes

/etc/sysconfig/network-scripts/ifcfg-em2

DEVICE=em2
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=no
MASTER=bond0
SLAVE=yes

/etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
TYPE=Bond
BONDING_MASTER=yes
BONDING_OPTS="mode=4 miimon=100 lacp_rate=1"
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=no

/etc/sysconfig/network-scripts/ifcfg-bond0.120

DEVICE=bond0.120
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPV6INIT=no
IPADDR=10.33.20.3
NETMASK=255.255.255.0
GATEWAY=10.33.20.254
VLAN=yes
订阅
提醒
1 评论
在线反馈
查看全部评论