配置链路聚合

题:在system2和system1之间按如下要求设定一个链路:html

此链路使用接口eth1和eth2网络

此链路在一个接口失效时仍然能工做spa

此链路在system1使用下面的地址172.16.3.40/255.255.255.0code

此链路在system2使用下面的地址172.16.3.45/255.255.255.0htm

此链路在系统重启以后依然保持正常状态blog

分别在system1 和 system2 执行接口

一、新建 team master 配置文件,选择模式为主备,并添加地址。ip

nmcli connection add con-name team0 type team ifname team0 config '{"runner":{"name":"activebackup"}}'
nmcli connection modify team0 ipv4.addresses "172.16.3.40/24" connection.autoconnect yes ipv4.method manual

二、新建 team-slave 配置文件,添加给 team master。get

nmcli connection add con-name team0-slave1 ifname eth0 type team-slave master team0
nmcli connection add con-name team0-slave2 ifname eth1 type team-slave master team0

三、启动已建立的网络设备io

nmcli connection up team0

 


更多详情:http://www.javashuo.com/article/p-fwohgvmh-gh.html

相关文章
相关标签/搜索