找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 15605|回复: 11

[其它] 关于ros 中的bonding.

[复制链接]
发表于 2008-9-24 21:52:10 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
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
有相关经验的交流下。谢谢。
routeros
 楼主| 发表于 2008-9-24 22:50:48 | 显示全部楼层
balance-rr模式,不定时的会让我的端口进入blocking状态。。。
routeros
回复

使用道具 举报

发表于 2008-9-25 09:46:32 | 显示全部楼层
既无版本号,也无配置文件,还没好好看手册,怎么帮你?
routeros
回复

使用道具 举报

 楼主| 发表于 2008-9-25 18:06:43 | 显示全部楼层
哦,不好意思忘了,现在补上
  1. IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA11, RELEASE SOFTWARE (fc2)
  2. Copyright (c) 1986-2008 by cisco Systems, Inc.
  3. Compiled Tue 08-Jan-08 10:50 by amvarma
  4. Image text-base: 0x80010000, data-base: 0x80570000

  5. ROM: Bootstrap program is C2950 boot loader

  6. sw_wolf uptime is 3 hours, 23 minutes
  7. System returned to ROM by power-on
  8. System image file is "flash:/c2950-i6q4l2-mz.121-22.EA11.bin"
复制代码
ROS用的就是原来置顶那个2.9.27

ROS:
  1. [wolf@wolf_ros2927] interface bonding> /int eth pr
  2. Flags: X - disabled, R - running
  3. #    NAME                                                       MTU   MAC-ADDRESS       ARP
  4. 0  R Ethernet2/1                                                1500  00:08:C7:08:91:20 enabled
  5. 1  R Ethernet2/2                                                1500  00:08:C7:08:91:21 enabled
  6. 2  R ;;; B1-R-2270,SY_2270_ME60(00:18:82:41:9D:28)
  7.       Ethernet0/1                                                1500  00:E0:00:04:55:EB enabled
  8. [wolf@wolf_ros2927] interface bonding>
复制代码
其中Ethernet2/1和2/2是准备做802.3ad的口,接在2950的fa0/17和fa0/18上
  1. Flags: X - disabled, R - running
  2. 0  R name="bonding1" mtu=1500 mac-address=00:08:C7:08:91:20 arp=enabled
  3.       slaves=Ethernet2/1,Ethernet2/2 mode=802.3ad primary=none link-monitoring=none
  4.       arp-interval=100ms mii-interval=100ms down-delay=0s up-delay=0s lacp-rate=30secs
复制代码
这是bonding口设置


2950:
  1. interface FastEthernet0/17
  2. channel-group 6 mode active
  3. channel-protocol lacp
  4. spanning-tree portfast
  5. !
复制代码
  1. sw_wolf#sh etherchannel detail
  2.                 Channel-group listing:
  3.                 ----------------------

  4. Group: 6
  5. ----------
  6. Group state = L2
  7. Ports: 1   Maxports = 16
  8. Port-channels: 1 Max Port-channels = 16
  9. Protocol:   LACP
  10.                 Ports in the group:
  11.                 -------------------
  12. Port: Fa0/17
  13. ------------

  14. Port state    = Up Mstr In-Bndl
  15. Channel group = 6           Mode = Active          Gcchange = -
  16. Port-channel  = Po6         GC   =   -             Pseudo port-channel = Po6
  17. Port index    = 0           Load = 0x00            Protocol =   LACP

  18. Flags:  S - Device is sending Slow LACPDUs   F - Device is sending fast LACPDUs.

  19.         A - Device is in active mode.        P - Device is in passive mode.

  20. Local information:
  21.                             LACP port     Admin     Oper    Port     Port
  22. Port      Flags   State     Priority      Key       Key     Number   State
  23. Fa0/17    SA      bndl      32768         0x6       0x6     0x11     0xD

  24. Partner's information:

  25.                   LACP port                        Oper    Port     Port
  26. Port      Flags   Priority  Dev ID         Age     Key     Number   State
  27. Fa0/17    SA      255       0008.c708.9120  18s    0x9     0x1      0x45

  28. Age of the port in the current state: 0d:00h:00m:14s

  29.                 Port-channels in the group:
  30.                 ---------------------------

  31. Port-channel: Po6    (Primary Aggregator)

  32. ------------

  33. Age of the Port-channel   = 0d:00h:11m:16s
  34. Logical slot/port   = 1/0          Number of ports = 1
  35. HotStandBy port = null
  36. Port state          = Port-channel Ag-Inuse
  37. Protocol            =   LACP

  38. Ports in the Port-channel:

  39. Index   Load   Port     EC state        No of bits
  40. ------+------+------+------------------+-----------
  41.   0     00     Fa0/17   Active             0

  42. Time since last port bundled:    0d:00h:00m:16s    Fa0/17
  43. Time since last port Un-bundled: 0d:00h:00m:18s    Fa0/17

  44. sw_wolf#
