HSRP 更改优先级没有故障转移

网络工程 思科 转变 故障转移 热休克蛋白 fhrp
2022-02-09 04:23:36

我在两个 L3 交换机上运行 HSRP,我将优先级更改为更高,但它没有故障转移,为什么?

SW1

interface Vlan30
 description Internal_PrivateIP
 ip address 10.5.0.2 255.255.248.0
 no ip redirects
 standby 5 ip 10.5.0.1
 standby 5 priority 150
 standby 5 authentication md5 key-chain foo
end

SW2

interface Vlan30
 description Internal_PrivateIP
 ip address 10.5.0.3 255.255.248.0
 no ip redirects
 standby 5 ip 10.5.0.1
 standby 5 priority 125
 standby 5 authentication md5 key-chain foo
end

我已将 SW1 优先级更改为,150但仍显示待机

SW1:

Vl30        5    150   Standby 10.5.0.3        local           10.5.0.1

如何在没有网络故障的情况下强制故障转移?

2个回答

你忘了使用standby 5 preempt命令。设置抢占延迟也是一个好主意。

热备路由器协议 (HSRP):常见问题

问:哪个 HSRP 路由器要求我配置抢占?

A.启用了 HSRP 且配置了抢占的路由器在其热备优先级高于当前活动路由器时尝试将控制权作为活动路由器。您希望被跟踪接口发生状态变化以使备用路由器从活动路由器接管时,需要使用standby preempt命令。例如,活动路由器跟踪另一个接口并在该接口关闭时降低其优先级。备用路由器的优先级现在更高了,它会在 hello 数据包优先级字段中看到状态变化。如果不配置抢占,则无法接管,也不会发生故障转移。

在两边启用抢占并写入配置