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
| enable | Enter privileged EXEC |
| configure terminal | Enter global config |
| exit | Go back one level |
| end / Ctrl+Z | Return to privileged EXEC |
| Tab | Auto-complete command |
| ? | Show available commands |
Show Commands
| show running-config | Active config in RAM |
| show startup-config | Saved config in NVRAM |
| show version | IOS version, uptime, hardware |
| show ip interface brief | Quick interface/IP summary |
| show ip route | Routing table |
| show vlan brief | VLAN assignments |
| show interfaces trunk | Trunk port status |
| show mac address-table | MAC table |
| show cdp neighbors | Connected Cisco devices |
| show access-lists | ACL rules & hit counts |
| show ip nat translations | NAT table |
| show ip ospf neighbor | OSPF adjacencies |
| show etherchannel summary | EtherChannel status |
| show spanning-tree | STP topology |
| show logging | Syslog buffer |
| show ip dhcp binding | DHCP leases |
| show tech-support | Full diagnostic report |
| show policy-map interface <intf> | Active QoS policy-map stats per interface |
| show policy-map | List all defined policy-maps |
Multicast Commands
| show ip mroute | Multicast routing table — all VRFs |
| show ip mroute vrf <VRF-NAME> | Multicast routing table for specific VRF |
| show ip mroute count | Multicast traffic statistics and packet counts |
| show ip mroute active | Active multicast sources |
| show ip pim neighbor | PIM neighbor adjacencies |
| show ip pim interface | PIM-enabled interfaces |
| show ip pim rp mapping | Rendezvous Point (RP) mappings |
| show ip igmp groups | IGMP multicast group memberships |
| show ip igmp interface | IGMP interface status |
| show ip rpf <source> | Reverse Path Forwarding check for source |
| show ip msdp peer | MSDP peer status (Multicast Source Discovery) |
| debug ip mpacket | Debug multicast packets (use with caution) |
| debug ip pim | Debug PIM protocol messages |
| debug ip igmp | Debug IGMP protocol messages |
Save & Manage
| copy running-config startup-config | Save config to NVRAM |
| copy running-config tftp | Backup to TFTP |
| erase startup-config | Delete saved config |
| reload | Reboot device |
| write erase | Factory 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 |
| shutdown | Administratively disable an interface |
| no shutdown | Enable (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 description | Remove 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> status | Speed, duplex, VLAN, and link state summary |
| show interfaces <intf> switchport | Switchport mode, VLAN, and DTP details |
QoS / Service Policy
| show policy-map | List 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> input | Input direction policy counters & drops |
| show policy-map interface <intf> output | Output direction counters & queue stats |
| show class-map | List all class-maps and match criteria |
| show class-map <name> | Show match conditions for a specific class-map |
| show run | section policy-map | Find all policy-map blocks in running config |
| show run | section class-map | Find all class-map blocks in running config |
| show run | section service-policy | Find 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 maps | CoS/DSCP mapping tables on Catalyst switches |
| show mls qos interface <intf> statistics | Per-interface drop & queue stats (Catalyst) |
| show interfaces <intf> | include service-policy | Confirm policy is attached to interface |