© Copyright Lenovo 2017 Chapter 10: Spanning Tree Protocols 191
Port Type and Link Type
Edge/Portfast Port
Aportthatdoesnotconnecttoabridgeiscalledanedgeport.Sinceedgeportsare
assumedtobeconnectedtonon‐STPdevices(suchasdirectlytohostsorservers),
theyareplacedintheforwardingstateassoonasthelinkisup.Internalports
(INTx
)shouldbeconfiguredasedgeports.
EdgeportssendBPDUstoupstreamSTPdeviceslikenormalSTPports,butshould
notreceiveBPDUs.IfaportwithedgeenableddoesreceiveaBPDU,it
immediatelybeginsworkingasanormal(non‐edge)port,andparticipatesfullyin
SpanningTree.
Usethe
followingcommandstodefineorclearaportasanedgeport:
Link Type
ThelinktypedetermineshowtheportbehavesinregardtoRapidSpanningTree.
Usethefollowingcommandstodefinethelinktypefortheport:
wheretypecorrespondstotheduplexmodeoftheport,asfollows:
p2p Afull‐duplexlinktoanotherdevice(point‐to‐point)
shared Ahalf‐duplexlinkisasharedsegmentandcancontainmore
thanonedevice.
auto Theswitchdynamicallyconfiguresthelinktype.
Note: AnySTPportinfull‐duplexmodecanbemanuallyconfiguredasashared
portwhenconnectedtoanon‐STP‐awareshareddevice(suchasatypical
Layer2switch)usedtointerconnectmultipleSTP‐awaredevices.
CN 4093(config)# interface port <port>
CN 4093(config-if)# [no] spanning-tree portfast
CN 4093(config-if)# exit
CN 4093(config)# interface port <port>
CN 4093(config-if)# [no] spanning-tree link-type <type>
CN 4093(config-if)# exit