配置 HSRP,但每个链路都需要琥珀色端口

网络工程 热休克蛋白
2022-02-27 04:25:34

我正在尝试在两台 3560 交换机上为 HSRP 建立活动/备用链路。对于备用链路,我希望每台交换机上的备用链路使用琥珀色端口,活动链路使用绿色端口。我有两个中继链路,因为我有两个上行链路。这是我到目前为止的show standby命令输出,但所有四个端口都是绿色的,我需要每个交换机上的琥珀色端口。

new#sh standby
Vlan20 - Group 100
  State is Standby
    4 state changes, last state change 01:43:53
  Virtual IP address is 10.10.10.253 (learnt)
  Active virtual MAC address is 0000.0c07.ac64
    Local virtual MAC address is 0000.0c07.ac64 (v1 default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 1.323 secs
  Preemption disabled
  Active router is 10.10.10.252, priority 190 (expires in 9.774 sec)
  Standby router is local
  Priority 100 (default 100)
  IP redundancy name is "hsrp-Vl20-100" (default)
Vlan40 - Group 100
  State is Standby
    4 state changes, last state change 01:43:53
  Virtual IP address is 192.10.10.253 (learnt)
  Active virtual MAC address is 0000.0c07.ac64
    Local virtual MAC address is 0000.0c07.ac64 (v1 default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 0.752 secs
  Preemption disabled
  Active router is 192.10.10.252, priority 189 (expires in 9.187 sec)
  Standby router is local
  Priority 100 (default 100)
  IP redundancy name is "hsrp-Vl40-100" (default)

和其他开关

Switch#sh standby
Vlan20 - Group 100
  State is Active
    5 state changes, last state change 01:45:49
  Virtual IP address is 10.10.10.253
  Active virtual MAC address is 0000.0c07.ac64
    Local virtual MAC address is 0000.0c07.ac64 (v1 default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 1.884 secs
  Preemption enabled
  Active router is local
  Standby router is 10.10.10.254, priority 100 (expires in 7.425 sec)
  Priority 190 (configured 190)
  IP redundancy name is "hsrp-Vl20-100" (default)
Vlan40 - Group 100
  State is Active
    5 state changes, last state change 01:45:50
  Virtual IP address is 192.10.10.253
  Active virtual MAC address is 0000.0c07.ac64
    Local virtual MAC address is 0000.0c07.ac64 (v1 default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 1.297 secs
  Preemption enabled
  Active router is local
  Standby router is 192.10.10.254, priority 100 (expires in 7.735 sec)
  Priority 189 (configured 189)
  IP redundancy name is "hsrp-Vl40-100" (default)
1个回答

接口上的琥珀色/绿色指示灯显示端口是否正在转发流量。由于这是一个基于 STP 的 layer2 功能,它完全独立于 HSRP,它是一个 layer 3 的特性。

换言之,HSRP 的状态与端口是否转发无关。

我想不出交换机上有任何视觉指示可以显示 HSRP 的状态。