复制代码
  1. sw_wolf#sh int f0/17
  2. FastEthernet0/17 is up, line protocol is down (notconnect)
  3.   Hardware is Fast Ethernet, address is 0009.7cd4.11d1 (bia 0009.7cd4.11d1)
  4.   MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
  5.      reliability 255/255, txload 1/255, rxload 1/255
  6.   Encapsulation ARPA, loopback not set
  7.   Keepalive set (10 sec)
  8.   Full-duplex, 100Mb/s, media type is 100BaseTX
  9.   input flow-control is unsupported output flow-control is unsupported
  10.   ARP type: ARPA, ARP Timeout 04:00:00
  11.   Last input 00:00:04, output 00:00:01, output hang never
  12.   Last clearing of "show interface" counters never
  13.   Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  14.   Queueing strategy: fifo
  15.   Output queue: 0/40 (size/max)
  16.   5 minute input rate 0 bits/sec, 0 packets/sec
  17.   5 minute output rate 0 bits/sec, 0 packets/sec
  18.      132 packets input, 14084 bytes, 0 no buffer
  19.      Received 132 broadcasts (94 multicast)
  20.      0 runts, 0 giants, 0 throttles
  21.      0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
  22.      0 watchdog, 94 multicast, 0 pause input
  23.      0 input packets with dribble condition detected
  24.      221 packets output, 23358 bytes, 0 underruns
  25.      0 output errors, 0 collisions, 7 interface resets
  26.      0 babbles, 0 late collision, 0 deferred
  27.      0 lost carrier, 0 no carrier, 0 PAUSE output
  28.      0 output buffer failures, 0 output buffers swapped out
  29. sw_wolf#
复制代码
  1. sw_wolf#sh int port-channel 6
  2. Port-channel6 is down, line protocol is down (notconnect)
  3.   Hardware is EtherChannel, address is 0009.7cd4.11d1 (bia 0009.7cd4.11d1)
  4.   MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
  5.      reliability 255/255, txload 1/255, rxload 1/255
  6.   Encapsulation ARPA, loopback not set
  7.   Auto-duplex, Auto-speed, media type is unknown media type
  8.   input flow-control is off, output flow-control is off
  9.   ARP type: ARPA, ARP Timeout 04:00:00
  10.   Last input never, output never, output hang never
  11.   Last clearing of "show interface" counters never
  12.   Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  13.   Queueing strategy: fifo
  14.   Output queue: 0/40 (size/max)
  15.   5 minute input rate 0 bits/sec, 0 packets/sec
  16.   5 minute output rate 0 bits/sec, 0 packets/sec
  17.      32 packets input, 2912 bytes, 0 no buffer
  18.      Received 32 broadcasts (16 multicast)
  19.      0 runts, 0 giants, 0 throttles
  20.      0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
  21.      0 watchdog, 16 multicast, 0 pause input
  22.      0 input packets with dribble condition detected
  23.      99 packets output, 10560 bytes, 0 underruns
  24.      0 output errors, 0 collisions, 1 interface resets
  25.      0 babbles, 0 late collision, 0 deferred
  26.      0 lost carrier, 0 no carrier, 0 PAUSE output
  27.      0 output buffer failures, 0 output buffers swapped out
  28. sw_wolf#
复制代码
routeros
回复

使用道具 举报

 楼主| 发表于 2008-9-25 18:11:28 | 显示全部楼层
