operton 上安装gentoo x86_64, 配置bonding出现问题, 求助!(已解决)
时间:2007-01-09
来源:互联网
我在生产环境的服务器上安装了gentoo x64_64,使用livecd安装的(由于前几天断网,没法使用网路安装),安装好了使用emerge update了整个系统。
安装中遇到一个小bug,我在sun x4100服务器上安装的,两块硬盘做的raid1 ,结果光盘把系统认成/dev/sdb, 安装好系统重启却被认成/dev/sda,这个问题让俺查了两天才发现。郁闷!
由于是生产环境,对系统可用性要求很高,网卡必须做bonding, emerge 发现没有适合amd64的ifenslave版本,于是按照内核自带的文档编译ifenslave
配置bonding:
添加/etc/modules.d/bond
/etc/conf.d/net
添加启动脚本
cd /etc/init.d && ln -s net.lo net.bond0
OK,启动bond0
/etc/init.d/net.bond0 start
现在的问题是:
网络有问题,ping丢包,且经常出现 DUP!
请各位高手帮忙分析一下哪儿出了问题,谢谢!急
安装中遇到一个小bug,我在sun x4100服务器上安装的,两块硬盘做的raid1 ,结果光盘把系统认成/dev/sdb, 安装好系统重启却被认成/dev/sda,这个问题让俺查了两天才发现。郁闷!
由于是生产环境,对系统可用性要求很高,网卡必须做bonding, emerge 发现没有适合amd64的ifenslave版本,于是按照内核自带的文档编译ifenslave
代码:
gcc -Wall -O -I/usr/src/linux/include ifenslave.c -o ifenslave cp ifenslave /sbin/.
添加/etc/modules.d/bond
代码:
# read /usr/src/linux/Documentation/networking/bonding.txt for help! alias bond0 bonding options bond0 miimon=100 mode=1 primary=eth0
代码:
# To bond interfaces together config_eth0=( "null") config_eth1=( "null") slaves_bond0="eth0 eth1" config_bond0=( "172.16.20.128 netmask 255.255.255.0" ) depend_bond0() { need net.eth0 net.eth1 } routes_bond0=( "default gw 172.16.20.254")
cd /etc/init.d && ln -s net.lo net.bond0
OK,启动bond0
/etc/init.d/net.bond0 start
现在的问题是:
网络有问题,ping丢包,且经常出现 DUP!
请各位高手帮忙分析一下哪儿出了问题,谢谢!急
作者: sysit 发布时间: 2007-01-09
终于搞定了。
配置内核时范了个小错误,把bonding直接编译进内核了,结果bonding的参数传不进去,
查看 /proc/net/bonding/bond0 发现
Ethernet Channel Bonding Driver: v3.0.3 (March 23, 2006)
Bonding Mode: fault-tolerance (round robin)
Primary Slave: eth0
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:14:4f:28:43:d4
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:14:4f:28:43:d5
问题查到了就好解决了,重新编译内核,选择bonding为模块,重起系统,OK
配置内核时范了个小错误,把bonding直接编译进内核了,结果bonding的参数传不进去,
查看 /proc/net/bonding/bond0 发现
Ethernet Channel Bonding Driver: v3.0.3 (March 23, 2006)
Bonding Mode: fault-tolerance (round robin)
Primary Slave: eth0
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:14:4f:28:43:d4
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:14:4f:28:43:d5
问题查到了就好解决了,重新编译内核,选择bonding为模块,重起系统,OK
作者: sysit 发布时间: 2007-01-10
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28