网卡工作组teaming

网卡工作组teaming

网卡绑定bonding可以提高网络的冗余,保证网络可靠性,提高网络速度。为了提高网络容错或吞吐量,一般服务器都会采取多网卡绑定的策略,在RHEL5/RHEL6中使用的是Bonding。而RHEL7提供了一项新的实现技术Teaming,用来实现链路聚合的功能,但是在RHEL7中,不会使用teaming替换bonding,它们是并存的,我们可以选择Teaming,也可以选择Bonding。
 

team接口的命令生成

nmcli connection add con-name team0 ifname team0 type team config '{"runner":{"name":"activebackup"}}' ip4 172.25.254.100/24 ---- 生成team接口team0并指定ip地址

teamctl team0 stat ---- team接口的监控命令

nmcli connection add con-name eth0 ifname eth0 type team-slave master team0 ---- 设定网卡eth0为team接口服务

nmcli connection add con-name eth1 ifname eth0 type team-slave master team1 ---- 设定网卡eth1为team接口服务

team接口的配置文件生成

/etc/sysconfig/network-scripts 网络配置文件中:新建team接口的配置文件:

DEVICE=team0

ONBOOT=yes

BOOTPROTO=none

IPADDR=172.25.254.146

NETMASK=255.255.255.0

NAME=team0

DEVICETYPE=Team

TEAM_CONFIG="{"\runner\":{"\name\":"\activebackup\"}}"

配置网卡文件:

TEAM_MASTER=team0

DEVICE=eth0

ONBOOT=yes

BOOTPROTO=none

DEVICETYPE=Teamport

猜你喜欢

转载自blog.csdn.net/weixin_43189623/article/details/84256856
今日推荐