Red Hat Enterprise Linux Server release 6.3 实现双网卡绑定
查看OS版本
# cat /etc/issue
Red Hat Enterprise Linux Server release 6.3
查看系统目前是否支持绑定功能(不显示如下信息,表示不支持,请网上查找解决方法)
# cat /boot/config-2.6.32-279.el6.x86_64|grep -i bonding
CONFIG_BONDING=m
备份网卡配置文件,恢复使用
# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak
# cp /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/ifcfg-eth1.bak
编辑ifcfg-bond0
#vim /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE="bond0"
BOOTPROTO=none
NM_CONTROLLED="no"
ONBOOT=yes
TYPE="Ethernet"
IPADDR=10.130.**.**
GATEWAY=10.130.**.*
DNS1=202.106.**.**
DNS2=202.106.196.**
IPV6INIT=no
USERCTL=no
编辑ifcfg-eth0
#vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO=none
ONBOOT=yes
TYPE="Ethernet"
USERCTL=no
MASTER=bond0
SLAVE=yes
编辑ifcfg-eth1
#vim /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE="eth1"
BOOTPROTO=none
ONBOOT="yes"
TYPE="Ethernet"
USERCTL=no
MASTER=bond0
SLAVE=yes
修改配置绑定模型
#vim /etc/modprobe.d/dist.conf
alias bond0 bonding
options bond0 miimon=100 mode=1
关闭NetworkManager,不关闭也许会发生冲突
#service NetworkManager stop
#chkconfig NetworkManager off
重启
#reboot
OK!
阅读(1826) | 评论(1) | 转发(0) |