meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
network:switches:cisco:cli [2022/11/23 19:55] niziak |
network:switches:cisco:cli [2023/11/27 13:47] (current) niziak |
||
---|---|---|---|
Line 39: | Line 39: | ||
copy run start | copy run start | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | ===== RSTP ===== | ||
+ | |||
+ | <code> | ||
+ | show spanning-tree summary | ||
+ | enable | ||
+ | config | ||
+ | spanning-tree mode ? | ||
+ | spanning-tree mode rapid-pvst | ||
+ | |||
+ | spanning-tree vlan 1 priority 57344 | ||
+ | spanning-tree vlan 2 priority 57344 | ||
+ | spanning-tree vlan 28 priority 57344 | ||
+ | spanning-tree vlan 255 priority 57344 | ||
+ | exit | ||
+ | |||
+ | show spanning-tree bridge | ||
+ | |||
+ | wr | ||
+ | copy run star | ||
+ | |||
+ | </code> | ||
+ | |||
+ | Disable STP: | ||
+ | <code> | ||
+ | enable | ||
+ | config terminal | ||
+ | Switch(config)#no spanning-tree vlan 1 | ||
+ | wr | ||
+ | copy run star | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ===== Find MAC on ports ===== | ||
+ | |||
+ | <code> | ||
+ | |||
+ | sh mac address-table vlan 1 | ||
+ | </code> | ||
+ | |||
+ | show interface Gi0/40 | ||
+ | show controllers | ||
+ | |||
===== show port counters ===== | ===== show port counters ===== | ||
Line 45: | Line 89: | ||
show interface counters | show interface counters | ||
+ | enable | ||
clear counters | clear counters | ||
</code> | </code> | ||
+ | ===== diagnose port ===== | ||
+ | |||
+ | <code cli>show interface Gi0/17</code> | ||
+ | |||
+ | Using Time Domain Reflectometer | ||
+ | |||
+ | <code cli> | ||
+ | enable | ||
+ | test cable-diagnostics tdr int Gi0/17 | ||
+ | show cable-diagnostics tdr int Gi0/17 | ||
+ | </code> | ||