D-Link DGS-3224TGR Command Line Interface Reference Manual page 51

Layer 2 gigabit ethernet switch
Hide thumbs Also See for DGS-3224TGR:
Table of Contents

Advertisement

config stp ports
Purpose
Used to setup STP on the port level.
Syntax
config stp ports <portlist> {cost [auto|<value 1-200000000>]|priority <value 0-
240>|migrate [yes|no] | edge [true|false]|p2p [true|false|auto]|state [enable|disable]
Description
This command is used to create and configure STP for a group of ports.
<portlist> − Specifies a range of ports to be configured. The port list is specified by listing the
Parameters
beginning port number and the highest port number of the range. The beginning and end of
the port list range are separated by a dash. For example, 3 would specify port 3. 4 specifies
port 4. 3-4 specifies all of the ports between port 3 and port 4 − in numerical order.
cost [auto|<value 1-200000000>] − This defines a metric that indicates the relative cost of
forwarding packets to the specified port list. The default cost for a 1000 Mbps port is 20,000,
a 100 Mbps port is 200,000, and for a 10 Mbps port the default cost is 2,000,000.
priority <value 0-240> − A numeric value between 0 and 240 that is used in determining the
root and designated port in an STP port list. The default is 128, with 0 indicating the highest
priority.
migrate [yes|no] − yes will enable the port to migrate from 802.1d STP status to 802.1w
RSTP status. RSTP can coexist with standard STP, however the benefits of RSTP are not
realized on a port where an 802.1d network connects to an 802.1w enabled network.
Migration should be enabled (yes) on ports connected to network stations or segments that
will be upgraded to 802.1w RSTP on all or some portion of the segment.
edge [true|false] − true designates the port as an edge port. Edge ports cannot create loops,
however an edge port can lose edge port status if a topology change creates a potential for a
loop. An edge port normally should not receive BPDU packets. If a BPDU packet is received
it automatically loses edge port status. False indicates the port does not have edge port
status.
p2p [true|false|auto] − The administrative point-to-point status of the LAN segment
to this port. A value of true indicates that this port should always be treated as if it is
connected to a point-to-point link. A value of false indicates that this port should be treated as
having a shared media connection. A value of auto indicates that this port is considered to
have a p2p link if it is an aggregator and all of its members are aggregatable, or if the MAC
entity is configured for full duplex operation, either through auto-negotiation or by
management means.
state [enable|disable] − Allows STP to be enabled or disabled for the ports specified in the
port list. The default is disabled.
Only administrator-level users can issue this command.
Restrictions
Example Usage:
To set the path cost 19, the priority 15, and the state enabled of the ports 1-5:
DGS-3224TGR:4#config stp ports 1-5 cost 19 priority 15 state enabled
Command: config stp ports 1-5 cost 19 priority 15 state enabled
Success.
DGS-3224TGR:4#
DGS-3224TGR Gigabit Ethernet Switch CLI Reference Manual
47
attached

Advertisement

Table of Contents
loading

Table of Contents