Cisco CLI Reference

Essential Cisco command-line interface commands

Basic Commands

enable

Enter privileged EXEC mode

Router> enable
configure terminal

Enter global configuration mode

Router# configure terminal
show running-config

Display current configuration

Router# show running-config
copy running-config startup-config

Save configuration to NVRAM

Router# copy running-config startup-config

Interface Configuration

interface [type] [number]

Enter interface configuration mode

Router(config)# interface gigabitethernet 0/0
ip address [ip] [mask]

Configure IP address on interface

Router(config-if)# ip address 192.168.1.1 255.255.255.0
no shutdown

Enable interface

Router(config-if)# no shutdown
description [text]

Add interface description

Router(config-if)# description LAN Interface

Routing Commands

ip route [network] [mask] [next-hop]

Configure static route

Router(config)# ip route 10.0.0.0 255.255.255.0 192.168.1.2
router ospf [process-id]

Enable OSPF routing

Router(config)# router ospf 1
router eigrp [as-number]

Enable EIGRP routing

Router(config)# router eigrp 100
ip route 0.0.0.0 0.0.0.0 [next-hop]

Configure default route

Router(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.1

Common Show Commands

show version

Display system hardware and software status

show interfaces

Display interface status and configuration

show ip route

Display IP routing table

show ip interface brief

Display brief interface information

show arp

Display ARP table

show mac address-table

Display MAC address table (switches)

show vlan

Display VLAN information (switches)

show spanning-tree

Display spanning tree information

Configuration Modes

Router>User EXEC Mode
Limited commands
Router#Privileged EXEC Mode
All EXEC commands
Router(config)#Global Configuration Mode
Global settings
Router(config-if)#Interface Configuration Mode
Interface settings