18口暂时没做,如果做了,路由和交换就不通了,影响上网了,所以只拿17口做了实验,
但没人上网时,把18口也做进去,还是不行。


2950,不是很会用,都是自己摸索着配的,呵呵,可能配的荒谬了点吧,按网上的配置,无论如何都不好用,特此求救……
routeros
回复

使用道具 举报

 楼主| 发表于 2008-9-25 18:32:40 | 显示全部楼层
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=csc14daebd274d7218ce48256f00002181fb
  1.   active     Enable LACP unconditionally
  2.   auto       Enable PAgP only if a PAgP device is detected
  3.   desirable  Enable PAgP unconditionally
  4.   on         Enable Etherchannel only
  5.   passive    Enable LACP only if a LACP device is detected
复制代码
这几个模式,我也查到分别是干什么用的了,但都是不好使。。。
routeros
回复

使用道具 举报

 楼主| 发表于 2008-9-26 14:43:47 | 显示全部楼层
补上一段debug etherchannel detail
  1. 003274: *Mar  1 01:56:44: %LINK-5-CHANGED: Interface Port-channel6, changed state to administratively down
  2. 003275: *Mar  1 01:57:04: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.27.2)
  3. 003276: *Mar  1 01:58:33: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.27.2)
  4. 003277: 01:59:13: FEC: pagp_switch_reset_cannot_bundle_ports: group 6
  5. 003278: *Mar  1 01:59:15: %LINK-3-UPDOWN: Interface Port-channel6, changed state to down
  6. 003279: *Mar  1 01:59:15: %LINK-3-UPDOWN: Interface FastEthernet0/17, changed state to down
  7. 003280: *Mar  1 01:59:15: %LINK-3-UPDOWN: Interface FastEthernet0/18, changed state to up
  8. 003281: *Mar  1 01:59:17: %LINK-3-UPDOWN: Interface FastEthernet0/17, changed state to up
  9. 003282: 01:59:17: FEC: pagp_switch_find_master: group 6
  10. 003283: 01:59:17: FEC: lacp_switch_calculate_oper_key: oper_key for port Fa0/18 is 0x6
  11. 003284: 01:59:18: FEC: pagp_switch_find_master: group 6
  12. 003285: 01:59:18: FEC: lacp_switch_calculate_oper_key: oper_key for port Fa0/17 is 0x6
  13. 003286: 01:59:26: FEC: pagp_switch_reset_load_index: reading load-index for port Fa0/17
  14. 003287: 01:59:26: FEC: pagp_switch_reset_load_index: reading load-index for port Fa0/18
  15. 003288: *Mar  1 01:59:27: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/17, changed state to up
  16. 003289: *Mar  1 01:59:27: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/18, changed state to up
  17. 003290: 01:59:44: FEC: pagp_switch_find_master: group 6
  18. 003291: 01:59:44: FEC: lacp_switch_calculate_oper_key: oper_key for port Fa0/18 is 0x6
  19. 003292: 01:59:44: FEC: lacp_switch_get_first_agg_id_from_admin_oper_keys: aggregator not found for admin_key [0x6] and oper_key [0x6]
  20. 003293: 01:59:44: FEC: lacp_switch_get_new_agg_id: returning the primary aggregator Po6
  21. 003294: 01:59:44: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
  22. 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 [1]
  23. 003296: *Mar  1 01:59:45: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/18, changed state to down
  24. 003297: 01:59:45: FEC: pagp_switch_find_master: group 6
  25. 003298: 01:59:45: FEC: lacp_switch_calculate_oper_key: oper_key for port Fa0/17 is 0x6
  26. 003299: 01:59:45: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
  27. 003300: 01:59:45: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
  28. 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 [2]
  29. 003302: 01:59:46: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
  30. 003303: 01:59:46: FEC: fec_set_agport_macaddr: Po6 Fa0/18 (add)
  31. 003304: *Mar  1 01:59:46: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/17, changed state to down
  32. 003305: 01:59:47: FEC: returning agport Po6 for port (Fa0/18)
  33. 003306: 01:59:47: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
  34. 003307: 01:59:47: FEC: fec_set_agport_macaddr: Po6 Fa0/17 (add)
  35. 003308: 01:59:48: FEC: returning agport Po6 for port (Fa0/17)
  36. 003309: 01:59:48: FEC: returning agport Po6 for port (Fa0/18)
  37. 003310: 01:59:49: FEC: returning agport Po6 for port (Fa0/17)
  38. 003311: 01:59:49: FEC: returning agport Po6 for port (Fa0/18)
  39. 003312: 01:59:50: FEC: returning agport Po6 for port (Fa0/17)
  40. 003313: 01:59:50: FEC: returning agport Po6 for port (Fa0/18)
  41. 003314: 01:59:51: FEC: returning agport Po6 for port (Fa0/17)
  42. 003315: 01:59:51: FEC: returning agport Po6 for port (Fa0/18)
  43. 003316: 01:59:52: FEC: returning agport Po6 for port (Fa0/17)
  44. 003317: 01:59:52: FEC: returning agport Po6 for port (Fa0/18)

  45. 004091: 02:05:45: FEC: returning agport Po6 for port (Fa0/17)
  46. 004092: 02:05:45: FEC: fec_set_agport_macaddr: Po6 Fa0/17 (remove)
  47. 004093: 02:05:45: FEC: fec_set_agport_macaddr: Po6 no ports
  48. 004094: 02:05:45: FEC: pagp_switch_reset_cannot_bundle_ports: group 6
  49. 004095: 02:05:45: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
  50. 004096: 02:05:45: FEC: pagp_switch_reset_load_index: reading load-index for port Po6
  51. 004097: 02:05:45: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
  52. 004098: 02:05:45: FEC: lacp_switch_get_first_associated_port_from_agg_id: no associated ports in the aggregator Po6
  53. 004099: 02:05:45: FEC: lacp_switch_get_first_agg_id_from_admin_oper_keys: aggregator not found for admin_key [0x6] and oper_key [0x6]
  54. 004100: 02:05:45: FEC: lacp_switch_get_new_agg_id: returning the primary aggregator Po6
  55. 004101: 02:05:45: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
  56. 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 [1]
  57. 004103: 02:05:47: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
  58. 004104: 02:05:47: FEC: fec_set_agport_macaddr: Po6 Fa0/17 (add)
  59. 004105: 02:05:48: FEC: returning agport Po6 for port (Fa0/17)
