我在我们的网络上遇到了 STP 问题。我创建了一个由戴尔和思科交换机组成的 3 层网络。拓扑如下:
该内核由两个处于堆叠模式的 Dell N4032 10Gbps 交换机和三个同样处于堆叠模式的 Dell Power Connect 5548 交换机组成。两个堆栈使用 LACP 中的 LAG 中的两条 SFP+ 电缆相互连接。分布层交换机被分成大楼内的三个物理机房。每个房间都有两台处于堆叠模式的戴尔 N3024 交换机。交换机背面有一个 10Gbps RJ45 模块,每个模块有两个端口,每个堆栈有四个 10Gbps 端口。我有四根 CAT 6A 电缆从核心 10Gbps 到分布交换机上的 10Gbps 端口。我已使用 LACP 再次将这些连接设置为 LAG。接入层由 Cisco SG300 交换机组成。这些交换机使用 LAG 中的两个连接,再次使用 LACP 连接到分布交换机。
我遇到了一些终端设备能够与其他终端设备通信的问题。从交换机上的日志文件来看,问题似乎与 STP 有关。我没有对任何交换机(都使用 RSTP)上的 STP 进行任何更改,所以一切都是默认的,我从研究中发现这不是最佳的。我正在努力找出在我们的 LAG 上用于 STP 的最佳设置。我考虑在 LAG 上禁用 STP,因为我们的网络不是环路网络,但我想使用 STP。但我可能错了,禁用 STP 可能没问题,因为网络不是循环网络。任何输入都会很棒,如果需要我可以粘贴配置和日志输出。
谢谢!
核心交换机配置:
interface Te1/0/13
channel-group 3 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te1/0/14
channel-group 3 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te1/0/15
channel-group 4 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te1/0/16
channel-group 4 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te1/0/17
channel-group 5 mode active
exit
!
interface Te1/0/18
channel-group 5 mode active
exit
!
interface Te1/0/23
channel-group 2 mode active
exit
!
interface Te1/0/24
channel-group 1 mode active
exit
!
interface Te1/1/5
channel-group 6 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te1/1/6
channel-group 6 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te1/1/8
channel-group 7 mode active
exit
!
interface Te2/0/13
channel-group 3 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te2/0/14
channel-group 3 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te2/0/15
channel-group 4 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te2/0/16
channel-group 4 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te2/0/17
channel-group 5 mode active
exit
!
interface Te2/0/18
channel-group 5 mode active
exit
!
interface Te2/0/23
channel-group 1 mode active
exit
!
interface Te2/0/24
channel-group 2 mode active
exit
!
interface Te2/1/1
channel-group 6 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te2/1/2
channel-group 6 mode active
switchport mode trunk
switchport access vlan 3
exit
!
interface Te2/1/4
channel-group 7 mode active
exit
!
interface port-channel 3
description "SER Distribution"
switchport mode trunk
switchport access vlan 3
exit
!
interface port-channel 4
switchport mode trunk
switchport access vlan 3
exit
!
interface port-channel 5
switchport mode trunk
switchport access vlan 3
exit
!
interface port-channel 6
switchport mode trunk
switchport access vlan 3
exit
配电开关配置:
configure
vlan 2-4,99
exit
vlan 2
name "Exhibition"
exit
vlan 3
name "PublicLAN"
exit
vlan 4
name "SPC"
exit
vlan 99
name "Management"
exit
snmp-server location "Workshop"
hostname "Workshop Distribution"
slot 1/0 2 ! Dell Networking N3024F
slot 1/1 11 ! Dell 10GBase-T Card
slot 2/0 2 ! Dell Networking N3024F
slot 2/1 11 ! Dell 10GBase-T Card
stack
member 1 2 ! N3024F
member 2 2 ! N3024F
exit
interface vlan 1
ip address 10.0.6.46 255.255.0.0
exit
interface Gi1/0/1
channel-group 1 mode active
exit
!
interface Gi1/0/2
speed auto
channel-group 2 mode active
exit
!
interface Gi1/0/3
speed auto
channel-group 3 mode active
exit
!
interface Gi1/0/4
speed auto
channel-group 5 mode active
exit
!
interface Gi1/0/5
speed auto
channel-group 6 mode active
exit
!
interface Gi1/0/6
speed auto
channel-group 7 mode active
exit
!
interface Gi1/0/7
channel-group 8 mode active
exit
!
interface Gi1/0/8
channel-group 9 mode active
exit
!
interface Gi1/0/9
speed auto
channel-group 10 mode active
exit
!
interface Te1/1/1
channel-group 4 mode active
exit
!
interface Te1/1/2
channel-group 4 mode active
exit
!
interface Gi2/0/1
speed auto
channel-group 1 mode active
exit
!
interface Gi2/0/2
speed auto
channel-group 2 mode active
exit
!
interface Gi2/0/3
speed auto
channel-group 3 mode active
exit
!
interface Gi2/0/4
speed auto
channel-group 5 mode active
exit
!
interface Gi2/0/5
speed auto
channel-group 6 mode active
exit
!
interface Gi2/0/6
speed auto
channel-group 7 mode active
exit
!
interface Gi2/0/7
speed auto
channel-group 8 mode active
exit
!
interface Gi2/0/8
speed auto
channel-group 9 mode active
exit
!
interface Gi2/0/9
speed auto 1000
channel-group 10 mode active
exit
!
interface Gi2/0/11
speed auto 1000
exit
!
interface Gi2/0/21
speed auto
exit
!
interface Te2/1/1
channel-group 4 mode active
exit
!
interface Te2/1/2
channel-group 4 mode active
exit
!
interface port-channel 1
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 2
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 3
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 4
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 5
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 6
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 7
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 8
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 9
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 10
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 11
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 12
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 13
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
!
interface port-channel 14
switchport mode trunk
switchport trunk allowed vlan 1-99
exit
所有分布交换机上都有相同的配置。
核心配置示例:
interface vlan 1
ip address 10.0.6.55 255.255.0.0
no ip address dhcp
!
interface vlan 2
name Exhibition
!
interface vlan 3
name "Public Lan"
!
interface vlan 5
name Office
!
interface gigabitethernet8
switchport trunk allowed vlan add 2-3
!
interface gigabitethernet9
channel-group 1 mode auto
!
interface gigabitethernet10
channel-group 1 mode auto
!
interface Port-channel1
description Uplink
spanning-tree disable
spanning-tree link-type point-to-point
示例日志输出:
<189> Jul 5 15:32:34 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76551 %% Spanning Tree Topology Change Received: MSTID: 0 Po3
<189> Jul 5 15:32:32 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76550 %% Spanning Tree Topology Change Received: MSTID: 0 Po3
<189> Jul 5 15:32:31 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76549 %% Spanning Tree Topology Change Received: MSTID: 0 Po3
<189> Jul 5 15:32:30 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76548 %% Spanning Tree Topology Change: 0, Unit: 1
<189> Jul 5 15:32:30 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76547 %% Spanning Tree Topology Change Received: MSTID: 0 Po3
<189> Jul 5 15:32:28 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76546 %% Spanning Tree Topology Change Received: MSTID: 0 Po3
<189> Jul 5 15:32:27 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76545 %% Spanning Tree Topology Change Received: MSTID: 0 Po3
<189> Jul 5 15:32:26 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76544 %% Spanning Tree Topology Change: 0, Unit: 1
<189> Jul 5 15:32:26 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76543 %% Spanning Tree Topology Change Received: MSTID: 0 Po3
<189> Jul 5 15:32:24 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76542 %% Spanning Tree Topology Change Received: MSTID: 0 Po3
<189> Jul 5 15:32:23 10.0.6.40-1 TRAPMGR[994142700]: traputil.c(740) 76541 %% Spanning Tree Topology Change Received: MSTID: 0 Po3