Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
Spanning Tree Protocol Laborübung
Befehlsübersicht Switch (englische Beschreibung)
Wenn Sie sich auf der system view-Ebene befinden, erhalten Sie mit dem folgenden Befehl eine Übersicht der möglichen STP Befehle.
[5500]stp ?
| Command | Description |
|---|---|
bpdu-protection | Specify Bpdu Protection function |
disable | Disable spanning tree protocol |
enable | Enable spanning tree protocol |
mcheck | Specify mcheck parameter |
mode | Specify state machine mode parameter |
pathcost-standard | Specify stp port path cost standard |
priority | Specify bridge priority |
root | Specify root switch |
timeout-factor | Specify timeout factor of the spanning tree |
timer | Specify timers of spanning tree protocol |
List of some command line levels.
| Command View | Function | Prompt | Command to Enter | Command to leave |
|---|---|---|---|---|
| User View | Show the basic information about operation and statistics | <SW5500> | This is the view you are in after connecting o the Switch | quit disconnects to the Switch |
| System View | Configure system parameters | [SW5500] | Enter system-view in User View | quitor return returns to User View |
| Ethernet Port View | Configure Ethernet port parameters | [SW5500-Ethernet1/0/1] | 100M Ethernet Port View: Enter interface ethernet 1/0/1 in System View | quit returns to System View return returns to User View |
| VLAN View | Configure VLAN parameters | [SW5500-Vlan1] | Enter vlan 1 in System View | quit returns to System View return returns to User View |
| VLAN Interface View | Configure IP interface parameters for a VLAN or a VLAN aggregation | [SW5500-Vlan-interface1] | Enter interface vlan-interface 1 in System View | quit returns to System View return returns to User View |
Set Priority of a Specified Bridge (s. Auszug SuperStack 5500 Handbuch, S. 242)
Whether a bridge can be selected as the “root” of the spanning tree depends on its priority. By assigning a lower priority, a bridge can be artificially specified as the root of the spanning tree. You can use the following command to configure the priority of a specified bridge. Perform the following configurations in System View.
Operation Command
- Set priority of a specified bridge
stp priority bridge_priority - Restore the default priority of specified bridge
undo stp priority
Note that if the priorities of all the bridges in the Switching network are the same, the bridge with the smallest MAC address will be selected as the “root”. When RSTP is enabled, an assignment of a priority to the bridge will lead to recalculation of the spanning tree. By default, the priority of the bridge is 32768.

Ergänzungen
# jan/02/1970 00:42:12 by RouterOS 6.42.7
# software id = G44Z-XNCQ
#
# model = RouterBOARD 3011UiAS
# serial number = 8EED08F85B47
/interface bridge
add fast-forward=no name=bridge1 protocol-mode=none
add fast-forward=no name=bridge2 protocol-mode=none
/interface bridge port
add bridge=bridge1 interface=ether3
add bridge=bridge2 interface=ether4
add bridge=bridge1 interface=ether6
add bridge=bridge2 interface=ether7
add bridge=bridge1 interface=ether8
add bridge=bridge2 interface=ether9
„stp interface … cost“ erklären, dass dieser Befehl nur im System-View funktioniert.