复制代码
routeros
回复

使用道具 举报

 楼主| 发表于 2008-9-26 14:45:20 | 显示全部楼层
问题是不是出在这里:
  1. 003291: 01:59:44: FEC: lacp_switch_calculate_oper_key: oper_key for port Fa0/18 is 0x6
  2. 003292: 01:59:44: FEC: lacp_switch_get_first_agg_id_from_admin_oper_keys: aggregator not found for admin_key [0x6] and oper_key [0x6]
  3. 003293: 01:59:44: FEC: lacp_switch_get_new_agg_id: returning the primary aggregator Po6
  4. 003294: 01:59:44: FEC: lacp_switch_is_aggregator_valid: aggregator Po6 is still valid
  5. 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 [1]
  6. 003296: *Mar  1 01:59:45: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/18, changed state to down
复制代码
aggregator not found for admin_key [0x6] and oper_key [0x6],两个key没找到?不明白怎么处理了。
帮帮忙,各位。

[ 本帖最后由 小狼 于 2008-9-26 14:53 编辑 ]
routeros
回复

使用道具 举报

 楼主| 发表于 2008-9-26 14:50:43 | 显示全部楼层
不知道为什么会莫名其妙的出现这一句:
  1. 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 编辑 ]
routeros
回复

使用道具 举报

发表于 2008-9-26 15:42:55 | 显示全部楼层
把spanning-tree 关掉,并把所有相关端口改为强制100M——DUP试下
再不行就把sh lacp nei的结果拿来看看,放假了,先回家过节了。。。。

[ 本帖最后由 parphy 于 2008-9-26 15:46 编辑 ]
routeros
回复

使用道具 举报

 楼主| 发表于 2008-9-30 23:25:32 | 显示全部楼层
等你回来再研究吧
routeros
回复

使用道具 举报

发表于 2009-1-23 14:31:31 | 显示全部楼层
用交叉线试试。。
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-17 20:46 , Processed in 0.092526 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表