Настройка RSTP
bridge 1
Отключение RSTP глобально
Bridge1(config)#no bridge 1 rapid-spanningtree enable bridge-forward | Отключить spanning tree глобально для RSTP. |
Отключение RSTP на порту
Bridge1(config)#interface ge2 | Перейти в режим конфигурации интерфейса для ge2. |
Bridge1(config-if)#bridge-group 1 spanningtree disable | Отключить spanning tree на порту для RSTP и перевести порт в состояние forwarding [Эта команда отключает любой тип STP на порту]. |
bridge 2
Отключение RSTP глобально
Bridge2(config)#no bridge 1 rapid-spanningtree enable bridge-forward | Отключить spanning tree глоба льно для RSTP. |
Отключение RSTP на порту
Bridge2(config)#interface xe2 | Перейти в режим конфигурации интерфейса для xe2. |
Bridge2(config-if)#bridge-group 1 spanningtree disable | Отключить spanning tree на порту для RSTP и перевести порт в состояние forwarding [Эта команда отключает любой тип STP на порту]. |
Проверка
show spanning-tree, show spanning-tree \<interface name\>
bridge 1
- Проверьте детали RSTP, когда RSTP включен глобально, а ge2 и ge3 являются частью bridge, используя команду “show spanning-tree”.
#show spanning-tree
% 1: Bridge up - Spanning Tree Enabled- topology change detected
% 1: Root Path Cost 20000 - Root Port 905 -Bridge Priority 32768
% 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Transmit Hold Count 6
% 1: Root Id 80003417ebfbe9c4
% 1: Bridge Id 800064006ac779a0
% 1: last topology change Tue Nov 15 21:44:31 2022
% 1: 7 topology change(s)- last topology change Tue Nov 15 21:44:31 2022
% 1: portfast bpdu-filter disabled
% 1: portfast bpdu-guard disabled
% 1: portfast errdisable timeout disabled
% 1: portfast errdisable timeout interval 300 sec
% ge2: Port Number 905 - Ifindex 5001 - Port Id 0x8389 - Role Rootport - State Forwarding
% ge2: Designated Path Cost 0
% ge2: Configured Path Cost 20000- Add type Explicit ref count 1
% ge2: Designated Port Id 0x838a - Priority 128-
% ge2: Root 80003417ebfbe9c4
% ge2: Designated Bridge 80003417ebfbe9c4
% ge2: Message Age 0 - Max Age 20
% ge2: Hello Time 2 - Forward Delay 15
% ge2: Forward Timer 0 - Msg Age Timer 4 - Hello Timer 1 - topo change timer 0
% ge2: forward-transitions 1
% ge2: Version Rapid Spanning Tree Protocol - Received RSTP - Send RSTP
% ge2: No portfast configured - Currentportfast off % ge2: bpdu-guarddefault- Current bpdu-guard off
% ge2: bpdu-filter default- Current bpdu-filter off
% ge2: no root guard configured- Current root guard off
% ge2: Configured Link Type point-to-point - Current point-to-point
% ge2: No auto-edge configured - Current port Auto Edge off
% ge3: Port Number 908 - Ifindex 5004 - Port Id 0x838c - Role Alternate - State Discarding
% ge3: Designated Path Cost 0
% ge3: Configured Path Cost 20000- Add type Explicit ref count 1
% ge3: Designated Port Id 0x838b - Priority 128-
% ge3: Root 80003417ebfbe9c4
% ge3: Designated Bridge 80003417ebfbe9c4
% ge3: Message Age 0 - Max Age 20
% ge3: Hello Time 2 - Forward Delay 15
% ge3: Forward Timer 0 - Msg Age Timer 5 - Hello Timer 0 - topo change timer 0
% ge3: forward-transitions 2
% ge3: Version Rapid Spanning Tree Protocol - Received RSTP - Send RSTP
% ge3: No portfast configured - Currentportfast off % ge3: bpdu-guarddefault- Current bpdu-guard off
% ge3: bpdu-filter default- Current bpdu-filter off
% ge3: no root guard configured- Current root guard off
% ge3: Configured Link Type point-to-point - Current point-to-point
% ge3: No auto-edge configured - Current port Auto Edge off %
- Глобальные настройки RSTP
- Проверьте настройки RSTP, когда RSTP включен глобально.
#show running-config
!
bridge 1 protocol rstp vlan-bridge
!
- Проверьте настройки RSTP, когда RSTP отключен глобально.
#show running-config
!
bridge 1 protocol rstp vlan-bridge
no bridge 1 rapid-spanning-tree enable bridge-forward
!
- Настройки интерфейса RSTP
- Проверьте настройки RSTP, когда spanning-tree включен на интерфейсе.
#show running-config interface ge2
!
interface ge2 switchport bridge-group 1 switchport mode trunk switchport trunk allowed vlan all
!
- Проверьте настройки RSTP, когда spanning-tree отключен на интерфейсе.
#show running-config interface ge2
!
interface ge2 switchport
bridge-group 1 spanning-tree disable switchport mode trunk switchport trunk allowed vlan all
- Проверьте детали RSTP после отключения spanning-tree на интерфейсе ge2, используя команду “show spanning-tree”.
#sh spanning-tree
% 1: Bridge up - Spanning Tree Enabled - topology change detected
% 1: Root Path Cost 20000 - Root Port 908 - Bridge Priority 32768
% 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Transmit Hold Count 6
% 1: Root Id 80003417ebfbe9c4
% 1: Bridge Id 800064006ac779a0
% 1: last topology change Fri Nov 25 21:08:56 2022
% 1: 11 topology change(s) - last topology change Fri Nov 25 21:08:56 2022
% 1: portfast bpdu-filter disabled
% 1: portfast bpdu-guard disabled
% 1: portfast errdisable timeout disabled
% 1: portfast errdisable timeout interval 300 sec
% ge2: Port Number 905 - Ifindex 5001 - Port Id 0x8389 - Role Disabled - State Forwarding
% ge2: Designated Path Cost 0
% ge2: Configured Path Cost 20000 - Add type Explicit ref count 1
% ge2: Designated Port Id 0x838a - Priority 128 -
% ge2: Message Age 0 - Max Age 20
% ge2: Hello Time 2 - Forward Delay 15
% ge2: Forward Timer 0 - Msg Age Timer 5 - Hello Timer 0 - topo change timer
0
% ge2: forward-transitions 2
% ge2: Version Rapid Spanning Tree Protocol - Received RSTP - Send RSTP
% ge2: No portfast configured - Current portfast off
% ge2: bpdu-guard default - Current bpdu-guard off
% ge2: bpdu-filter default - Current bpdu-filter off
% ge2: no root guard configured - Current root guard off
% ge2: Configured Link Type point-to-point - Current point-to-point
% ge2: No auto-edge configured - Current port Auto Edge off
%
% ge3: Port Number 908 - Ifindex 5004 - Port Id 0x838c - Role Rootport - State Forwarding
% ge3: Designated Path Cost 0
% ge3: Configured Path Cost 20000 - Add type Explicit ref count 1
% ge3: Designated Port Id 0x838b - Priority 128 -
% ge3: Root 80003417ebfbe9c4
% ge3: Designated Bridge 80003417ebfbe9c4
% ge3: Message Age 0 - Max Age 20
% ge3: Hello Time 2 - Forward Delay 15
% ge3: Forward Timer 0 - Msg Age Timer 5 - Hello Timer 1 - topo change timer 0
% ge3: forward-transitions 3
% ge3: Version Rapid Spanning Tree Protocol - Received RSTP - Send RSTP
% ge3: No portfast configured - Current portfast off
% ge3: bpdu-guard default - Current bpdu-guard off
% ge3: bpdu-filter default - Current bpdu-filter off
% ge3: no root guard configured - Current root guard off
% ge3: Configured Link Type point-to-point - Current point-to-point
% ge3: No auto-edge configured - Current port Auto Edge off
%