CCNA Course - IOS Commands Commands by Chapter Here are the commands presented in the Introduction to Cisco Router Configuration book by Cisco Press. They are grouped by book chapter, and shown with the appropriate prompt. Cisco Command Prompts and their corresponding Modes are: Router> Router# Router(config)# Router(config-if)# Router(config-subif# Router(config-router)# Router(config-line)# Router(config-controller)# Router(config-ipx-router)# Router(config-route-map)# User Mode Privileged Mode Global Configuration Mode Interface Configuration Mode Sub-Interface Configuration Mode Router Protocol Configuration Mode Line (Aux, VTY) Configuration Mode Controller Configuration Mode IPX-Router Configuration Mode Route-Map Configuration Mode Release 10.3 and earlier Commands Configure network copy tftp running-config Configure overwrite-network copy tftp startup-config Show configuration Write erase Write memory Write network copy running-config tftp Write terminal show startup-config erase startup-config copy running-config startup-config copy running-config tftp show running config Chapter 3 - Operating and Configuring a Cisco IOS Device Switch Command-Line Interface Type M Type K Type I ? SwitchA> Enable SwitchA# Show cdp show history show interfaces show ip show mac-address-table to enter menu mode to enter command-line mode to enter IP configuration Mode Provides context sensitive help User Exec Mode Prompt. Enter Privileged Mode Privileged Mode Prompt. Display cdp information Display Recent Command Line Commands Display interface status and configuration Display IP configuration Display MAC forwarding Table 1 show port show running-config show spantree show version show vlan show vlan-membership show vtp configure terminal Switch(config)# Interface type number Hostname name Ip address address mask exit, end or Ctrl-Z Commands from any prompt: ? Up Arrow (or

) Down Arrow (or ) Router Command-Line Interface Display port information Display Active Configuration Parameters Display spanning-tree subsystem Displays Software ver., Hardware Config, etc. Displays VLAN information Displays VLAN membership information Displays VLAN trunk protocol Enters Global Configuration Mode Global Configuration Mode Prompt Enters Interface Configuration Mode Name the Switch Add an IP address to the switch for Management Return to Privileged Mode Get on-line help Repeat Previous Command Repeat Next Command RouterA> User Exec Mode Prompt Enable Enter Privileged Mode RouterA# Ctrl-C Setup ? Exit Ctrl-Z ! Up Arrow (or

) Down Arrow (or ) Ctrl+A Ctrl+E Ctrl+F Ctrl+B ctrl+p Ctrl+N Esc+B Esc+F show history show interfaces terminal history size show version Privileged Mode Prompt Return to User Exec Mode System configuration Dialog Get on-line help Back out one level Leave config mode, return to Privileged EXEC Mode Can be used to put comments into a configuration file. Repeat Previous Command Repeat Next Command Move to the beginning of the command line Move to the end of the command line Move forward one character (or right arrow) Move back on character (or left arrow) Repeat previous command entry (or up arrow) Repeat most recent command (or down arrow) Back one word Forward one word Show command buffer Displays statistics for network interfaces Set command buffer size Displays Software ver., Hardware Config, etc. 2 show running-conf ig (wr term) show startup-conf ig (sh config) Display Active Configuration Parameters Display Boot Configuration Parameters Note: The commands write term and show config used with Cisco IOS software Release 10.3 and earlier have been replaced by new commands. These commands continue to perform their normal functions in the current release but are no longer documented. copy startup-config running-config Load your NVRAM to RAM copy running-config startup-config Save your Configuration to NVRAM Note: Release 10.3 or earlier uses write memory rather than copy run start exit end or Ctrl-Z Configure terminal RouterA (Config) # hostname hostname banner motd message banner login line vty 0 4 enable password password enable secret password no example: Router(config)#no enable secret sanjose interface type # line console 0 RouterA (conf ig-line)# Exec-timeout 0 0 Logging synchronous Login Password password RouterA(config-if)# Bandwidth (number) clock rate (number) media-type type shutdown Return to Global Config Mode Return to Privileged Mode Change to Global configuration Mode Global Configuration Mode Prompt Assign a Name to the Router Displays a banner at Login Displays a banner at Login Configure the Telnet Port Set the 'Enable Password' password Set the 'Enable Secret Password' password Placed before a command it disables that command Configure an interface - Change to interface mode Configure the Console Port - Change to line mode Console Line Configuration Prompt Set timeout to 0 min and 0 sec Do not have log messages interrupt command input Requires a user to login to the console session Establish a login password for the console session Interface Configuration Mode Prompt Enter specified Bandwidth for the Interface Set a clock rate on a DCE cable Set media type (ex. 10baset) Administratively disable an interface note: the command Router(config-if)#no shutdown will bring the interface back up Chapter 4 - Managing your Network Environment RouterA# show cdp interface Router Privileged Mode Prompt Display cdp Info about Your Router's Interfaces 3 show cdp neighbors show cdp entry hostname show cdp neighbors detail show cdp traffic show host show sessions show user show version show flash show running-config show startup-config telnet ip_address Ctrl-Shift-6 X Disconnect narne number clear line Resume # Ping Traceroute Configure terminal copy tftp running-config copy tftp startup-config copy running-config tftp note: Release 10.3 and earlier uses write network copy startup-config tftp copy flash tftp copy tftp flash erase starup-config Configure terminal RouterA (config)# No cdp run cdp timer seconds cdp holdtime seconds Config-register Boot system flash filename Boot system rom, Complete profile of neighbor routers (or * for all) Identical to sh cdp entry hostname for all neighbors Displays interface cdp traffic errors and statistics Display hostnames on network (like hostfile) Verify your telnet connectivity List all active telnet sessions Displays Software ver., Hardware Config, etc. Displays Flash Memory Contents Display Active Configuration Parameters Display Boot Configuration Parameters Establishes a connection with a remote device Suspend a telnet session Suspend a telnet session Disconnect a remote telnet user Resume a telnet session Verify connectivity to a remote machine Display packet routes between devices Change to Global configuration Mode Copy a Config File from TFTP to Running-config Copy a Config File from TFTP to Startup-config Save your RAM to a TFTP server Save your NVRAM to a TFTP server Backup your IOS to a TFTP server Copy the IOS image file to your router Delete your Saved Configuration Change to Global configuration Mode Global Configuration Mode Prompt Globally disable cdp Alter the Update Interval (default is 60 seconds) Time CDP pkts are held before discard (default 180 sec) Change Default Configuration Register Use a specific named flash image from flash memory Use a flash image from ROM Boot system tftp filename address Use a flash image from a TFTP server interface type # Configure an interface - Change to interface mode RouterA(config-if)# No cdp enable Router Interface Mode Prompt Disable cdp on an interface 4 Chapter 7 - Interconnecting Networks with TCP/IP Assigning Router Addresses RouterA# Term ip netmask-format bitcount Show hosts configure terminal RouterA (config)# ip address address mask ip host name port address address ip name-server address ip domain-lookup no ip domain-lookup interface type# interface type # # RouterA(config-subif)# Encapsulation isl vlan# Chapter 8 - Determining IP Routes RouterA# show ip protocols show ip route show running-config debug ip rip debug ip igrp transactions debug ip igrp events no debug all configure terminal RouterA (config)# ip route options router rip router igrp autonomous-system User Privileged Mode. Specify format of netmask for current session Display cached list of hostnames Enters Global Configuration Mode Router Global Configuration Mode Assign network address to a router Manually assign host namesnames Define DNS to go to (max. of 6) Refers router to DNS for names it does not recognize Disables name-to-address translation on router Configure an interface - Change to interface mode Configure a sub-interface - Change to sub-interface mode Sub-interface Configuration Mode Prompt Enable ISL on a router sub-interface User Privileged Mode Displays network information associated with router Displays contents of routing table Display Active Configuration Parameters Displays RIP routing updates Display transaction information between IGRP routers Displays IGRP routing information summaries Turns off all debugging Enters Global Configuration Mode Router Global Configuration Mode Configure a Static Route Selects RIP as the routing protocol Selects lGRP as the routing protocol 6 ip classless No ip classless router protocol RouterA(config-router)# network network number maximum-paths # variance multiplier traffic-share balanced min If a packet is received with a destination address within an unknown subnet of a directly attached network, the router will match it to the default route and forward it to the next hop. This is the default, unknown packets of directly connected networks are dropped Starts the router configuration Mode Router Configuration Mode Prompt Specifies directly connected networks Defines number of parallel paths - load balancing Controls load balancing in an IGRP environment Distribute traffic between IGRP load sharing routes Chapter 9 - Basic IP Traffic Management with Access Lists RouterA# show ip interface type number show ip interface type number show access-lists show ip access-lists configure terminal Display IP interface access list info Display all access lists Display ip access lists Enters Global Configuration Mode RouterA(config)# access-list 1-99 {permit/deny} source wildcard Create standard IP access list access-list 100-199) (permit/deny) protocol source wildcard destination wildcard [operator port] established log interface type# line vty 0 4 access-list{std/ext} name RouterA(config-std-nacl)# Permit/deny conditions Create an Extended IP access list Configure an interface - Change to interface mode Change to telnet line configuration mode Enter named configuration mode Named standard access list configuration Create your Access List conditions Example: RouterA(config-std-nacl)#deny tcp 172.16.4.0 0.0.0.255 Note: to remove a single line in a named access list, precede the condition with a no RouterA(config-ext-nacl)# Permit/deny conditions Named extended access list configuration mode prompt Create your Access List conditions Example: RouterA(config-ext-nacl)deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 23 Note: to remove a single line in a named access list, precede with a no RouterA(config-if)# Interface Mode Configuration Prompt ip access-group access -list-number in/out Apply an IP access list ip access-group name in I out Apply a named IP access list RouterA(config-line)# Telnet Line Configuration Mode Prompt 7 Link an access list to a terminal line Access-class access-list -number injout Chapter 10 - Configuring Novell IPX Verifying and Monitoring IPX Routing RouterA# show cdp neighbors detail show ipx interface type number show ipx route show ipx servers show ipx traffic debug ipx routing activity debug ipx sap activity ping ipx ipx_host - address configure terminal RouterA (conf ig) # ipx routing Enable IPX Routing and SAP services ipx maximum-paths number Specify Maximum Paths for Load Sharing (default=l) ipx route destination-net next-hop [floating-static] Define a Static IPX Route ipx delay number interface type # interface type # # Shows detailed cdp information for all neighbors Display status & configuration information Display the IPX Route Table Display Netware Servers Display number & type of IPX packets Display IPX RIP packets Display SAP update packet Check IPX host reachability Enters Global Configuration Mode Manully set the ticks metric (LAN=l, WAN=6) Enter Interface configuration Mode Enter sub-Interface configuration Mode RouterA(config-if)# Interface configuration mode prompt ipx network network-nbr [encapsulation encap-type [secondary]] encapsulation encap-type Configure a n interface for IPX RouterA(config-subif)# Sub-interface configuration mode prompt ipx network network-nbr [encapsulation encap-type [secondary]] encapsulation encap-type IPX Access Lists Configure a sub-interface for IPX RouterA# show ipx interface type number Display IPX interface access list information show access-lists Display all access lists show ipx access-lists Display ipx access lists configure terminal Enters Global Configuration Mode RouterA(config)# access-list {800-899} {permitldeny} source-networklnode destination networklnode Create an IPX statndard access list Example: Router(config)#access-list 800 permit 2b 4d 8 access-list {900-999} (permit I denyl novell-protocol source- network[.node [source-mask]] [source-socket] dest-network[.node, [dest-mask]] [dest-socket] [log] Create an IPX extended access list access-list{1000-1099)fpermitideny)network[node][network-mask node mask][service-typel[se.rver-nameI Create a SAP access list Example: Router(config)#access-list 1000 permit 21 a 4 interface type # Router (config-if) # Ipx access-group number [in/out] ipx sap-interval interval Enter Interface configuration Mode Apply an IPX access list Change SAP interval in minutes (default 1) ipx output- sap-filter access-list-# Apply an outbound SAP access list ipx input- sap-filter access-list-nbr Apply an inbound SAP access list ipx router-sap-filter Identify which SAPs to receive Chapter 11 - Establishing Serial Point-to-Point Connections RouterA# show interface type number Display interface configuration information show controllers serial number Shows status of DCE / DTE debug ppp authentication Shows output for both authenticating routers configure terminal Enters Global Configuration Mode Router(config)# username name password password Define usename & password to expect hostname name Assign a hostname to each router service password-encryption Hide your passwords on your routers configuration interface type # Enter Interface configuration Mode Router(config-if)# encapsulation hdlc encapsulation ppp ppp authentication ppp chap hostname hostname ppp chap password password Configure HDLC encapsulation on an interface Configure PPP encapsulation on an interface (chap I chap pap I pap chap I papj Configure PPP authentication Configure the hostname to display when connecting Configure a password to authenticate to an unknown host Chaper 12 - Completing an ISDN BRI Call RouterA# show interfaces show dialer show isdn active show isdn status Display status and counter info Display general diagnostic info Display call in progress and number dialed Displays statistics of ISDN connection 9 show ip route debug isdn a921 debug isdn q931 debug dialer configure terminal Displays routes known to the router Verify connections to the ISDN switch Display call teardown. and setup messages Displays what number the interface is dialing Enters Global Configuration Mode Router (config) # Global Configuration Mode Prompt isdn switch-type switch-type Specify a BRI switch type (Global) Dialer-list dialer-group protocol protocol-name permit/deny/list access-list Number/access group Specifies interesting traffic and associates it to a dialer group Example: Router(config)gdialer-list I protocol ip list 101 Router(config-if)# ip address address mask encapsulation ppp ppp authentication papIchap isdn spid1 spid number isdn spid2 spid number Interface Configuration Mode Prompt Configure the network address for the dial-up line Specify the encapsulation type Configure authentication Specify the SPID required to access the ISDN network Specify the SPID required to access the ISDN network isdn switch-type switch-type Specify a BRI switch type (Interface specific) Ip route prefix mask [address I interface] [distance] [permanent] Manually configure static routes dialer-group group__number Link the interesting traffic definition to an interface dialer map protocol nexL-hop-address name hostname speed broadcase dialer- string dialer idle-timeout seconds shutdown no shutdown Map an interface to a destination Specify the number of idle seconds before disconection Administratively shutdown an interface Re-enable an administratively shutdown interface Chapter 13 Establishing a Frame Relay PVC Connection RouterA# User Privileged Mode Prompt show frame-relay pvc Display status of each configured connection show frame-relay map Display the net layer address and DLCI for remote destinations show frame-relay lmi Display LMI traffic statistics show interf ace type number Display status and counter info clear frame-relay-inarp Clears inverse ARP dynamically created Frame Relay maps debug frame-relay lmi Display if you are sending and receiving packets configure terminal Enters Global Configuration Mode Router (conf ig) # interface type number Global Configuration Mode Prompt Enter Interface Configuration Mode Router(config-if)# lp address number mask encapsulation frame-relay cisco/ieff frame-relay lmi-type ansi/cisco/q933I Add an address to the interface Select encapsulation type Specify LMI type (autosensed in 11.2) 10 Specify bandwidth for routing protocols Specify the LMI type used by the Switch Enable inverse ARP Router(config-subif)# Ip address number mask bandwidth kilbytes frame-relay interface-dlci number Sub-Interface Configuration Mode Prompt Add an address to the sub-interface Specify bandwidth for routing protocols Assign a DLCI number to an interface bandwidth kilobytes frame-relay lmi-type ansi/cisco/q933a frame-relay inverse-arp protocol dici f rame-relay map protocol proto-address dlci broadcast ietf/cisco payload- compress packet-by-packet Manual address-to-DLCI table mapping ip bandwidth-percent iegrp as-number percent Specify what percentage of configured bandwidth to use for EIGRP interface serial number. subin terfa ce –number multipoint /point-to-point Create/Select a sub-interface 11