首页 > 代码库 > 设置link aggregation and bridging,桥接模式
设置link aggregation and bridging,桥接模式
ip link
nmcli con add type team con-name team0 ifname team0 config ‘{"runner":{"name":"activebackup"}}‘
nmcli con add type team-slave con-name team0-port1 ifname eno1 master team0
nmcli con add type team-slave con-name team0-port2 ifname eno2 master team0
teamctl team0 state
nmcli dev dis team0
systemctl stop NetworkManager
systemctl disable NetworkManager
cd /etc/sysconfig/network-scripts/
ls -l ifcfg-*
vim ifcfg-team0
tail ifcfg-team0
NAME=team0
UUID=......
ONBOOT=yes
BRIDGE=brteam0
BRIDGE=brteam0
cat ifcfg-team0-port1
NAME=team0-port1
UUID=...
DEVICE=eno1
ONBOOT=yes
TEAM_MASTER=team0
DEVICETYPE=TeamPort
(也可以直接vim编辑,11dd)
ifcfg-team0-port2同port1
systemctl restart network
reboot
ping -I brteam0 192.168.0.254
本文出自 “血爪哇” 博客,请务必保留此出处http://sunrain990.blog.51cto.com/3700585/1558856
设置link aggregation and bridging,桥接模式