CentOS7.x配置bond0


系統環境

CentOS7.3、雙網卡(eth0和eth1)

 

使用nmcli命令配置bond

生成bond0文件

nmcli connection add type bond ifname bond0 mode 0

 

如果不想修改bond網絡接口配置文件可以命令后加上 ip4 "ip地址" gw4 "網關地址"

nmcli connection add type bond ifname bond0 mode 0 ip4 192.168.10.25/24 gw4 192.168.10.1

 

將網卡eth0和eth1綁定到bond0上

nmcli connection add type bond-slave ifname eth0 master bond0

nmcli connection add type bond-slave ifname eth1 master bond0


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM