HSRP 问题双方都处于活动状态(第 3 层 4300 X 系列)

网络工程 思科 转变 第 3 层 热休克蛋白 fhrp
2022-03-05 02:49:50

为什么 HSRP 显示双方都是活动的 HSRP?你能给我详细的答案吗?

第一个路由器:

**Vlan111 - Group 6**
  State is Active
    5 state changes, last state change 2w4d
  Virtual IP address is 10.101.59.1
  Active virtual MAC address is 0000.0c07.ac06 (MAC In Use)
    Local virtual MAC address is 0000.0c07.ac06 (v1 default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 0.272 secs
  Preemption enabled, delay min 30 secs
  Active router is local
  Standby router is unknown
  Priority 100 (default 100)
  Group name is "hsrp-Vl111-6" (default)

**r-ca-103-1#show run interface vlan 111**
Building configuration...

Current configuration : 433 bytes
!
interface Vlan111
 vrf forwarding 901_general
 ip address 10.101.59.2 255.255.255.0
 ip access-group Student-Access in
 ip helper-address 10.39.0.119
 ip helper-address 10.180.1.20
 ip helper-address 10.180.1.21
 ip helper-address 10.180.1.23
 ip helper-address 10.180.1.24
 no ip redirects
 no ip unreachables
 ip directed-broadcast 101
 ip pim sparse-dense-mode
 standby 6 ip 10.101.59.1
 standby 6 preempt delay minimum 30
end

第二个路由器:

r-ca-103-2#show standby vlan 111
Vlan111 - Group 6
  State is Active
    5 state changes, last state change 2w4d
  Virtual IP address is 10.101.59.1
  Active virtual MAC address is 0000.0c07.ac06 (MAC In Use)
    Local virtual MAC address is 0000.0c07.ac06 (v1 default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 0.576 secs
  Preemption enabled, delay min 30 secs
  Active router is local
  Standby router is unknown
  Priority 100 (default 100)
  Group name is "hsrp-Vl111-6" (default)

r-ca-103-2#show run interface vlan 111
Building configuration...

Current configuration : 315 bytes
!
interface Vlan111
 vrf forwarding 901_general
 ip address 10.101.59.3 255.255.255.0
 ip access-group Student-Access in
 ip helper-address 10.39.0.119
 ip directed-broadcast 101
 ip pim sparse-dense-mode
 standby 1 priority 150
 standby 1 preempt
 standby 6 ip 10.101.59.1
 standby 6 preempt delay minimum 30
end
3个回答

您的两台设备无法通过该 VLAN 进行通信,因此它们无法在该 VLAN 上交换 HSRP 消息。每个人都认为它是活动路由器。一台仍将是活动路由器,另一台将成为备用路由器,当它们在 VLAN 上与它们之间的消息竞争时。确保您可以通过 Vlan111 从一个到另一个。

你真的应该有一种确定的方式来实现这一点。这意味着您应该专门设置优先级。为避免出现问题,您应该将最高优先级设置在桥优先级最低的那个上。您希望根网桥成为 HSRP 路由器,以避免糟糕的第 2 层路径。

在这种情况下,您实际上没有负载平衡,两台路由器的优先级都设置为 100,您应该为您希望成为活动路由器的路由器设置更高的优先级,例如 110。

这两个路由器似乎无法交换 HSRP Hello 数据包。我将验证两台交换机是否具有适用于 vlan111 的第 2 层连接。您可以看到两台路由器都没有相互了解,因为它们都没有将另一台路由器列为备用组的成员。

至于您的抢占问题,“r-ca-103-2”的备用配置似乎不正确。您可以尝试将“standby 1 priority 150”更改为“standby 6 priority 150”和“standby 1 preempt”更改为“standby 6 preempt”