linux下双网卡绑定简单实现!
1: 首先修改bonding模块参数
修改/etc/modprobe.conf文件,加入两行
aliase bond0 bonding
aliase bond1 bonding
options bonding millmon=100 mode=1 max_bonds=2
2:修改/etc/sysconfig/network-scripts/ifcfg-ethX 内容如下
DEVICE=ethX
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0(or bond1)
SLAVE=yes
3:添加ifcfg-bond0和ifcfg-bond1
DEVICE=bond0(bond1)
USERCTL=no
ONBOOT=yes
BOOTPROTO= none
IPADDR=x.x.x.x
NETMASK=255.255.255.0
GATEWAY=x.x.x.x
4: 重新启动网络即可:service network restart

最新回应
5 days 5 hours 之前
1 year 1 week 之前
1 year 13 weeks 之前
1 year 13 weeks 之前
1 year 20 weeks 之前
1 year 22 weeks 之前
1 year 25 weeks 之前
1 year 27 weeks 之前
1 year 27 weeks 之前
1 year 28 weeks 之前