Cisco Switch Commands Cheat Sheet

Legend
Basic Device Info & Navigation

Show system information

show version

Show current configuration

show running-config

Show saved (startup) configuration

show startup-config

Enter privileged mode

enable

Enter configuration mode

configure terminal

Save configuration

write memory

oder

copy running-config startup-config
Interface & VLAN Management

Show interface status

show interfaces status

Show detailed interface info

show interfaces GigabitEthernet1/0/1

Configure interface

interface GigabitEthernet1/0/1
 description Uplink-to-Core
 switchport mode access
 switchport access vlan 20

Create VLAN

vlan 20
 name Servers

Show VLANs

show vlan brief

Assign trunk

interface GigabitEthernet1/0/1
 switchport mode trunk
 switchport trunk allowed vlan 10,20,30
Port Security

Enable port security

interface GigabitEthernet1/0/10
 switchport mode access
 switchport access vlan 30
 switchport port-security
 switchport port-security maximum 2
 switchport port-security violation restrict
 switchport port-security mac-address sticky

Show port security

show port-security
show port-security interface GigabitEthernet1/0/10
Spanning Tree

Show STP summary

show spanning-tree summary

Show STP per VLAN

show spanning-tree vlan 10

Set switch as root

spanning-tree vlan 10 priority 4096
Quick Administrative Shortcuts

Show MAC address table

show mac address-table

Show ARP

show ip arp

CDP neighbors

show cdp neighbors detail

Leave a Reply

Your email address will not be published. Required fields are marked *