取消
显示结果 
搜索替代 
您的意思是: 
cancel
463
查看次数
0
有帮助
4
回复

vpc下挂设备只走右边secondary设备,不走左边是哪里配置有问题。

roke
Spotlight
Spotlight

roke_0-1701854386395.png

 

4 条回复4

wyc_chao
Spotlight
Spotlight

hsrp 优先级?

roke
Spotlight
Spotlight

没有配置hsrp,走的是二层

请问你是想左边到右边走peer-link吗?如果是这样的话vPC Data-Plane Loop Avoidance的机制不允许跨Peer-link的流量还发给VPC的成员端口的。

vPC Data-Plane Loop Avoidance
vPC performs loop avoidance at data-plane layer instead of control plane layer for Spanning Tree Protocol. All logics
are implemented directly in hardware on vPC peer-link ports, avoiding any dependancy to CPU utilization.
vPC peer devices always forward traffic locally when possible. vPC peer-link does not typically forward data
packets and it is usually considered as a control plane extension in a steady state network (vPC peer-link used to
synchronize information between the 2 peer devices as mac address, vPC member state information, IGMP).
vPC loop avoidance rule states that traffic coming from vPC member port, then crossing vPC peer-link is NOT
allowed to egress any vPC member port; however it can egress any other type of port (L3 port, orphan port, …).
The only exception to this rule occurs when vPC member port goes down. vPC peer devices exchange memberport
states and reprogram in hardware the vPC loop avoidance logic for that particular vPC. The peer-link is then used
as backup path for optimal resiliency. Traffic need not ingress a vPC member port for this rule to be applicable. The
vPC loop avoidance rulle exception is depicted in the figure below:  

Snipaste_2023-12-07_10-40-55.png

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !

Tomatoeveryday
Level 1
Level 1

vpc是虚拟的portchannel,是二层概念。
哈希算法的选择基于不同的字段,默认通过源目mac的哈希结果进行负载均衡。在Nexus交换机上,可以通过配置PortChannel的负载平衡模式来指定哈希方式。
以下是一些常见的PortChannel负载平衡模式:
src-ip: 使用源IP地址进行哈希。
dst-ip: 使用目的IP地址进行哈希。
src-dst-ip: 使用源和目的IP地址的组合进行哈希。
src-mac: 使用源MAC地址进行哈希。
dst-mac: 使用目的MAC地址进行哈希。
src-dst-mac: 使用源和目的MAC地址的组合进行哈希。
src-port: 使用源端口号进行哈希。
dst-port: 使用目的端口号进行哈希。
src-dst-port: 使用源端口号和目的端口号的组合进行哈希。
在Nexus交换机上,可以使用如下命令来配置PortChannel的负载平衡模式:
Nexus(config)# port-channel load-balance ethernet {mode}
其中{mode}部分需要替换为上述列出的负载平衡模式之一。例如,如果你想要基于源和目的IP地址进行负载平衡,可以使用如下命令:
Nexus(config)# port-channel load-balance ethernet src-dst-ip
在配置了负载平衡模式之后,流量将根据所选的哈希算法在PortChannel的物理链接之间分配。选择合适的负载平衡模式对于优化网络带宽利用和避免单个链接过载非常重要。
请注意,不同的Nexus交换机型号和NX-OS版本可能支持不同的负载平衡模式和配置命令。因此,最好查阅特定设备的官方文档来获取准确的配置指导。

快捷链接