System information
235
DWS-1008 CLI Reference Guide
D-Link Systems, Inc.
STP Commands
DWS-1008# set spantree hello 4 all
success: change accepted.
set spantree maxage
Changes the maximum age for an STP root bridge hello packet that is acceptable to a switch
acting as a designated bridge on one or all of its VLANs. After waiting this period of time for
a new hello packet, the switch determines that the root bridge is unavailable and issues a
topology change message.
Syntax: set spantree maxage aging-time {all | vlan vlan-id}
aging-time Maximum age value. You can specify from 6
through 40 seconds.
all
Changes the maximum age on all VLANs.
vlan vlan-id VLAN name or number. MSS changes the
maximum age on only the specified VLAN.
Defaults: The default maximum age for root bridge hello packets is 20 seconds.
Access: Enabled.
Examples: The following command changes the maximum acceptable age for root
bridge hello packets on all VLANs to 15 seconds:
DWS-1008# set spantree maxage 15 all
success: change accepted.
set spantree portcost
Changes the cost that transmission through a network port or ports in the default VLAN on a
switch adds to the total cost of a path to the STP root bridge.
Syntax: set spantree portcost port-list cost cost
port-list List of ports. MSS applies the cost change to all
the specified ports.
cost cost Numeric value. You can specify a value from 1
through 65,535. STP selects lower-cost paths
over higher-cost paths.
Defaults: The default port cost depends on the port speed and link type. SNMP Port
Path Cost Defaults: lists the defaults for STP port path cost.










