关于ros 中的bonding.
ws-c2950-24,应该支持802.3ad的吧,就是LACP,但在ros中bonding两张网卡,并把bonding的mode设为802.3ad,为什么与交换机协商总不成功呢?总是FastEthernet0/19 is up, line protocol is down (notconnected)
debug lacp packets也有lacpdu包收发,怎么就是up不起来呢。。。
和sh lacp nei,还能看到ros的bonding的网卡的mac
有相关经验的交流下。谢谢。 balance-rr模式,不定时的会让我的端口进入blocking状态。。。 既无版本号,也无配置文件,还没好好看手册,怎么帮你? 哦,不好意思忘了,现在补上IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA11, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2008 by cisco Systems, Inc.
Compiled Tue 08-Jan-08 10:50 by amvarma
Image text-base: 0x80010000, data-base: 0x80570000
ROM: Bootstrap program is C2950 boot loader
sw_wolf uptime is 3 hours, 23 minutes
System returned to ROM by power-on
System image file is "flash:/c2950-i6q4l2-mz.121-22.EA11.bin"ROS用的就是原来置顶那个2.9.27
ROS: interface bonding> /int eth pr
Flags: X - disabled, R - running
# NAME MTU MAC-ADDRESS ARP
0R Ethernet2/1 150000:08:C7:08:91:20 enabled
1R Ethernet2/2 150000:08:C7:08:91:21 enabled
2R ;;; B1-R-2270,SY_2270_ME60(00:18:82:41:9D:28)
Ethernet0/1 150000:E0:00:04:55:EB enabled
interface bonding>其中Ethernet2/1和2/2是准备做802.3ad的口,接在2950的fa0/17和fa0/18上Flags: X - disabled, R - running
0R name="bonding1" mtu=1500 mac-address=00:08:C7:08:91:20 arp=enabled
slaves=Ethernet2/1,Ethernet2/2 mode=802.3ad primary=none link-monitoring=none
arp-interval=100ms mii-interval=100ms down-delay=0s up-delay=0s lacp-rate=30secs这是bonding口设置
2950:interface FastEthernet0/17
channel-group 6 mode active
channel-protocol lacp
spanning-tree portfast
!sw_wolf#sh etherchannel detail
Channel-group listing:
----------------------
Group: 6
----------
Group state = L2
Ports: 1 Maxports = 16
Port-channels: 1 Max Port-channels = 16
Protocol: LACP
Ports in the group:
-------------------
Port: Fa0/17
------------
Port state = Up Mstr In-Bndl
Channel group = 6 Mode = Active Gcchange = -
Port-channel= Po6 GC = - Pseudo port-channel = Po6
Port index = 0 Load = 0x00 Protocol = LACP
Flags:S - Device is sending Slow LACPDUs F - Device is sending fast LACPDUs.
A - Device is in active mode. P - Device is in passive mode.
Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Fa0/17 SA bndl 32768 0x6 0x6 0x11 0xD
Partner's information:
LACP port Oper Port Port
Port Flags PriorityDev ID Age Key Number State
Fa0/17 SA 255 0008.c708.912018s 0x9 0x1 0x45
Age of the port in the current state: 0d:00h:00m:14s
Port-channels in the group:
---------------------------
Port-channel: Po6 (Primary Aggregator)
------------
Age of the Port-channel = 0d:00h:11m:16s
Logical slot/port = 1/0 Number of ports = 1
HotStandBy port = null
Port state = Port-channel Ag-Inuse
Protocol = LACP
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 00 Fa0/17 Active 0
Time since last port bundled: 0d:00h:00m:16s Fa0/17
Time since last port Un-bundled: 0d:00h:00m:18s Fa0/17
sw_wolf#sw_wolf#sh int f0/17
FastEthernet0/17 is up, line protocol is down (notconnect)
Hardware is Fast Ethernet, address is 0009.7cd4.11d1 (bia 0009.7cd4.11d1)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is 100BaseTX
input flow-control is unsupported output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:04, output 00:00:01, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
132 packets input, 14084 bytes, 0 no buffer
Received 132 broadcasts (94 multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 94 multicast, 0 pause input
0 input packets with dribble condition detected
221 packets output, 23358 bytes, 0 underruns
0 output errors, 0 collisions, 7 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out
sw_wolf#sw_wolf#sh int port-channel 6
Port-channel6 is down, line protocol is down (notconnect)
Hardware is EtherChannel, address is 0009.7cd4.11d1 (bia 0009.7cd4.11d1)
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Auto-duplex, Auto-speed, media type is unknown media type
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
32 packets input, 2912 bytes, 0 no buffer
Received 32 broadcasts (16 multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 16 multicast, 0 pause input
0 input packets with dribble condition detected
99 packets output, 10560 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out
sw_wolf# 18口暂时没做,如果做了,路由和交换就不通了,影响上网了,所以只拿17口做了实验,
但没人上网时,把18口也做进去,还是不行。
2950,不是很会用,都是自己摸索着配的,呵呵,可能配的荒谬了点吧,按网上的配置,无论如何都不好用,特此求救……:') :') :') MikroTik的bonding说明http://www.mikrotik.com/testdocs/ros/2.9/interface/bonding.php
IEEE 802.3ad http://www.ieee802.org/3/ad/index.html
E文实在不咋地。。。看的磕磕绊绊的。。。
所以看的这个http://www-01.ibm.com/support/docview.wss?uid=csc14daebd274d7218ce48256f00002181fbactive Enable LACP unconditionally
auto Enable PAgP only if a PAgP device is detected
desirableEnable PAgP unconditionally
on Enable Etherchannel only
passive Enable LACP only if a LACP device is detected这几个模式,我也查到分别是干什么用的了,但都是不好使。。。 补上一段debug etherchannel detail003274: *Mar1 01:56:44: %LINK-5-CHANGED: Interface Port-channel6, changed state to administratively down
003275: *Mar1 01:57:04: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.27.2)
003276: *Mar1 01:58:33: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.27.2)
003277: 01:59:13: FEC: pagp_switch_reset_cannot_bundle_ports: group 6
003278: *Mar1 01:59:15: %LINK-3-UPDOWN: Interface Port-channel6, changed state to down
003279: *Mar1 01:59:15: %LINK-3-UPDOWN: Interface FastEthernet0/17, changed state to down
003280: *Mar1 01:59:15: %LINK-3-UPDOWN: Interface FastEthernet0/18, changed state to up
003281: *Mar1 01:59:17: %LINK-3-UPDOWN: Interface FastEthernet0/17, changed state to up
003282: 01:59:17: FEC: pagp_switch_find_master: group 6
003283: 01:59:17: FEC: lacp_switch_calculate_oper_key: oper_key for port Fa0/18 is 0x6
003284: 01:59:18: FEC: pagp_switch_find_master: group 6
003285: 01:59:18: FEC: lacp_switch_calculate_oper_key: oper_key for port Fa0/17 is 0x6
003286: 01:59:26: FEC: pagp_switch_reset_load_index: reading load-index for port Fa0/17
003287: 01:59:26: FEC: pagp_switch_reset_load_index: reading load-index for port Fa0/18
003288: *Mar1 01:59:27: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/17, changed state to up
003289: *Mar1 01:59:27: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/18, changed state to up
003290: 01:59:44: FEC: pagp_switch_find_master: group 6
003291: 01:59:44: FEC: lacp_switch_calculate_oper_key: oper_key for port Fa0/18 is 0x6
003292: 01:59:44: FEC: lacp_switch_get_first_agg_id_from_admin_oper_keys: aggregator not found for admin_key and oper_key
003293: 01:59:44: FEC: lacp_switch_get_new_agg_id: returning the primary aggregator Po6
003294: 01:59:44: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
003295: 01:59:44: FEC: lacp_switch_check_hw_sw_constraints_internal: port Fa0/18 can be bundled in the aggregator Po6, new afb->nports
003296: *Mar1 01:59:45: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/18, changed state to down
003297: 01:59:45: FEC: pagp_switch_find_master: group 6
003298: 01:59:45: FEC: lacp_switch_calculate_oper_key: oper_key for port Fa0/17 is 0x6
003299: 01:59:45: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
003300: 01:59:45: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
003301: 01:59:45: FEC: lacp_switch_check_hw_sw_constraints_internal: port Fa0/17 can be bundled in the aggregator Po6, new afb->nports
003302: 01:59:46: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
003303: 01:59:46: FEC: fec_set_agport_macaddr: Po6 Fa0/18 (add)
003304: *Mar1 01:59:46: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/17, changed state to down
003305: 01:59:47: FEC: returning agport Po6 for port (Fa0/18)
003306: 01:59:47: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
003307: 01:59:47: FEC: fec_set_agport_macaddr: Po6 Fa0/17 (add)
003308: 01:59:48: FEC: returning agport Po6 for port (Fa0/17)
003309: 01:59:48: FEC: returning agport Po6 for port (Fa0/18)
003310: 01:59:49: FEC: returning agport Po6 for port (Fa0/17)
003311: 01:59:49: FEC: returning agport Po6 for port (Fa0/18)
003312: 01:59:50: FEC: returning agport Po6 for port (Fa0/17)
003313: 01:59:50: FEC: returning agport Po6 for port (Fa0/18)
003314: 01:59:51: FEC: returning agport Po6 for port (Fa0/17)
003315: 01:59:51: FEC: returning agport Po6 for port (Fa0/18)
003316: 01:59:52: FEC: returning agport Po6 for port (Fa0/17)
003317: 01:59:52: FEC: returning agport Po6 for port (Fa0/18)
004091: 02:05:45: FEC: returning agport Po6 for port (Fa0/17)
004092: 02:05:45: FEC: fec_set_agport_macaddr: Po6 Fa0/17 (remove)
004093: 02:05:45: FEC: fec_set_agport_macaddr: Po6 no ports
004094: 02:05:45: FEC: pagp_switch_reset_cannot_bundle_ports: group 6
004095: 02:05:45: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
004096: 02:05:45: FEC: pagp_switch_reset_load_index: reading load-index for port Po6
004097: 02:05:45: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
004098: 02:05:45: FEC: lacp_switch_get_first_associated_port_from_agg_id: no associated ports in the aggregator Po6
004099: 02:05:45: FEC: lacp_switch_get_first_agg_id_from_admin_oper_keys: aggregator not found for admin_key and oper_key
004100: 02:05:45: FEC: lacp_switch_get_new_agg_id: returning the primary aggregator Po6
004101: 02:05:45: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
004102: 02:05:45: FEC: lacp_switch_check_hw_sw_constraints_internal: port Fa0/17 can be bundled in the aggregator Po6, new afb->nports
004103: 02:05:47: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
004104: 02:05:47: FEC: fec_set_agport_macaddr: Po6 Fa0/17 (add)
004105: 02:05:48: FEC: returning agport Po6 for port (Fa0/17) 问题是不是出在这里:003291: 01:59:44: FEC: lacp_switch_calculate_oper_key: oper_key for port Fa0/18 is 0x6
003292: 01:59:44: FEC: lacp_switch_get_first_agg_id_from_admin_oper_keys: aggregator not found for admin_key and oper_key
003293: 01:59:44: FEC: lacp_switch_get_new_agg_id: returning the primary aggregator Po6
003294: 01:59:44: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
003295: 01:59:44: FEC: lacp_switch_check_hw_sw_constraints_internal: port Fa0/18 can be bundled in the aggregator Po6, new afb->nports
003296: *Mar1 01:59:45: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/18, changed state to downaggregator not found for admin_key and oper_key ,两个key没找到?不明白怎么处理了。
帮帮忙,各位。
[ 本帖最后由 小狼 于 2008-9-26 14:53 编辑 ] 不知道为什么会莫名其妙的出现这一句:004092: 02:05:45: FEC: fec_set_agport_macaddr: Po6 Fa0/17 (remove)然后还会有add然后是几个004105: 02:05:48: FEC: returning agport Po6 for port (Fa0/17)这样的循环,然后再remove。。。
好像还是跟ros没协商好
[ 本帖最后由 小狼 于 2008-9-26 14:52 编辑 ] 把spanning-tree 关掉,并把所有相关端口改为强制100M——DUP试下
再不行就把sh lacp nei的结果拿来看看,放假了,先回家过节了。。。。
[ 本帖最后由 parphy 于 2008-9-26 15:46 编辑 ] 等你回来再研究吧 用交叉线试试。。
页:
[1]