雙網卡綁定

雙網卡綁定

    實驗環境: RHEL7.0 

wKiom1VOAOXzt38BAALptWGW_DA474.jpg 

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

#  nmcli connection show

#  nmcli connection modify team0 ipv4.addresses 192.168.254.88/24更改IP

#  nmcli connection modify team0 ipv4.method manual設置固定IP模式

#  nmcli connection add type team-slave ifname ens33 master team0 添加網卡1

#  nmcli connection add type team-slave ifname ens37 master team0 添加網卡2

#  nmcli connection delete rhce 刪除以前的鏈接

#  nmcli connection up team0

wKioL1VOApDSA_E6AAEmsRR4_uQ830.jpg 

#  systemctl restart network

#  teamdctl team0 state查看team0狀態

wKioL1VOApqgwR6WAADFlo95MlY387.jpg 

#  nmcli device disconnect ens33 斷開網卡ens33測試

#  nmcli device connect ens33 

 


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