Cisco IOS

Switch & Router CLI Reference

🔑 User Exec Mode

CommandPurpose
enableEnter privileged exec mode
ping [IP]Test connectivity to a remote host
show versionDisplay IOS version and hardware info
show interfacesView interface status and statistics

🔐 Privileged Exec Mode

CommandPurpose
configure terminalEnter global configuration mode
copy running-config startup-configSave current config to NVRAM
reloadReboot the device
show ip routeDisplay routing table

⚙️ Global Configuration Mode

CommandPurpose
hostname [name]Set device hostname
enable secret [password]Set encrypted privileged exec password
line console 0Enter console line configuration
interface [type] [number]Enter interface configuration mode

🌐 Interface Configuration Mode

CommandPurpose
ip address [IP] [mask]Assign IP address to interface
no shutdownEnable the interface
description [text]Add a label to the interface
switchport mode accessSet interface to access mode
switchport access vlan [ID]Assign VLAN to access port