Cisco CLI Reference
Essential Cisco command-line interface commands
Basic Commands
enableEnter privileged EXEC mode
Router> enableconfigure terminalEnter global configuration mode
Router# configure terminalshow running-configDisplay current configuration
Router# show running-configcopy running-config startup-configSave configuration to NVRAM
Router# copy running-config startup-configInterface Configuration
interface [type] [number]Enter interface configuration mode
Router(config)# interface gigabitethernet 0/0ip address [ip] [mask]Configure IP address on interface
Router(config-if)# ip address 192.168.1.1 255.255.255.0no shutdownEnable interface
Router(config-if)# no shutdowndescription [text]Add interface description
Router(config-if)# description LAN InterfaceRouting 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.2router ospf [process-id]Enable OSPF routing
Router(config)# router ospf 1router eigrp [as-number]Enable EIGRP routing
Router(config)# router eigrp 100ip 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.1Common Show Commands
show versionDisplay system hardware and software status
show interfacesDisplay interface status and configuration
show ip routeDisplay IP routing table
show ip interface briefDisplay brief interface information
show arpDisplay ARP table
show mac address-tableDisplay MAC address table (switches)
show vlanDisplay VLAN information (switches)
show spanning-treeDisplay spanning tree information
Configuration Modes
Router>User EXEC ModeRouter#Privileged EXEC ModeRouter(config)#Global Configuration ModeRouter(config-if)#Interface Configuration Mode