목적: 현재 상태/장애 징후를 빠르게 파악하고(링크, VLAN, STP, 에러, 이웃), 변경 전후 비교와 트러블슈팅의 기준점을 만든다.
show running-config설명: 현재 장비에 적용된 실시간 설정 확인
언제: 설정 확인/변경 검토/장애 시 구성 비교
팁
| section, | include 조합 활용show startup-configshow versionshow inventoryshow loggingshow interfaces statusshow interfaces <IF>show interfaces counters errorsshow vlan briefshow mac address-table설명: 스위치가 학습한 MAC 주소(포트/VLAN) 확인
언제
show interfaces trunk설명: 트렁크 포트 상태, Native VLAN, Allowed VLAN 확인
언제
show spanning-treeshow spanning-tree vlan <VLAN>show etherchannel summary설명: 포트채널 구성 상태(멤버 포트가 정상 합류했는지) 확인
언제
show cdp neighbors detailshow lldp neighbors detailshow port-security interface <IF>show interfaces status : 포트 업/다운 및 VLAN 요약 확인show interfaces <IF> 또는 show interfaces counters errors : 에러/드롭 확인show mac address-table : 단말 MAC이 어디에 학습되는지 확인show interfaces trunk : 트렁크/허용 VLAN/네이티브 확인(필요 시)show spanning-tree vlan <VLAN> : STP 차단/루트 변경 여부 확인show logging : 링크 flap, STP topology change 등 이벤트 확인show running-config | section interface
show running-config | include hostname|ip default-gateway|spanning-tree
show mac address-table | include <VLAN>|<MAC>
show logging | include LINK|SPANTREE|ERR|SEC
| section: 특정 블록(예: interface 단위)으로 묶어서 출력
| include: 특정 키워드가 포함된 라인만 출력
포트는 Up인데 통신 안됨
간헐적 끊김
특정 VLAN만 장애
show interfaces trunk, show spanning-tree vlan <VLAN> 로 STP/허용 VLAN 집중 확인