
XG1200 User's Guide
36/258
All Rights Reserved, Copyright (C) PFU LIMITED 2005
4.5.3 Configuring Spanning Tree
To configure the spanning tree protocol, carry out the following procedure in the administrator EXEC mode.
Command
Task
xg# configure terminal
Switch to global configuration mode.
xg(config)# spanning-tree enable
Enable Spanning Tree Protocol.
xg(config)# spanning-tree priority <0-61440>
xg(config)# spanning-tree hello-time <1-10>
xg(config)# spanning-tree max-age <6-40>
xg(config)# spanning-tree forward-time <4-30>
Configure Spanning Tree Protocol parameters on the
XG1200.
Switch priority
Hello time
Maximum aging time (max-age)
Forward delay time (forward-time)
xg(config)# interface port 1 2 3
xg(config)# interface port range 1 3
Switch to interface edit mode to configure spanning
tree-related parameters for port.
In this example, the global interface configuration mode
is selected for ports 1 through 3.
xg(config-if)# spanning-tree protocol { rstp |
none }
Set a spanning tree protocol mode that corresponds to
each port.
xg(config-if)# spanning-tree port-priority
<0-240>
xg(config-if)# spanning-tree port-path-cost
<1-200000000>
Configure the following parameters related to the
spanning tree topology:
Port priority
Path cost
xg(config-if)# spanning-tree portfast
(Optional)
If the port is configured as an edge port(*), it is possible
to make settings that can reduce the time taken to
transit into forwarding state.
* It is available only when the port is directly connected
to an end terminal that has no influence on the spanning
tree configuration.
xg(config-if)# exit
Exit to global configuration mode.
xg(config)# exit
Exit to administrator EXEC mode.
xg# show spanning-tree [ detail ]
View the state of the spanning tree.