rhel 绑定双网卡主备

百度知道:http://jingyan.baidu.com/album/25648fc1a2cbc99190fd007a.html?picindex=1

一、新建bond文件

/etc/sysconfig/network-scripts/ifcfg-bond0

配上网络,以后的网络出入都走这个。

mode=1指主备,0则为负载均衡。

miimon=100的意思就是,每100毫秒检测网卡和交换机之间是否连通,如不通则使用另外的链路

二、修改网卡文件

物理网卡配置到bond上。

/etc/sysconfig/network-scripts/ifcfg-eth0

同理另一块网卡

/etc/sysconfig/network-scripts/ifcfg-eth1

三、修改/etc/modprobe.d/dist.conf

添加以下行

 

运行

四、重启网络

 

 

Leave a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注