Linux中双网卡绑定bond技术

添加一个网卡,确定网卡模式相同

创建出一个bond网卡

nmcli connection add type bond con-name bond0 ifname bond0 bond.options "mode=balance-rr"

向bond0设备添加从属网卡

#添加第一块网卡enp0s3,具体名字以自己网卡名字为准
nmcli connection add type ethernet slave-type bond con-name bond0-port1 ifname enp0s3 master bond0
#添加第二块网卡enp0s8,具体名字以自己网卡名字为准
nmcli connection add type ethernet slave-type bond con-name bond0-port2 ifname enp0s8 master bond0

配置bond0设备的网络信息

#配置IP地址和子网掩码
nmcli connection modify bond0 ipv4.addresses 192.168.10.10/24
#配置网关
nmcli connection modify bond0 ipv4.gateway 192.168.10.1
#配置DNS
nmcli connection modify bond0 ipv4.dns 192.168.10.1
#配置搜索域
nmcli connection modify bond0 ipv4.dns-search linuxprobe.com
#手动配置
nmcli connection modify bond0 ipv4.method manual

开始启动,顺便查看参数

#启动bond0
nmcli connection up bond0
#查看参数
nmcli device status

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

怪兽王

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值