Cisco Basic Commands Guide
This guide introduces essential Cisco IOS commands for moving around the CLI, checking interface status, reviewing configuration, testing connectivity, and saving changes correctly.
Why These Commands Matter
- They help you navigate the device with confidence.
- They help you quickly see whether ports and IP addresses look correct.
- They help you inspect configuration without guessing.
- They form the base for most troubleshooting tasks.
Basic Navigation Commands
enable
configure terminal
exit
end
disable
enableenters privileged EXEC mode.configure terminalenters global configuration mode.exitleaves the current mode.endreturns directly to privileged EXEC mode.disablereturns to user EXEC mode.
View Configuration
show running-config
show startup-config
show running-config interface GigabitEthernet0/1
show running-configshows the active configuration.show startup-configshows the saved configuration used after reboot.show running-config interface GigabitEthernet0/1shows config for one interface only.
Save Configuration
copy running-config startup-config
write memory
Always save after making changes. If you do not, the device may lose the changes after reboot.
Check Interfaces
show ip interface brief
show interfaces
show interfaces status
show ip interface briefgives a quick summary of interface state and IP address.show interfacesgives detailed counters, errors, duplex, and speed information.show interfaces statusis useful on switches for port state and VLAN info.
How to Read Interface Status
- up / up means the interface is working.
- administratively down usually means the port is shut down.
- down / down usually means no physical link or cabling issue.
Check Connectivity
ping 8.8.8.8
traceroute 8.8.8.8
show arp
show mac address-table
pingchecks reachability.tracerouteshows where traffic is going and where it may stop.show arpshows IP-to-MAC mappings.show mac address-tableshows where MAC addresses are learned on a switch.
Check VLANs and Switching
show vlan brief
show interfaces trunk
show spanning-tree
show mac address-table dynamic
show vlan brieflists VLANs and assigned access ports.show interfaces trunkshows trunk ports and allowed VLANs.show spanning-treehelps verify whether a port is forwarding or blocked.show mac address-table dynamicshows dynamically learned MAC entries.
Check Routing
show ip route
show ip protocols
show running-config | section router
show ip routedisplays the routing table.show ip protocolsshows routing protocol information.show running-config | section routerfilters the routing part of config.
Basic Interface Configuration Example
configure terminal
interface GigabitEthernet0/1
ip address 192.168.10.1 255.255.255.0
no shutdown
end
copy running-config startup-config
Simple Troubleshooting Flow
- Check interface state with
show ip interface brief. - Confirm the configuration with
show running-config. - Test connectivity with
ping. - Use
tracerouteif traffic is not reaching the destination. - Save changes after the issue is fixed.
Common Mistakes
- Forgetting to use
enablebefore privileged commands. - Making changes but not saving them.
- Checking the wrong interface.
- Ignoring interface status before deeper troubleshooting.