端口类型网络上的 vPC 桥接保证

网络工程 生成树 IEEE-802.1ax 虚拟主机
2021-07-06 02:50:50

我正在运行两台 Nexus 3048 交换机作为网络核心,在 vPC 链路上连接另一台交换机(特别是 2960-X)时遇到问题。考虑以下场景:

+-------+   +-------+ 
| NX #1 |===| NX #2 |
+-------+   +-------+
       |     |
      +-------+
      | 2960X |
      +-------+

在 2960X 上有一个配置为主动模式的端口通道。当将 nexus 上的接口设置为: 时spanning-tree port type network,Bridge Assurance 会起作用并阻止端口。

此时我正在“普通类型”上运行它,因此它不会禁用链接。

我在网上读过一些我无法使用的东西,spanning-tree port type network但我不知道是我的心在想我,还是确实如此。如果是,为什么我不能这样做?网络端口不应用于交换机间连接?

谢谢,

该问题的其他配置举例说明:

NX #1

interface port-channel9
  description Downlink TCC6-1
  switchport mode trunk
  switchport trunk native vlan 256
  switchport trunk allowed vlan 146,172,256,666
  spanning-tree port type normal
  spanning-tree guard root
  vpc 9

interface Ethernet1/9
  description Downlink TCC6-1 #1
  switchport mode trunk
  switchport trunk native vlan 256
  switchport trunk allowed vlan 146,172,256,666
  channel-group 9 mode active
  no shutdown

NX #2

interface port-channel9
  description Downlink TCC6-1
  switchport mode trunk
  switchport trunk native vlan 256
  switchport trunk allowed vlan 146,172,256,666
  spanning-tree port type normal
  spanning-tree guard root
  vpc 9

interface Ethernet1/9
  description Downlink TCC6-1 #2
  switchport mode trunk
  switchport trunk native vlan 256
  switchport trunk allowed vlan 146,172,256,666
  channel-group 9 mode active
  no shutdown

2960-X

interface Port-channel1
 description Uplink Core-CC
 switchport trunk native vlan 256
 switchport trunk allowed vlan 146,172,256,666
 switchport mode trunk
 ip arp inspection trust
 ip dhcp snooping trust
end

interface GigabitEthernet1/0/47
 description Uplink Core-CC (Port Channel Interface #1)
 switchport trunk native vlan 256
 switchport trunk allowed vlan 146,172,256,666
 switchport mode trunk
 ip arp inspection trust
 channel-group 1 mode active
 ip dhcp snooping trust
end

interface GigabitEthernet1/0/48
 description Uplink Core-CC (Port Channel Interface #2)
 switchport trunk native vlan 256
 switchport trunk allowed vlan 146,172,256,666
 switchport mode trunk
 ip arp inspection trust
 channel-group 1 mode active
 ip dhcp snooping trust
end
1个回答

生成树端口类型网络激活链路上的桥接保证。由于 2960X 不支持桥接保证,因此您不能将此链接作为端口类型网络运行。只需在正常模式下运行它。关于您想要运行端口类型网络的唯一地方是在默认情况下启用的 vPC 对等链接上。

来自最佳实践设计指南:

  • 配置 vPC peer-link 时默认启用网桥保证。不要在 vPC 对等链路上禁用它
  • 无需在vPC上启用Bridge Assurance(当vPC成员端口定义为生成树端口类型网络时启用Bridge Assurance)
  • 将 vPC 成员端口配置为生成树端口类型正常(因此不在链路上使用桥接保证)