Cisco ASR1000修改port-channel负载方式
Cisco ASR1000修改port-channel负载方式
1 查看当前负载方式
命令: show etherchannel load-balancing
示例:
ASR1000#show etherchannel load-balancing
EtherChannel Load-Balancing Method:
Global LB Method: flow-based
LB Algo type: Source Destination IP
Port-Channel: LB Method
Port-channel1 : flow-based (Source Destination IP)
Port-channel2 : flow-based (Source Destination IP)
Port-channel4 : flow-based (Source Destination IP)
Port-channel10 : flow-based (Source Destination IP)
上面输出显示为基于源IP和目的IP的负载,但这个负载是基于流flow的,所谓的流就是指符合相同特征的流量,具体的可以为源目IP,或源目mac
所以上面的输出就是:
- 基于流的负载
- 流的负载算法: 基于源目IP。 懂了吗?**
2 如何修改负载算法?
有时默认的负载算法,比如src-dst-IP可能满足不了需求,比如port-channel中有4条member链路时,个别链路负载过高,而其他的链路比较空闲。
可以修改负载算法使流量负载重新计算
命令: port-channel load-balance-hash-algo <负载算法依据>
示例:
ASR1000(config)#port-channel load-balance-hash-algo ?
dst-ip Destination IP
dst-mac Destination MAC
src-dst-ip Source XOR Destination IP Addr
src-dst-mac Source XOR Destination MAC
src-dst-mixed-ip-port Source XOR Destination Port, IP addr
src-ip Source IP
src-mac Source MAC
比如要修改为基于源目mac的,
ASR1000(config)#port-channel load-balance-hash-algo src-dst-mac
修改完成后,输出如下:
ASR1000# show etherchannel load-balancing
EtherChannel Load-Balancing Method:
Global LB Method: flow-based
LB Algo type: Source Destination MAC
Port-Channel: LB Method
Port-channel1 : flow-based (Source Destination MAC)
Port-channel2 : flow-based (Source Destination MAC)
Port-channel4 : flow-based (Source Destination MAC)
Port-channel10 : flow-based (Source Destination MAC)
浙公网安备 33010602011771号