spanning-tree port-type
Syntax
spanning-tree port-type {admin-edge|admin-network} no spanning-tree port-type [admin-edge|admin-network]
描述
Sets the STP port type for the interface.
Port types include: admin-edge and admin-network.
The没有
form of the command sets the port type to the default of admin-network.
Command context
config-if
Parameters
-
admin-edge
-
规范ifies the port type as administrative edge. During spanning tree establishment, ports with admin-edge enabled transition immediately to the forwarding state.
-
admin-network
-
规范ifies the port type as administrative network. When this option is selected, the port looks for BPDUs for the first 3 seconds. If there are none, the port is classified as an edge port and immediately starts forwarding packets. If BPDUs are seen on the port, the port is classified as a non-edge port and normal STP operation commences on that port.
权威
Administrators or local user group members with execution rights for this command.
Examples
On the 6400 Switch Series, interface identification differs.
Setting the port type to admin-edge on interface1/1/1:
switch(config)#interface 1/1/1switch(config-if)#spanning-tree port-type admin-edge
Setting the port type to admin-network on interface1/1/1:
switch(config)#interface 1/1/1switch(config-if)#spanning-tree port-type admin-network
Setting the port type to the default of admin-network on interface 1/1/1:
switch(config)#interface 1/1/1switch(config-if)#没有spanning-tree port-type