双网卡绑定

双网卡绑定

    实验环境: 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 

 


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