雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 7622|回复: 14

[讨论/求助] lacp中端口优先级

[复制链接]
发表于 2009-5-7 20:55:49 | 显示全部楼层 |阅读模式
两台交换机均通过f0/1-4连接
两台交换机f0/1-4均为trunk状态
其中一台
lacp为passive
另一台
lacp为active
lacp system-priority 10
f0/1-2
的 lacp port-priority 为 10

可是f0/1-4均为P状态

f0/3-4应该为备份端口的啊

这是为什么??

谢谢高手指教
xiao8206 该用户已被删除
发表于 2009-5-8 03:31:11 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2009-5-8 09:11:54 | 显示全部楼层
SW2配置如下:
lacp system-priority 100
interface Port-channel1
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
!
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
lacp port-priority 100
channel-group 1 mode active
!
interface FastEthernet0/2
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
lacp port-priority 100
channel-group 1 mode active
!
interface FastEthernet0/3
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
channel-group 1 mode active
!
interface FastEthernet0/4
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
channel-group 1 mode active
!
SW1配置如下:
lacp system-priority 65535
interface Port-channel1
!
interface FastEthernet0/1
channel-group 1 mode passive
!
interface FastEthernet0/2
channel-group 1 mode passive
!
interface FastEthernet0/3
channel-group 1 mode passive
!
interface FastEthernet0/4
channel-group 1 mode passive
!
sw2#show etherchannel summary
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port

Number of channel-groups in use: 1
Number of aggregators:           1
Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1      Po1(SU)         LACP      Fa0/1(P)    Fa0/2(P)    Fa0/3(P)
                                 Fa0/4(P)

为什么Fa0/3(P)、 Fa0/4(P)为P,如何让Fa0/3(P)、Fa0/4(P)成为Fa0/3(s)、F0 /4(s)??
谢谢
发表于 2009-5-8 09:55:00 | 显示全部楼层
我怎么都没有显示图标啊
 楼主| 发表于 2009-5-8 10:42:21 | 显示全部楼层
以下是cisco网站上的文档资料
Configuring LACP Hot-Standby Ports
When enabled, LACP tries to configure the maximum number of LACP-compatible ports in a channel, up to a maximum of 16 ports. Only eight LACP links can be active at one time. The software places any additional links in a hot-standby mode. If one of the active links becomes inactive, a link that is in the hot-standby mode becomes active in its place.
If you configure more than eight links for an EtherChannel group, the software automatically decides which of the hot-standby ports to make active based on the LACP priority. The software assigns to every link between systems that operate LACP a unique priority made up of these elements (in priority order):
• LACP system priority
• System ID (a combination of the LACP system priority and the switch MAC address)
• LACP port priority
• Port number
In priority comparisons, numerically lower values have higher priority. The priority decides which ports should be put in standby mode when there is a hardware limitation that prevents all compatible ports ** aggregating.
Ports are considered for active use in aggregation in link-priority order starting with the port attached to the highest priority link. Each port is **ed for active use if the preceding higher priority **ions can also be maintained. Otherwise, the port is **ed for standby mode.
You can change the default values of the LACP system priority and the LACP port priority to affect how the software **s active and standby links.

如果要让一个端口成为备份的链路,要超过8条之后,LACP system priority 和LACP port priority 的设置要超过8条才有意义,不晓得是不是这样一个意思,请高手赐教,谢谢
 楼主| 发表于 2009-5-8 10:42:48 | 显示全部楼层
可是很灵异的是 好像之前能输出如下的东西:
sw2#show etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
u - unsuitable for bundling
w - waiting to be aggregated
d - default port

Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Fa0/1(P) Fa0/2(P) Fa0/3(s)
Fa0/4(s)

所以被搞蒙了

会不会有其他情况?? 谢谢赐教
 楼主| 发表于 2009-5-8 10:48:31 | 显示全部楼层
设备情况
sw1 2960
sw2 3560
谢谢
xiao8206 该用户已被删除
发表于 2009-5-8 10:48:49 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
xiao8206 该用户已被删除
发表于 2009-5-8 10:51:16 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2009-5-8 10:56:47 | 显示全部楼层
是真设备 呵呵
可是6楼的输出

真的是灵异
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-11-22 21:08 , Processed in 0.090069 second(s), 19 queries , Gzip On.

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