![FoxGate S6424-S2C2 series Скачать руководство пользователя страница 154](http://html1.mh-extra.com/html/foxgate/s6424-s2c2-series/s6424-s2c2-series_configuration-manual_2325481154.webp)
STP Configuration
154
Configuration procedure
The default STP mode is RSTP. Enable global RSTP and use its default time parameter.
Configure Switch A
#configure Ethernet0/0/1 and Ethernet0/0/2 to be trunk, and enable root-guard
S-switch-A(config)#interface range ethernet 0/0/1 ethernet 0/0/2
S-switch-A(config-if-range)#switchport mode trunk
S-switch-A(config-if-range)#spanning-tree root-guard
S-switch-A(config-if-range)#exit
# configure S-switch-A priority to be 0 to make sure S-switch-A is root
S-switch-A(config)#spanning-tree priority 0
# Enable global RSTP
S-switch-A(config)#spanning-tree
Configure Switch B
#configure Ethernet0/0/1 and Ethernet0/0/2 to be trunk
S-switch-B(config)#interface range ethernet 0/0/1 ethernet 0/0/2
S-switch-B(config-if-range)#switchport mode trunk
S-switch-B(config-if-range)#exit
# configure S-switch-B priority to be 4096 to make sure S-switch-B is bridge. Configure
cost of Ethernet0/0/1 and Ethernet0/0/2 to be 10
S-switch-B(config)#spanning-tree priority 4096
S-switch-B(config)#interface range ethernet 0/0/1 ethernet 0/0/2
S-switch-B(config-if-range)#spanning-tree cost 10
S-switch-B(config-if-range)#exit
# Enable global RSTP
S-switch-B(config)#spanning-tree
Configure Switch C
#configure Ethernet0/0/1 and Ethernet0/0/2 to be trunk
S-switch-C(config)#interface range ethernet 0/0/1 ethernet 0/0/2
S-switch-C(config-if-range)#switchport mode trunk
S-switch-C(config-if-range)#exit