-
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://iyubo.blogbus.com/logs/48855024.html
系统环境
CentOS 5.3
目前主流的Linux内核(2.6)已经默认支持bonding模块,无需做特别处理。配置步骤
编写bond0网卡配置
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.1.20
NETWORK=192.168.1.0
NETMASK=255.255.255.0
BOOTPROTO=none
ONBOOT=yes
修改eth0和eth1网卡配置
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
加载bonding模块
# vi /etc/modprobe.conf
alias bond0 bonding
options bond0 miimon=100 mode=6
#注: bond options中miimon指定了MII连接监控频率(微秒),mode指定bond的策略,6为balance-alb模式,此模式不需要交换机特别配置支持,bond的参数具体参考这里
装载bonding模块
# modprobe bonding
重启网络服务
# service network restart
检查配置生效
# cat /proc/net/bonding/bond0
# ifconfig
参考文章
http://www.cyberciti.biz/tips/linux-bond-or-team-multiple-network-interfaces-nic-into-single-interface.html
http://www.cyberciti.biz/howto/question/static/linux-ethernet-bonding-driver-howto.php
http://www.linuxfoundation.org/en/Net:Bonding随机文章:
使用硬盘安装Debian 2008-06-05解决带Xen支持内核的Debian在Dell 2950上的网卡问题 2008-05-28awk精彩使用 2008-05-27Linux下构建Nginx+PHP5.2.6(FastCGI)的Web Server 2008-05-27Linux下安装SVN服务器 2008-05-27
收藏到:Del.icio.us








