Internetworking & Technology Consulting Services

Home Up Contact Us Feedback Contents Search
Intranet: Local Intranet: Remote Training Center Our Courses CellStream Blog Lab Access For Sale!
 

Up

 

Our favorite Cisco Commands - a quick reference

  1. Terminal Monitor
    1. terminal monitor - turns on terminal monitoring
    2. terminal no monitor - turns off terminal monitoring
  2. Debug
    1. show debug (displays all current debug operations)
    2. debug ip routing (displays routing related events)
    3. debug ip rip (displays rip routing events when enabled)
    4. debug ip ospf events (displays OSPF activity when enabled on a router)
    5. debug all (DANGEROUS - but turns on all debugging on Cisco IOS)
  3. Router Platform
  1. show running-config
  2. show startup-config
  3. show clock (displays current time setting)
  4. show history (displays a history of input IOS commands)
  5. show diag (displays hardware information)
  6. show interface (displays all interface information)
  7. show ip interface {brief} (displays information about installed ip interfaces)
  8. show ip arp (displays entire ARP table)
  9. show version (lots of info on IOS version, interfaces, memory and more)
  10. show protocols (displays what protocols are currently running)
  11. show process (displays all running processes on the platform)
  12. show memory (displays current memory usage)
  13. show buffers (displays packet buffer allocation and utilization)
  14. show ip traffic (displays a summary of IP traffic statistics)
  15. show access-list (shows the all the currently configured access-lists, but it also shows you the number of hits each line has received)
  16. show users (displays who is currently logged on/configuring the router)
  17. show processes - shows active processes running on router
  18. show memory - shows memory statistics
  19. show flash - describes the flash memory and displays the size of files and the amount of free flash memory
  20. show buffers - displays statistics for router buffer pools; shows the size of the Small, Middle, Big, Very Big, Large and Huge Buffers
  21. show stacks - shows reason for last reboot, monitors the stack use of processes and interrupts routines
  22. show port - similar to the show interface command on routers, this command gives you the status of ports on a switch.
  23. show vlan - use this command to make sure your ports are in the VLANs you think they are. Its output is very well designed.
  24. show tech-support - this command is great for collecting a lot of info. It basically runs a whole bunch of other show commands, and spits out dozens of pages of detailed output, designed to be sent to technical support. But, it's also useful for other purposes.
  1. Cisco Discovery Protocol (CDP)
    1. show cdp neighbors {detail} (if CDP is enabled, this is a quick way to display what neighbors exist on which interfaces - must all be Cisco devices)
    2. show cdp interfaces - shows which interfaces are running CDP
    3. show cdp entry <cdp_neighbor_here> - shows CDP neighbor detail
    4. cdp timer 120 - change how often CDP info is sent (default cdp timer is 60)
    5. cdp holdtime 240 - how long to wait before removing a CDP neighbor (default CDP holdtime is 180)
    6. show cdp run - shows if CDP turned on
    7. no cdp run - turns off CDP for entire router (global config)
    8. no cdp enable - turns off CDP on specific interface
  2. TCP
    1. show ip socket
    2. show tcp brief  
    3. show tcp tcb (number from tcp above)
  3. Basic IP Routing
    1. show ip route {summary}
    2. show ip cef {detail}
  4. BGP
    1. show ip bgp neighbor [address]
    2. show ip bgp summary
  5. MPLS
    1. show mpls interfaces
    2. show mpls ip bindings
    3. show mpls forwarding-table {detail}
    4. LDP
      1. show mpls ldp parameters
      2. show mpls ldp neighbor {detail}
      3. show mpls ldp discovery
      4. show mpls ldp bindings
    5. DEBUG
      1. debug mpls ldp ...
      2. debug mpls lfib ...
      3. debug mpls packets [interface]
  6. MPLS L3VPNs
    1. ping vrf [vrfname] [ipaddress]
    2. traceroute vrf [vrfname] [address]
    3. telnet [address] /vrf [vrfname]
    4. VRF
      1. show ip vrf {detail}
      2. show ip vrf interfaces
      3. show ip protocol vrf [vrfname]
      4. show ip route vrf [vrfname]
      5. show ip cef vrf [vrfname]
      6. show mpls forwarding vfr [vrfname] [address] {detail}
    5. MBGP
      1. show ip bgp vpnv4 all summary
      2. show ip bgp vpnv4 vrf [vrfname] [iproute]
      3. show ip bgp vpnv4 rd [rd number] summary
      4. show ip bgp vpnv4 rd [rd number] neighbors [address] routes
      5. show ip bgp vpnv4 rd [rd number] tags
      6. show ip bgp neighbor x.x.x.x advertised-routes
      7. show ip bgp recieved-routes
  7. Clearing and Resetting Commands
    1. clear ip route * (clears the ip route tables and causes the routing adjancencies to be reestablished)
    2. clear ip bgp * (clears the BGP routing tables and resets the adjacencies)
    3. clear count {interface} (clears the QoS and traffic counters on the specified interface)
  8. Important Editing keys
    1. backspace or delete key (deletes one character to the left of the CLI cursor position)
    2. crtl-d (deletes one character to the right of the CLI cursor position)
    3. ctrl-b or left arrow (moves cursor to the left on character)
    4. ctrl-f or right arrow (moves cursor to the right one word)
    5. ctrl-shift-6 (break operation - i.e. when ping is hung up)
    6. esc-b (moves cursor to the left one word)
    7. esc-f (moves cursor to the right one word)
    8. ctrl-a (moves cursor to the beginning of a line)
    9. ctrl-e (moves cursor to the end of a line)

 

 

CellStream Inc. is a registered Trademark
Copyright © 1998-2008 CellStream Incorporated