![Ubiquiti ES-24-250W Скачать руководство пользователя страница 265](http://html2.mh-extra.com/html/ubiquiti/es-24-250w/es-24-250w_administration-manual_3227362265.webp)
264
Configuration Examples
EdgeSwitch
™
Administration Guide
Ubiquiti Networks, Inc.
Using the CLI to Configure MSTP
1. Create VLAN 10 and VLAN 20.
(UBNT EdgeSwitch) #vlan database
vlan 10
vlan 20
exit
2. Enable spanning tree globally.
(UBNT EdgeSwitch) #config
spanning-tree
3. Create MST instances 10 and 20.
spanning-tree mst instance 10
spanning-tree mst instance 20
4. Associate MST instance 10 to VLAN 10 and MST instance 20 to VLAN 20.
spanning-tree mst vlan 10 10
spanning tree mst vlan 20 20
5. Change the name so that all the bridges that want to be part of the same region can form the region.
spanning-tree configuration name ubnt
6. Make the MST ID 10 bridge the root bridge by lowering the priority.
spanning-tree mst priority 10 16384
7. Change the priority of MST ID 20 to ensure the other bridge is the root bridge.
spanning-tree mst priority 20 61440
8. Enable STP on interface 0/1.
interface 0/1
spanning-tree port mode
exit
9. Enable STP on interface 0/2.
interface 0/2
spanning-tree port mode
10. On the non-root bridge, change the priority to force port 0/2 to be the root port.
spanning-tree mst 20 port-priority 64
exit