NetOps Toolkit

Cisco IOS

Cisco CLI Reference

Searchable IOS command reference — modes, show commands, config

Command Modes

Router>User EXEC — basic monitoring
Router#Privileged EXEC — all show/debug commands
Router(config)#Global Config — configure terminal
Router(config-if)#Interface Config — interface gi0/0
Router(config-router)#Router Config — router ospf 10
Router(config-line)#Line Config — line vty 0 15

Navigation

enableEnter privileged EXEC
configure terminalEnter global config
exitGo back one level
end / Ctrl+ZReturn to privileged EXEC
TabAuto-complete command
?Show available commands

Show Commands

show running-configActive config in RAM
show startup-configSaved config in NVRAM
show versionIOS version, uptime, hardware
show ip interface briefQuick interface/IP summary
show ip routeRouting table
show vlan briefVLAN assignments
show interfaces trunkTrunk port status
show mac address-tableMAC table
show cdp neighborsConnected Cisco devices
show access-listsACL rules & hit counts
show ip nat translationsNAT table
show ip ospf neighborOSPF adjacencies
show etherchannel summaryEtherChannel status
show spanning-treeSTP topology
show loggingSyslog buffer
show ip dhcp bindingDHCP leases
show tech-supportFull diagnostic report
show policy-map interface <intf>Active QoS policy-map stats per interface
show policy-mapList all defined policy-maps

Multicast Commands

show ip mrouteMulticast routing table — all VRFs
show ip mroute vrf <VRF-NAME>Multicast routing table for specific VRF
show ip mroute countMulticast traffic statistics and packet counts
show ip mroute activeActive multicast sources
show ip pim neighborPIM neighbor adjacencies
show ip pim interfacePIM-enabled interfaces
show ip pim rp mappingRendezvous Point (RP) mappings
show ip igmp groupsIGMP multicast group memberships
show ip igmp interfaceIGMP interface status
show ip rpf <source>Reverse Path Forwarding check for source
show ip msdp peerMSDP peer status (Multicast Source Discovery)
debug ip mpacketDebug multicast packets (use with caution)
debug ip pimDebug PIM protocol messages
debug ip igmpDebug IGMP protocol messages

Save & Manage

copy running-config startup-configSave config to NVRAM
copy running-config tftpBackup to TFTP
erase startup-configDelete saved config
reloadReboot device
write eraseFactory reset config

Interface Management

default interface <intf>Reset interface to factory defaults — removes ALL config
default interface range <intf> - <intf>Default a range of consecutive interfaces
shutdownAdministratively disable an interface
no shutdownEnable (bring up) an interface
interface range <intf> - <intf>Configure a range of consecutive interfaces
interface range <intf> , <intf>Configure non-consecutive interfaces (comma-separated)
description <text>Add a human-readable label to an interface
no descriptionRemove description from an interface
show run interface <intf>Show running config for a single interface
show interfaces <intf>Detailed counters, status, and error stats for interface
show interfaces <intf> statusSpeed, duplex, VLAN, and link state summary
show interfaces <intf> switchportSwitchport mode, VLAN, and DTP details

QoS / Service Policy

show policy-mapList all defined policy-maps
show policy-map <name>Show a specific policy-map & class hierarchy
show policy-map interface <intf>All QoS stats (both directions) for an interface
show policy-map interface <intf> inputInput direction policy counters & drops
show policy-map interface <intf> outputOutput direction counters & queue stats
show class-mapList all class-maps and match criteria
show class-map <name>Show match conditions for a specific class-map
show run | section policy-mapFind all policy-map blocks in running config
show run | section class-mapFind all class-map blocks in running config
show run | section service-policyFind all service-policy attachment points
show run interface <intf>Full interface config incl. service-policy line
show mls qos interface <intf>Hardware QoS stats on Catalyst switches
show mls qos mapsCoS/DSCP mapping tables on Catalyst switches
show mls qos interface <intf> statisticsPer-interface drop & queue stats (Catalyst)
show interfaces <intf> | include service-policyConfirm policy is attached to interface