meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network:switches:cisco:cli:stp [2024/08/19 12:43] – ↷ Page moved from network:switches:cisco:stp to network:switches:cisco:cli:stp niziak | network:switches:cisco:cli:stp [2024/08/19 14:19] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== STP/RSTP ====== | + | ====== STP / RSTP ====== |
| ===== getting info ===== | ===== getting info ===== | ||
| < | < | ||
| + | show spanning-tree | ||
| + | show spanning-tree bridge | ||
| + | show spanning-tree detail | ||
| show spanning-tree vlan 28 | show spanning-tree vlan 28 | ||
| </ | </ | ||
| Line 30: | Line 33: | ||
| enable | enable | ||
| config terminal | config terminal | ||
| - | Switch(config)# | + | Switch(config)# |
| wr | wr | ||
| copy run star | copy run star | ||
| Line 41: | Line 44: | ||
| switchport mode dynamic auto | switchport mode dynamic auto | ||
| end | end | ||
| + | </ | ||
| + | |||
| + | ===== Inconsistent port type ===== | ||
| + | |||
| + | Port '' | ||
| + | |||
| + | < | ||
| + | .Aug 19 10: | ||
| + | .Aug 19 10: | ||
| + | .Aug 19 10: | ||
| + | </ | ||
| + | |||
| + | Setup uplink port as '' | ||
| + | < | ||
| + | enable | ||
| + | conf term | ||
| + | interface Gi0/48 | ||
| + | spanning-tree portfast trunk | ||
| + | switchport mode trunk | ||
| + | </ | ||
| + | |||
| + | Setup all end-user ports '' | ||
| + | < | ||
| + | enable | ||
| + | conf term | ||
| + | interface range Gi0/1-47 | ||
| + | no switchport mode trunk | ||
| + | spanning-tree portfast | ||
| + | # optional | ||
| + | # don't expect bpdu packets - but it can create loops in LAN! | ||
| + | spanning-tree bpdufilter enable | ||
| + | spanning-tree bpduguard disable | ||
| </ | </ | ||