portchannel配置 http://yaofengkisss.blog.163.com/blog/static/126733642201262482557137/
负载情况
7609#show etherchannel load-balance 查看 负载方式
EtherChannel Load-Balancing Configuration:
src-dst-ip
mpls label-ip
EtherChannel Load-Balancing Addresses Used Per-Protocol:
Non-IP: Source XOR Destination MAC address
IPv4: Source XOR Destination IP address
IPv6: Source XOR Destination IP address
MPLS: Label or IP
7609#show etherchannel summary
Flags: D - down P - bundled in port-channel
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
60 Po60(RU) - Gi2/5(P) Gi2/6(P) Gi2/7(P) Gi4/5(P)
61 Po61(RU) - Gi1/8(P) Gi2/14(P) Gi3/9(P) Gi3/12(P)
7609#show etherchannel detail
Port-channel: Po60
------------
Age of the Port-channel = 9d:02h:34m:28s
Logical slot/port = 14/8 Number of ports = 4
GC = 0x00000000 HotStandBy port = null
Passive port list = Gi2/5 Gi2/6 Gi2/7 Gi4/5
Port state = Port-channel L3-Ag Ag-Inuse
Protocol = -
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 11 Gi2/5 On 2
1 22 Gi2/6 On 2
2 44 Gi2/7 On 2
3 88 Gi4/5 On 2
Time since last port bundled: 1d:04h:32m:55s Gi1/8
Time since last port Un-bundled: 0d:03h:24m:07s Gi1/8
Port-channel: Po61
------------
Age of the Port-channel = 0d:03h:38m:32s
Logical slot/port = 14/10 Number of ports = 4
GC = 0x00000000 HotStandBy port = null
Passive port list = Gi1/8 Gi2/14 Gi3/9 Gi3/12
Port state = Port-channel L3-Ag Ag-Inuse
Protocol = -
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 11 Gi1/8 On 2
3 22 Gi2/14 On 2
1 44 Gi3/9 On 2
2 88 Gi3/12 On 2
Time since last port bundled: 0d:03h:02m:52s Gi2/14
以上是port-channel 的使用情况 通过实验 得出结论 cisco port-channel 的条数 为 2 4 8 才能使接口的流量均衡;以上都是个人摸索理解仅供参考。下图是 port-channel 条数 与 负载的流量比例。
http://www.cisco.com/en/US/tech/tk389/tk213/technologies_tech_note09186a0080094714.shtml 图片来自