网卡链路聚合

1.链路聚合的优势,备份网卡设备
team,聚合连接(也称为链路聚合)
由多块网卡(team-slave)一起组建而成的虚拟网卡,即“组队”
作用:热备份(activebackup)连接冗余
2.配置链路聚合
1)创建虚拟网卡team0,指定工作方式:热备份方式
nmcli connection add type team con-name team0 ifname team0 autoconnect yes config ‘{“runner”: {“name”: “activebackup”}}’ //man teamd.conf 查找example
/etc/sysconfig/network-scripts/ifcfg-team0
2)添加成员
nmcli connection add type team-slave con-name team0-p1 ifname eth1 master team0 autoconnect yes
nmcli connection add type team-slave con-name team0-p2 ifname eth2 master team0 autoconnect yes
3)配置ip地址
nmcli connection modify team0 ipv4.method manual ipv4.addresses ‘192.168.1.1/24’ connection.autoconnect yes
4)激活配置
nmcli connection up team0
nmcli connection up team0-1
nmcli connection up team0-2
5)查看
teamdctl team0 state //查看team0状态
ifconfig eth1 down //手动禁用网卡
ifconfig eth1 up //手动激活网卡

发布了81 篇原创文章 · 获赞 7 · 访问量 1222

猜你喜欢

转载自blog.csdn.net/weixin_45157506/article/details/103881220