
Spanning-Tree Commands
78-20269-01 Command Line Interface Reference Guide
371
29
Example
The following example enables the PortFast mode on
gi
15.
Console(config)#
interface
gi15
Console(config-if)#
spanning-tree portfast
29.11 spanning-tree link-type
Use the spanning-tree link-type Interface Configuration (Ethernet, port-channel)
mode command to override the default link-type setting determined by the port
duplex mode, and enable Rapid Spanning Tree Protocol (RSTP) transitions to the
forwarding state. Use the no form of this command to restore the default
configuration.
Syntax
spanning-tree link-type
{point-to-point | shared}
no spanning-tree spanning-tree link-type
Parameters
•
point-to-point—Specifies that the port link type is point-to-point.
•
shared—Specifies that the port link type is shared.
Default Configuration
The device derives the port link type from the duplex mode. A full-duplex port is
considered a point-to-point link and a half-duplex port is considered a shared link.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
Example
The following example enables shared spanning-tree on
gi1
5.
Console(config)#
interface
gi15
Console(config-if)#
spanning-tree link-type shared