首页 > 其他 > 详细

链路聚合

时间:2019-04-29 01:31:29      阅读:185      评论:0      收藏:0      [点我收藏+]

配置聚合链接 思路

1.创建虚拟机网卡team0 #config ‘{}‘新开终端man teamd.conf--》/example
2.为team0添加两个成员 #记住是eth1
3.为team0配置IP地址
4.激活配置
5.查看 #teamdctl team0 state
#############################################################################
聚合连接(链路聚合)

备份网卡eth1 + eth2 ----》虚拟网卡team0 192.168.1.1

nmcli connection 添加 类型 team(组)
配置文件名 team0 网卡名 team0
每次开机自动启用
工作模式为 热备份
--------------------------------------------------------------------------------
配置聚合链接

1.添加组(创建虚拟网卡team0)
config ‘{}‘ 新开终端man teamd.conf--》/example

nmcli connection add type team
con-name team0 ifname team0
autoconnect yes
config ‘{"runner": {"name": "activebackup"}}‘

ifconfig
nmcli connection delete team0 #删除team0配置
---------------------------------------------------------------------------------
2.添加成员
nmcli connection 添加 类型 team-成员
配置文件名 team0-1 网卡名 eth1 #记住是eth1 !!!!!!
主设备 为team0

nmcli connection add type team-slave
con-name team0-1 ifname eth1
master team0 #把team0-1和eth1,改为team0-2,eth2,添加成员2

nmcli connection delete team0-1 #如果设置错误,要删除对应的成员
-----------------------------------------------------------------------------------
3.为组team0(虚拟网卡)配置IP地址
nmcli connection modify team0
ipv4.method manual
ipv4.addresses 192.168.1.1/24
connection.autoconnect yes
------------------------------------------------------------------------------------
4.激活(先组,再成员)
nmcli connection up team0 #再激活team0-1,team0-2
-------------------------------------------------------------------------------------
5.查看聚合连接的命令
teamdctl team0 state
ifconfig eth1 down

 

链路聚合

原文:https://www.cnblogs.com/summer2/p/10787889.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!