For detailed descriptions of the parameters and features, see the sections STP parameters and STP features.
device# configure terminal
device(config)# protocol spanning-tree mstp
device(config-mstp)# interface ethernet 0/5
device(conf-if-eth-0/5)# no shutdown
device(conf-if-eth-0/5)# spanning-tree restricted-role
device(conf-if-eth-0/5)# spanning-tree instance 5 restricted-tcn
device(conf-if-eth-0/5)# spanning-tree autoedge
device(conf-if-eth-0/5)# spanning-tree edgeport
device(conf-if-eth-0/5)# spanning-tree edgeport bpdu-guard
device(conf-if-eth-0/5)# spanning-tree cost 200000
device(conf-if-eth-0/5)# spanning-tree link-type point-to-point
device(conf-if-eth-0/5)# spanning-tree priority 128
device(conf-if-eth-0/5)# end
device# show spanning-tree interface ethernet 0/5 Spanning-tree Mode: Multiple Spanning Tree Protocol Root Id: 8000.001b.ed9f.1700 Bridge Id: 8000.01e0.5200.011d Port Eth 0/5 enabled Ifindex: 411271175; Id: 8002; Role: Designated; State: Forwarding Designated External Path Cost: 0; Internal Path Cost: 20000000 Configured Path Cost: 200000 Designated Port Id: 8002; Port Priority: 128 Designated Bridge: 8000.01e0.5200.011d Number of forward-transitions: 1 Version: Multiple Spanning Tree Protocol - Received MSTP - Sent MSTP Edgeport: yes; AutoEdge: yes; AdminEdge: no; EdgeDelay: 3 sec Restricted-role is enabled Restricted-tcn is enabled Boundary: no Bpdu-guard: on Link-type: point-to-point Received BPDUs: 86; Sent BPDUs: 1654
device# copy running-config startup-config
device# configure terminal device(config)# protocol spanning-tree mstp device(config-mstp)# interface ethernet 0/5 device(conf-if-eth-0/5)# no shutdown device(conf-if-eth-0/5)# spanning-tree restricted-role device(conf-if-eth-0/5)# spanning-tree instance 5 restricted-tcn device(conf-if-eth-0/5)# spanning-tree autoedge device(conf-if-eth-0/5)# spanning-tree edgeport device(conf-if-eth-0/5)# spanning-tree edgeport bpdu-guard device(conf-if-eth-0/5)# spanning-tree cost 200000 device(conf-if-eth-0/5)# spanning-tree link-type point-to-point device(conf-if-eth-0/5)# spanning-tree priority 128 device(conf-if-eth-0/5)# end device# show spanning-tree interface ethernet 0/5 device# copy running-config startup-config