聚合連接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*



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章