免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5031 | 回复: 13
打印 上一主题 下一主题

[网络管理] redhat 5.5 64位系统双网卡绑定问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-09 20:46 |只看该作者 |倒序浏览
redhat5.5 64位操作系统,做双网卡绑定,拓扑结构如图:

两台交换机之间做了双线trunk连接,交换机型号为思科2960s,服务器是HP380G7的。
网卡绑定配置如下:
# cat ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
IPADDR=192.168.166.103
NETMASK=255.255.255.0
GATEWAY=192.168.166.1
ONBOOT=yes
TYPE=Ethernet

# cat ifcfg-eth0  
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes

# cat ifcfg-eth1  
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes

etc/modprobe.conf 这个配置文档添加两行
alias bond0 bonding
options bond0 miimon=100 mode=1

在 /etc/rc.d/rc.local里加上
ifenslave bond0 eth0 eth1

现在重启网络服务后,交换机上就报连接服务器的网络端口有环路,请大家指点一下,哪里配置的不对啊

论坛徽章:
0
2 [报告]
发表于 2012-06-09 21:59 |只看该作者
ifcfg-eth0和ifcfg-eth1中mac地址和slave=yes,master=bond0没有吗

论坛徽章:
0
3 [报告]
发表于 2012-06-10 00:50 |只看该作者
338378WN8 发表于 2012-06-09 21:59
ifcfg-eth0和ifcfg-eth1中mac地址和slave=yes,master=bond0没有吗

都没有。

交换机日志
in vlan 1 is flapping between port Gi1/0/16 and port Po5
in vlan 1 is flapping between port Gi1/0/15 and port Po5
两台交换机双trunk,port-group 5,端口号是连两台服务器的端口。

论坛徽章:
0
4 [报告]
发表于 2012-06-10 09:26 |只看该作者
在 /etc/rc.d/rc.local里加上
ifenslave bond0 eth0 eth1
加了这条配置,所以在eth0和eth1里面就没有家mastr和slave的设置

论坛徽章:
0
5 [报告]
发表于 2012-06-11 08:48 |只看该作者
有没有人知道什么问题啊,昨天咨询了个ccie,说是2960做了channel-group配置的问题,现在很迷惑,到底是交换机的问题还是操作系统的问题造成交换机端口一直报环路,请大家帮忙分析一下,谢谢了

论坛徽章:
0
6 [报告]
发表于 2012-06-11 12:58 |只看该作者
交换机只用一根网线互联做trunk试试。

论坛徽章:
15
CU大牛徽章
日期:2013-03-13 15:32:35白羊座
日期:2013-10-30 13:11:16未羊
日期:2013-11-29 10:47:02白羊座
日期:2014-01-22 11:34:25白羊座
日期:2014-03-04 11:05:50申猴
日期:2014-07-29 16:31:36天秤座
日期:2013-10-23 15:33:47未羊
日期:2013-10-09 09:18:53CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55未羊
日期:2013-09-23 09:29:22
7 [报告]
发表于 2012-06-11 14:07 |只看该作者
回复 1# qldb4u


more /proc/net/bonding/bond0

如果是双active的,肯定会有环路,做成active-standby看下

   

论坛徽章:
0
8 [报告]
发表于 2012-06-11 14:23 |只看该作者
回复 6# dooza
如果不去掉port-channel的配置,直接拔掉一颗线,可以吗


   

论坛徽章:
0
9 [报告]
发表于 2012-06-11 14:24 |只看该作者
回复 7# yzkarchive


    现在绑定做的就是active-standby模式,所以很奇怪

论坛徽章:
0
10 [报告]
发表于 2012-06-11 14:33 |只看该作者
Important: put all bonding module parameters in ifcfg-bondN files
Parameters for the bonding kernel module must be specified as a space-separated list in
the BONDING_OPTS="<bonding parameters>" directive in the ifcfg-bond<N> interface
file. They should not be placed in /etc/modprobe.conf. For further instructions and
advice on configuring the bonding module and to view the list of bonding parameters, refer to
Section 42.5.2, “The Channel Bonding Module”.


那些options应该放在ifcfg-bond0里吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP