1. 程式人生 > >聚合連接nmcli 網卡綁定

聚合連接nmcli 網卡綁定

冗余 安全

聚合連接(team)

多個網卡(team-slave)組建成虛擬網卡

輪詢式(roundrobin)的流量負載均衡

熱備份(activebackup)連接冗余

  man teamd.conf
   /example
    {"runner" : {"name":"activebackup"}}


1.創建team

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

cat /etc/sysconfig/network-scripts/ifcfg-team0

2.給team添加網卡

 nmcli connection add type team-slave ifname eth1 master team0
 nmcli connection add type team-slave ifname eth2 master team0

3.team設IP

nmcli connection modify team0 ipv4.method manual ipv4.addresses 192.168.1.1/24 connection.autoconnect yes

4.激活網卡及team

nmcli connection up team-slave-eth1  #激活從設備eth1
nmcli connection up team-slave-eth2  #激活從設備eth2
nmcli connection up team0            #激活主設備team0

5.驗證

teamdctl team0 state   #專用與查看team信息

6.刪除

nmcli connection delete team-slave-eth1
nmcli connection delete team-slave-eth2
nmcli connection delete team0


ls /etc/sysconfig/network-scripts/ifcfg-team*



本文出自 “技術改變生活” 博客,請務必保留此出處http://creatoryuan.blog.51cto.com/13414657/1980228

聚合連接nmcli 網卡綁定