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