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

VPC+HSRP,数据路径问题

nexusNXOS57758
Spotlight
Spotlight

链路全通的情况下,tracert 测试一下,发现并有没有hsrp优先级高的那条路,而是走的低的,
是随机走,还是架构有问题呢,配置如下
第一台 N9K01
Interface Grp Prio P State Active addr Standby addr Group addr
Vlan1 1 180 P Active local 10.66.0.3 10.66.0.1 (conf)
Vlan400 2 180 P Active local 10.66.2.3 10.66.2.1 (conf)
Vlan402 3 180 P Active local 10.66.4.3 10.66.4.1 (conf)
C9332C_FIWO_Core_66.0.2#
vPC domain id : 1
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success
Per-vlan consistency status : success
Type-2 consistency status : success
vPC role : primary, operational secondary
Number of vPCs configured : 5
Peer Gateway : Disabled
Dual-active excluded VLANs : -
Graceful Consistency Check : Enabled
Auto-recovery status : Disabled
Delay-restore status : Timer is off.(timeout = 30s)
Delay-restore SVI status : Timer is off.(timeout = 10s)
Operational Layer3 Peer-router : Disabled
Virtual-peerlink mode : Disabled
vPC Peer-link status
---------------------------------------------------------------------
id Port Status Active vlans
-- ---- ------ -------------------------------------------------
1 Po1 up 1,400,402
vPC status
----------------------------------------------------------------------------
Id Port Status Consistency Reason Active vlans
-- ------------ ------ ----------- ------ ---------------
1 Po10 up success success 1,400
2 Po11 up success success 1,402
3 Po12 up success success 1,402
4 Po13 up success success 1,402
5 Po14 up success success 1,402
第二台N9K02
Interface Grp Prio P State Active addr Standby addr Group addr
Vlan1 1 150 P Standby 10.66.0.2 local 10.66.0.1 (conf)
Vlan400 2 150 P Standby 10.66.2.2 local 10.66.2.1 (conf)
Vlan402 3 150 P Standby 10.66.4.2 local 10.66.4.1 (conf)
C9332C_FIWO_Core_66.0.3#
vPC domain id : 1
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success
Per-vlan consistency status : success
Type-2 consistency status : success
vPC role : secondary, operational primary
Number of vPCs configured : 5
Peer Gateway : Disabled
Dual-active excluded VLANs : -
Graceful Consistency Check : Enabled
Auto-recovery status : Disabled
Delay-restore status : Timer is off.(timeout = 30s)
Delay-restore SVI status : Timer is off.(timeout = 10s)
Operational Layer3 Peer-router : Disabled
Virtual-peerlink mode : Disabled
vPC Peer-link status
---------------------------------------------------------------------
id Port Status Active vlans
-- ---- ------ -------------------------------------------------
1 Po1 up 1,400,402
vPC status
----------------------------------------------------------------------------
Id Port Status Consistency Reason Active vlans
-- ------------ ------ ----------- ------ ---------------
1 Po10 up success success 1,400
2 Po11 up success success 1,402
3 Po12 up success success 1,402
4 Po13 up success success 1,402
5 Po14 up success success 1,402
----------------------------------------------------------------------------
VPC下联的设备
11 Po11(SU) Eth LACP Eth1/53(P) Eth1/54(P) ---po11连的上连两台9332C
93180-0.5#
93180-0.5# traceroute 10.67.7.1
traceroute to 10.67.7.1 (10.67.7.1), 30 hops max, 40 byte packets
1 10.66.0.3 (10.66.0.3) 0.9 ms 0.576 ms 0.529 ms -------------------------路径总是走0.3也是hsrp优先级和vpc优先级都低的那台设备
2 10.67.2.177 (10.67.2.177) 0.523 ms 0.448 ms 0.505 ms
3 * 10.67.2.238 (10.67.2.238) 1.013 ms *
93180-0.5#
1 个已接受解答

已接受的解答

wuhao0015
Spotlight
Spotlight
nexusNXOS57758 发表于 2020-11-25 14:40
请问我tracert 为什么第一跳和第二跳会有多个IP,,怎么解释
traceroute to 10.67.7.1 (10.67.7.1), 3 ...

这个好解释,traceroute基于udp,每次traceroute会发多个udp报文,每个udp的报文目的端口不一样,这样负载均衡的时候就会走不同的路径。

在原帖中查看解决方案

4 条回复4

wuhao0015
Spotlight
Spotlight
nexusNXOS57758 发表于 2020-11-25 14:40
请问我tracert 为什么第一跳和第二跳会有多个IP,,怎么解释
traceroute to 10.67.7.1 (10.67.7.1), 3 ...

这个好解释,traceroute基于udp,每次traceroute会发多个udp报文,每个udp的报文目的端口不一样,这样负载均衡的时候就会走不同的路径。

wuhao0015
Spotlight
Spotlight
走哪边是通过portchannel的负载均衡算法决定的,和你是不是vpc的主还是hsrp的主没关系。

nexusNXOS57758
Spotlight
Spotlight
wuhao0015 发表于 2020-11-25 11:05
走哪边是通过portchannel的负载均衡算法决定的,和你是不是vpc的主还是hsrp的主没关系。

请问我tracert 为什么第一跳和第二跳会有多个IP,,怎么解释
traceroute to 10.67.7.1 (10.67.7.1), 30 hops max, 40 byte packets
1 10.66.0.2 (10.66.0.2) 0.854 ms 0.486 ms 10.66.0.3 (10.66.0.3) 0.737 ms
2 10.67.2.177 (10.67.2.177) 0.594 ms 10.67.2.77 (10.67.2.77) 0.738 ms 10.67.2.177 (10.67.2.177) 0.589 ms
3 10.67.2.18 (10.67.2.18) 0.532 ms * 1.064 ms
93180-4-66.0.8#

nexusNXOS57758
Spotlight
Spotlight
wuhao0015 发表于 2020-11-25 11:05
走哪边是通过portchannel的负载均衡算法决定的,和你是不是vpc的主还是hsrp的主没关系。

而另外一台设备每一跳都是一个IP
93180-3-66.0.7# traceroute 10.67.7.1
traceroute to 10.67.7.1 (10.67.7.1), 30 hops max, 40 byte packets
1 10.66.0.2 (10.66.0.2) 0.951 ms 0.64 ms 0.646 ms
2 10.67.2.77 (10.67.2.77) 0.677 ms 0.677 ms 0.661 ms
3 10.67.2.18 (10.67.2.18) 0.78 ms
* 1.399 ms
93180-3-66.0.7#
快捷链接