Spanning Tree Commands4-1674spanning-tree link-typeThis command configures the link type for Rapid Spanning Tree and MultipleSpanning Tree. Use the no form to restore the default.Syntaxspanning-tree link-type {auto | point-to-point | shared}no spanning-tree link-type• auto - Automatically derived from the duplex mode setting.• point-to-point - Point-to-point link.• shared - Shared medium.Default SettingautoCommand ModeInterface Configuration (Ethernet, Port Channel)Command Usage• Specify a point-to-point link if the interface can only be connected to exactlyone other bridge, or a shared link if it can be connected to two or more bridges.• When automatic detection is selected, the switch derives the link type from theduplex mode. A full-duplex interface is considered a point-to-point link, whilea half-duplex interface is assumed to be on a shared link.• RSTP only works on point-to-point links between two bridges. If you designatea port as a shared link, RSTP is forbidden. Since MSTP is an extension ofRSTP, this same restriction applies.Examplespanning-tree mst costThis command configures the path cost on a spanning instance in the MultipleSpanning Tree. Use the no form to restore the default.Syntaxspanning-tree mst instance_id cost costno spanning-tree mst instance_id cost• instance_id - Instance identifier of the spanning tree.(Range: 1-4094, no leading zeroes)• cost - Path cost for an interface. (Range: 1-200,000,000)The recommended range is -- Ethernet: 200,000-20,000,000- Fast Ethernet: 20,000-2,000,000- Gigabit Ethernet: 2,000-200,000Console(config)#interface ethernet ethernet 1/5Console(config-if)#spanning-tree link-type point-to-point