RHEL7 -- 使用team替换bonding实现链路聚合网卡绑定

本文详细介绍了如何通过teamd包实现网卡enp0s8和enp0s9的链路聚合。首先安装teamd包,接着创建team连接,并采用activebackup模式。然后将两块网卡加入到team0连接中,最后配置IP地址并激活连接。
将网卡enp0s8、enp0s9进行链路绑定

安装teamd包
# yum install teamd

创建一个team链接
# nmcli con add con-name team0 type team ifname team0 config '{"runner":{“name”:"activebackup"}}'
Connection 'team0' (7100f55b-3fa5-46d3-84e8-26803f2a6117) successfully added.

将两个网卡加进来
# nmcli con add type team-slave con-name team0-slave1 ifname enp0s8 master team0
Connection 'team0-slave1' (061bc662-c233-4350-9a8a-3893e6ff59c2) successfully added.
# nmcli con add type team-slave con-name team0-slave2 ifname enp0s9 master team0
Connection 'team0-slave2' (6ac26f01-c19d-4a1d-af1e-140bc0a4ac5d) successfully added.

为聚合网卡配置ip,设置manual属性
# nmcli con mod team0 ipv4.addresses 192.168.56.123/24 ipv4.method manual

启动聚合链接
# nmcli con up team0
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/4)

查看状态
# teamdctl team0 state
setup:
  runner: activebackup
ports:
  enp0s8
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
  enp0s9
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
runner:
  active port: enp0s9

 

转载于:https://www.cnblogs.com/abclife/p/4737938.html

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值