Академический Документы
Профессиональный Документы
Культура Документы
Account Sign In
Search
Topics
Store
CCNA Practical Studies
By Gary Heap and Lynn Maynes
Authors
Imprints
Explore
Table of Contents Copyright About the Authors Acknowledgments Foreword Introduction I. Basic Router Configuration Chapter 1. Practical Lab Methodology and Equipment Chapter 2. Cisco Router Review Router Components Summary Chapter 3. Lab Environment Chapter 4. Gaining Access to the Routers and Switches Chapter 5. Bridging and Switching Chapter 6. General Router Configurations Chapter 7. Router Interface Configuration Methodology II. Configuring Routing Protocols, ISDN, and IPX Chapter 8. Routing Information Protocol (RIP) Chapter 9. Interior Gateway Routing Protocol (IGRP) Chapter 10. Enhanced Interior Gateway Protocol (EIGRP) Chapter 11. Route Redistribution Chapter 12. Integrated Services Digital Network (ISDN) Chapter 13. IPX Chapter 14. Routing IPX III. Access Lists, Cisco IOS Software Operations, and Troubleshooting Chapter 15. Standard and Extended Access Lists Chapter 16. Cisco Router Operations Chapter 17. Troubleshooting IV. Appendixes A. Master Lab Configurations and Lab Diagrams
Router Components
Cisco routers have various components that are controlled by the Cisco IOS. These components include such things as memory, interfaces, and ports. Each component has a purpose that provides added functionality to a router. A review of these components will be useful in understanding each of their roles within a router.
Memory
A router contains different types of memory, where it can store images, configuration files, and microcode. The types of memory and their purposes are as follows: RAM Often referred to as dynamic random-access memory (DRAM). RAM is the working area of memory storage used by the CPU to execute Cisco IOS software and to hold the running configuration file, routing tables, and ARP cache. The running configuration file (running-config) contains the current configuration of the software. Information in RAM is cleared when the router is power-cycled or reloaded. ROM Sometimes referred to as erasable programmable read-only memory (EPROM). ROM is hard-wired read-only memory in the router. ROM contains power-on self-test (POST) diagnostics and the bootstrap or boot-loader software. This code allows the router to boot from ROM when it cannot find a valid Cisco IOS software image. This is known as ROM Monitor mode. This is a diagnostic mode that provides a user interface when the router cannot find a valid image. Flash Available as EPROMs, single in-line memory modules (SIMMs), or PCMCIA cards. Flash is the default location where a router finds and boots its IOS image. On some platforms, additional configuration files or boot images can be stored in Flash. The contents of Flash are retained when the router is power-cycled or reloaded. NVRAM Nonvolatile random-access memory. NVRAM stores the startup configuration file (startup-config), which is used during system startup to configure the software. In addition, NVRAM contains the software configuration register, a configurable setting in Cisco IOS software that determines which image to use when booting the router. The contents of NVRAM are retained when the router is power-cycled or reloaded. Table 2-1 provides a summary of these memory types, their function, and useful Cisco IOS software commands when managing these different types of memory.
www.informit.com/library/content.aspx?b=CCNA_Practical_Studies&seqNum=11
1/5
2/26/13
B. Frame Relay Switch Configuration C. Self-Study Lab D. ISDN Simulator Configuration and Setup NVRAM
An understanding of the different types of memory and their function within the router helps not only clarify where the IOS image and configuration files are stored, but also proves useful by allowing the user to manipulate these configuration files during the configuration process and understand what area of memory is being changed.
Command-Line Interface
CLI is the acronym used by Cisco to denote the command-line interface of the IOS. CLI is the primary interface used to configure, manage, and troubleshoot Cisco devices. This user interface enables you to directly execute IOS commands, and it can be accessed through a console, modem, or Telnet connection. Access by any of these methods is generally referred to as an EXEC session.
To change to the privileged EXEC level, type in the command enable, as shown:
Rue>eal otr nbe Pswr:[nbepswr] asod eal asod
If an enable password has been set, the router prompts you for it. When you enter the correct enable password, the prompt changes from Router> to Router#. This indicates that you have successfully entered into privileged EXEC mode, as shown:
Rue> otr Pswr:[nbepswr] asod eal asod Rue# otr
TIP Enable passwords show up as clear text in the running configuration file. If this is undesirable for your environment, Cisco IOS software offers another optionencrypt the enable password using the enable secret command. Using the enable secret command ensures that the password is not displayed as clear text in the running configuration file.
www.informit.com/library/content.aspx?b=CCNA_Practical_Studies&seqNum=11
2/5
2/26/13
Figure 2-1 Cisco Software Hierarchy Within each mode, certain commands are available for execution. Using the context-sensitive help, you can see a list of which commands are available. While navigating the CLI, the router prompt changes to reflect your current position within the CLI hierarchy. Table 2-2 summarizes the main command prompts within the CLI hierarchy.
Router (config- Interface level (submenu of From Router(config)#, type interface if)# configuration mode) [interface name]for example, Ethernet0 Router (config- Routing engine level router)# (submenu of configuration mode) Router (config- Line level (submenu of line)# configuration mode) From Router(config)#, type router [routing protocol]for example, rip, igrp, and so forth From Router(config)#, type line [port]for example, aux0, console0, vty 0 4
Line-configuration commands
Context-Sensitive Help
In both user and privileged EXEC modes, you can see a listing of available commands by typing a question mark (?) at the Router> or Router# prompts. This is referred to as context-sensitive help. Example 2-1 shows context-sensitive help from user EXEC mode.
Ssinnme t rsm eso ubr o eue Cet atmoayAcs-itety rae eprr cesLs nr Rstfntos ee ucin Oe atria cneto pn emnl oncin Tr ofpiiee cmad un f rvlgd omns Dsonc a eitn ntokcneto icnet n xsig ewr oncin Tr o piiee cmad un n rvlgd omns Ei fo teEE xt rm h XC Dsrpino teitrciehl sse ecito f h neatv ep ytm Oe altcneto pn a oncin Lc tetria ok h emnl Lgi a apriua ue o n s atclr sr Ei fo teEE xt rm h XC Rqetniho advrinifrainfo amliat eus egbr n eso nomto rm utcs rue otr mtt sa So saitc atrmlil mliattaeots hw ttsis fe utpe utcs rcrue mrc tae Taervremliatpt fo dsiaint suc rc ees utcs ah rm etnto o ore nm-oncin Nm a eitn ntokcneto aecneto ae n xsig ewr oncin pd a Oe aX2 PDcneto pn .9 A oncin pn ig Sn eh msae ed co esgs pp p SatIT Pitt-on Pooo (P) tr EF on-oPit rtcl PP -Mr-oe-
Example 2-1 displays the commands available for execution from user EXEC mode. When the number of commands available exceed that which can be displayed on the screen, the IOS displays the --More-- prompt. Pressing the Spacebar presents the next page of commands, often followed by another --More-- until all remaining commands are displayed and you're returned to the Router> prompt, as demonstrated in Example 2-2.
Example 2-2. Hitting the Spacebar Continues the Context-Sensitive Help Listing and Returns You to the User EXEC Mode Prompt
Lgu oot mif rno Ei fo teEE xt rm h XC Rqetniho advrinifrainfo amliat eus egbr n eso nomto rm utcs rue otr mtt sa So saitc atrmlil mliattaeots hw ttsis fe utpe utcs rcrue mrc tae Taervremliatpt fo dsiaint suc rc ees utcs ah rm etnto o ore nm-oncin Nm a eitn ntokcneto aecneto ae n xsig ewr oncin pd a Oe aX2 PDcneto pn .9 A oncin pn ig Sn eh msae ed co esgs pp p SatIT Pitt-on Pooo (P) tr EF on-oPit rtcl PP rsm eue Rsm a atv ntokcneto eue n cie ewr oncin roi lgn Oe a roi cneto pn n lgn oncin so hw So rnigsse ifrain hw unn ytm nomto si lp SatSra-ieI (LP tr eilln P SI) ssa ytt Dslyifrainaottria lns ipa nomto bu emnl ie tle ent Oe atle cneto pn ent oncin tria emnl Sttria ln prmtr e emnl ie aaees t37 n20 Oe at37 cneto pn n20 oncin taeot rcrue Taeruet dsiain rc ot o etnto
www.informit.com/library/content.aspx?b=CCNA_Practical_Studies&seqNum=11
3/5
2/26/13
tne unl wee hr x 3 xeoe rmt Rue> otr
You can repeat the same process to get a list of available commands from privileged EXEC mode. The only difference is that more commands are available within privileged EXEC mode. To find out what commands are available that begin with the letter c, you would type the letter c immediately followed by a ?. This is referred to as word help, and it is useful when you know what the command begins with, but not the exact syntax. Example 2-3 demonstrates this concept.
Example 2-3. Using Word Help to Find the Exact Syntax of a Command
Rue#? otrc cer cok cniue cnet cp la lc ofgr onc oy
As more letters are added to the command you need help for, the context-sensitive help feature narrows down the available commands to choose from. Example 2-4 demonstrates what you would see if you narrowed your search by adding additional letters such as co? or con?.
Example 2-4. Adding Characters in a Command Immediately Followed by a ? Helps You Narrow Your Command Search
Rue#? otrc cer cok cniue cnet cp la lc ofgr onc oy Rue#o otrc? cniue cnet cp ofgr onc oy Rue#o? otrcn cniue cnet ofgr onc
Suppose that you need more information on the syntax of the configure command. Command help is available to list arguments that are available with a given command by typing the command, followed by a space and a ?. For example, if you want to find out what commands were available to use with the configure command, you would type configure ?, as demonstrated in Example 2-5.
Example 2-5. Entering Characters in a Command Followed by ? Helps You Find the Exact Syntax of a Command
Rue#ofgr ? otrcniue mmr eoy ntok ewr oewientok vrrt-ewr tria emnl <r c> Cniuefo N mmr ofgr rm V eoy Cniuefo aTT ntokhs ofgr rm FP ewr ot OewieN mmr fo TT ntokhs vrrt V eoy rm FP ewr ot Cniuefo tetria ofgr rm h emnl
Finally, the command parser has the capability to distinguish erroneous commands that are entered incorrectly, as well as prompt you when more specific command arguments are needed. When an erroneous command is entered, the help feature returns the output shown in Example 2-6.
Example 2-6. Entering an Erroneous Command Generates a Message to Indicate the Syntax Error
Rue#hwrnn-ofg otrso nigcni ^ %Ivldiptdtce a ''mre. nai nu eetd t ^ akr
The ^ marker indicates where the error in the syntax occurred. When a more specific command argument is needed to distinguish among multiple possibilities, the help feature returns %Ambiguous command:, as shown in Example 2-7.
Example 2-7. Entering a Command Requiring More Specific Parameters Generates an Ambiguous Command Message
Rue#hwacs otrso ces %Abgoscmad "hwacs" miuu omn: so ces
This is easily corrected by typing more of the command so that multiple possibilities no longer exist, as shown in Example 2-8.
Example 2-8. Entering a Command with the Required Arguments to Eliminate the Ambiguous Command Error
Rue#hwacs-it otrso ceslss Sadr I acs ls 1 tnad P ces it pri ay emt n
Each of these context-sensitive help features is useful in helping you determine whether the command syntax is incorrect.
Hot Keys
The CLI also provides hot keys for easier navigation within the IOS and provide shortcuts for editing functions. Table 2-3 provides a list of shortcuts that are available.
Table 2-3. CLI Hot Keys for Cisco IOS Software Command Editing Functions
Key Sequence Ctrl-A Ctrl-R Ctrl-U Ctrl-W Ctrl-Z Description Moves the cursor to the beginning of the current line Redisplays a line Erases a line Erases a word Ends configuration mode and returns to privileged EXEC mode
www.informit.com/library/content.aspx?b=CCNA_Practical_Studies&seqNum=11
4/5
2/26/13
Tab Backspace
Ctrl-P or Up Arrow
Ctrl-N or Down Arrow Allows you to scroll backward through former commands Ctrl-E Ctrl-F or right arrow Ctrl-B or left arrow Esc+B Esc+F Previous Section Moves the cursor to the end of the current line Moves forward one character Moves back one character Moves back one word Moves forward one word Router Components | Next Section Share This
About
Affiliates
Contact Us
Jobs
Legal Notice
Privacy Policy
Press
Promotions
Site Map
Write for Us
2013 Pearson Education, Informit. All rights reserved. 800 East 96th Street, Indianapolis, Indiana 46240
www.informit.com/library/content.aspx?b=CCNA_Practical_Studies&seqNum=11
5/5