Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Cisco Command Reference General Commands (continued) General IP Commands

show cdp entry * – Show info on neighbors clear ip bgp – Clear BGP routing table entries
show cdp neighbors detail – Show info on neighbors clear ip bgp peer-group – Clear BGP connections
General Commands
show controller – Show layer 1 info, such as cabling for all members of BGP peer group
? – Help
show flash – Show info on flash memory clear ip prefix-list – Reset hit count
ctrl+a/+e – Move to beginning/end of line
show history – Show recently typed commands debug ip bgp – Display BGP events on console
ctrl+b/+f – Move backward/forward a character
show interfaces – Show info on interfaces debug ip bgp updates – Display BGP updates
ctrl+c – Abort from setup mode
show logging – Display logging buffer debug ip eigrp – Start console display of EIGRP
ctrl+n/+p or ↓/↑ – Next/previous command show runn – Show active (RAM) configuration debug ip eigrp neighbors – EIGRP neighbor info
ctrl+shift+6 x – Suspend telnet session show slot <#> – Show PC card files debug ip igrp – Start console display of IGRP
ctrl+r – Redisplay line show start – Show startup (NVRAM) configuration debug ip ospf – Start console display of OSPF
ctrl+u/+w – Erase a line/word show user – Display list of active users on router debug ip ospf packet – Show received packets
ctrl+z – Exit config to privileged EXEC mode show version – Show IOS, hardware, and config reg debug ip ospf spf – Show SPF calculation events
esc+b/+f – Move backward/forward a word telnet – Connect to a host debug ip policy – Show IP policy routing events
<backspace> – Delete a character terminal monitor – Forward console info to user debug ip rip – Start console display of RIP events
<tab> – Complete the keyword tftp-server – Start a TFTP server on the router debug ip routing – Show IP routing events
arp – Show or change the ARP cache traceroute – Trace path of routers that packets take show eigrp traffic – Show types of EIGRP packets
clear counters – Reset show int counters undebug – Turn off debug output show ip access-list – Show IP access lists
clear line – Disconnect foreign telnet session show ip bgp – Display BGP routing table
clear logging – Clear the logging buffer General Configuration Commands
banner – Specifiy banner(s) for router show ip bgp neighbors – Show BGP neighbor info
clock set – Set router’s clock show ip bgp summary – All BGP connection status
configure terminal – Enter configuration mode boot system – Specify source of IOS images
config-register – Set the 16-bit config register show ip eigrp topology – EIGRP topology table
connect – Log onto a host via telnet, rlogin, or LAT show ip eigrp traffic – No. of packets sent or rec.
copy flash tftp – Copy flash file to tftp server enable password – Set enable password
enable secret – Set encrypted enable password show ip interface – Show IP info for interface
copy runn start – Copy RAM to NVRAM show ip ospf – Show OSPF specific parameters
copy runn slot <#> – Copy RAM to NVRAM exec-timeout 0 0 – Prevent autologout
hostname – Specify name of router show ip ospf database – OSPF topological databse
copy start runn – Copy NVRAM to RAM show ip ospf interface – Show OSPF interface info
copy tftp start – Copy tftp server to NVRAM interface – Enter interface config mode
line – Enter line (con, aux, vty) config mode show ip ospf neighbor – Show OSPF neighbor info
debug – Starts console displaying router events show ip policy – Show policy routing route maps
debug eigrp neighbors – Show eigrp neighb msgs logging synch – Place console messages on new lines
login – Enable logins on a con, aux, or vty line show ip prefix-list – Show all prefix list info
debug eigrp packets – Show eigrp packet summary show ip protocols – Show running IP protocols
delete <device:><filename> – Delete file password – Specify password for a line
route-map – Define a route map show ip route – Display IP routing table
disable – Exit privileged EXEC mode show ip route eigrp – Show current EIGRP entries
disconnect – Disconnects a telnet session
General Interface Config Commands
erase slot <#> – Erase files IP Configuration Commands
bandwidth – Set interface bandwidth for calculations
erase start – Erase NVRAM configuration access-class – Apply access list to con/aux/vty line
cdp enable – Enable CDP on interface (default)
exit – Exit config mode, or close telnet session access-list – Define access list
clock rate – Set clock rate in bits per second
logout – Close telnet session aggregate-address – Make aggregate BGP entry
description – Add text description to interface
nat – Network address translation area default-cost – Define cost of default route
encapsulation isl – Define layer 2 encapsulation
ping – Send an echo request and wait for a reply sent into an OSPF stub area; default is 1
interface – Enter interface config mode
reload – Reboot the IOS operating system area nssa – Define OSPF area as not so stubby
int serial multipoint|point-to-point – Enter
resume – Resume a suspended telnet session area range – Define route summarization on ABR
subinterface config mode for serial interface
rmon – Set up remote monitor function area stub – Define OSPF area as a stub area
media type – Select media for interface (e.g.10baseT)
setup – Enter prompted configuration mode area virtual-link – Define vlink to OSPF router
shutdown – Administratively shut down interface
snmp-server – Configure SNMP server bgp cluster-id – Configure the cluster ID
show access-lists – Show access list contents Recovering a Lost IOS default-metric – Define seed metric
1) Reboot router, and hit ctrl+break on reboot distance – Define rtg protocol admin distance
2) try one of: distribute-list – Activate rtg update access list
IIUSA boot slot <#> ip access-group – Apply access list to interface
Excellence in Information Technology or: boot <filename> <IP address> ip access-list – Create named access list
or: boot tftp://<IP address>/<filename> ip address – Assign IP address/mask to interface
http://iiusatech.com
Copyright (c) 2006 Internet Institute USA ip community-list – Create BGP community list
IP Configuration Commands (continued) General WAN Commands Example Router Setup
ip default-gateway – Used if IP routing is turned off debug dialer – Display dialer events on console Router> enable – Enter privileged mode
ip default-network – Define default route debug isdn q921 – Show ISDN LAPD events Router# erase start – Clear previous configuration
ip domain-lookup – Turn on DNS lookups debug isdn q931 – Show call setup/teardown Router# config t – Enter configuration mode
ip eigrp hello-interval – Hello packet interval debug ppp authentication – Show ppp Router(config)# enable password ii12Usa
ip eigrp hold-time – Uptime allowed w/o a hello authentication Router(config)# line con 0
ip forward-protocol – Used for following command show dialer – Display status of dialer link Router(config-line)# password CiscoIIUSA
ip helper-address – Address to which certain show isdn active – Show current call info Router(config-line)# login – Allow CON logins
broadcasts are forwarded. show isdn status – Show ISDN interface status Router(config-line)# line vty 0 4
ip ospf cost – Define OSPF cost on an interface Router(config-line)# password CiscoIIUSA
ip ospf network – Define network node config WAN Configuration Commands Router(config-line)# login – Allow vty logins
ip ospf priority – Define priority on interface bandwidth – Define interface bandwidth in bits/second Router(config-line)# hostname RouterA
ip name-server – Define DNS server dialer idle-timeout – Disconnect when idle RouterA(config)# banner motd #Put msg here#
ip netmask-format – Specify mask format dialer load-threshold – Place another call to same RouterA(config)# int e0 – (or e0/0, s0, s0/0)
ip prefix-list – Define a prefix list destination based on load RouterA(config-if)# ip address 192.168.1.1
ip route – Create a static route dialer map – Define how to reach destination 255.255.255.0
ip router isis – Enable IS-IS interfaces dialer-group – Apply dialer list to interface RouterA(config-if)# no shutdown – Enable
ip summary-address eigrp – Route summarization dialer-list list – Define dialer list to trigger call interface
isis priority – Change IS-IS priority for DR election dialer-list protocol – Make protocol dialer list RouterA(config)# exit – or <ctrl+Z>
isis circuit-type – Define 1/2 IS-IS level adjacency dialer string – Telephone number to call RouterA(config)# ip routing – IP routing should
match – Define condition to be checked in route map encapsulation – Define data link encapsulation be on by default
match community – Match BGP community attribute isdn spid1 – Set first B-channel SPID RouterA(config)# ip route 0.0.0.0 0.0.0.0
match ip address – Route map IP address to match isdn spid2 – Set second B-channel SPID 192.168.1.1 – Default gateway is 192.168.1.1
maximum-paths – Max # of parallel routes for protocol isdn switch-type – Connected ISDN switch type RouterA(config)# router igrp 10
neighbor – Identify peer router for this OSPF router ppp authentication – Set password authent type RouterA(config-router)# network 192.168.9.0
neighbor remote-as – Identify peer router for BGP username – Define hostname/password for ppp RouterA(config-router)# exit – or <ctrl+Z>
neighbor route-map – Apply route map to BGP routes RouterA# ping 192.168.1.1 – Connect to a host
neighbor shutdown – Disable BGP neighb./peer group Recovering a Lost Password RouterA# copy runn start – Save configuration
net – Assign a NET to the router to identify it for IS-IS RouterA# exit – Exit monitor
1) Reboot router, and hit ctrl+break on reboot
network – Define networks the routing protocol will use
2) o/r 0x2142 or confreg 0x2142 (differs by router) Access List Example
no auto-summary – Disable EIGRP autoroute summarz
no synchronization – Disable BGP synchronization 3) Reboot router with i, reset, or just power-cycle <1-99>: standard; <100-199>: extended
redistribute – Define protocol to be redistributed into 4) Router# copy start run, then change password. Router(config)# access-list 25 deny
this protocol. 5) In config (privileged) mode, restore config register: 192.168.30.0
router bgp – Define BGP as IP routing protocol Router(config)# configure-register 0x2102 Router(config)# access-list 25 permit any
router eigrp – Define EIGRP as IP routing protocol 6) Save running config: Router# copy runn start Router(config)# int e0
router igrp – Define IGRP as IP routing protocol 7) Reboot router with reload or power-cycle Router(config-if)# access-group 25 in
router isis – Define integrated IS-IS as IP protocol
router ospf – Start OSPF; enter OSPF configuration 0x2102 = Normal IS-IS and CLNS Commands
router rip – Start RIP and enter RIP configuration 0x2141 = Ignore start config, use ROM IOS show clns route – Show all CLNS destinations
set – Define actions followed if match in route map 0x2142 = Ignore startup config (shown below) show isis topology – List paths to IS-IS routers
set community – Set BGP community attrib in rte map 0 0 1 0 0 0 0 1 0 1 0 0 0 0 1 0 show isis route – IS-IS Level 1 forwarding table
set interface – Forward interface for rte map pckts which-route – Show next-hop IS-IS router
1514 1312 11 10 9 8 7 6 5 4 3 2 1 0
set ip default next-hop – For pckts w/o explicit rte show clns – General info about CLNS network
set ip next-hop – Define forwarding next-hop addr. show clns neighbors – Show neighbor ISs
set ip precedence – Set IP precedence in IP pckts Boot default Ctrl+break Ignore Boot field: show clns protocol – Info on IS-IS processes
set metric – Set BGP (MED) value from route map ROM software disabled NVRAM 00: ROM monitor show clns interface – CLNS-specific interface info
summary-address – Route summarization on OSPF if network after first 01: Use ROM IOS show clns is-neighbors – Neighbor IS-IS info
ASBR boot fails 60 sec 02-0F: Default IOS show isis database – IS-IS link-state database
timers spf – Wait before OSPF calculates route table clear isis – Force IS-IS link-state database refresh
traffic-share – Share traffic over unequal routes
variance – Define unequal cost load balancing http://iiusatech.com Copyright (c) 2006 Internet Institute USA Rev 1.10

You might also like