Cisco CLI command reference

A running list of every Cisco IOS command I pick up, grouped by what it’s for. Added to as I work through labs.

Mode navigation

Ctrl-Z does the same thing as end.

From (config-if), typing another interface <type/number> jumps straight to that interface. No need to exit first, but the prompt won’t show which interface you’re on.

Device configuration

no ip domain-lookup is a quality-of-life one. Without it, a typo at the prompt hangs the terminal while IOS tries to resolve it as a hostname.

Interface configuration

Router interfaces are shut down by default; switch access ports are not.

Hardcode duplex and speed on switch-to-switch links; leave auto toward PCs. A failed autonegotiation defaults the port to half duplex, and a mismatch shows up as late collisions.

DHCP server

Configuration files

Running config is volatile. Anything not copied to startup-config is gone after reload.

copy also moves files to and from a TFTP server (config backups, IOS images).

Switch management (Layer 2)

VLANs

Verification / show commands

show ip interface brief is the fastest first check on interface status.

VLAN 1 and 1002-1005 always exist by default and are reserved.

Routing protection

Terminal / session

Output filters

Append | <filter> <expression> to any show command.

console
show running-config | include hostname
show running-config | section interface
show running-config | exclude !
show running-config | ?

The expression is a regular expression and it is case sensitive: include Hardware matches the show interfaces MAC line, include hardware matches nothing. Filters run in EXEC mode, and | ? lists what a given command supports.

Handy patterns from the filtering lab: show running-config | include vlan lists every configured VLAN id on one screen, and | begin interface Port-channel1 jumps the output straight to that interface’s config.

CLI shortcuts

Help and completion

Cursor movement

Editing and deleting

History

EXEC mode and config mode keep separate history buffers.

Interrupting and exiting

Paged output (--More--)