Cisco IOS Basic CommandsTable Of Contents
|
The Storyline
You have just received your new Cisco Router by Express Delivery,
This tutorial is designed to use this scenario to explain
As a side benefit it will also give step-by-step instructions
|
If you have Used Router (not a brandnew Router) to work with, and you want to follow along with this tutorial, you can blank out everything, and start from what we call, "A Clean Slate". (A Clean Slate refers back to a time when students wrote on slabs of rock) Type in the following two Commands from the Enable Mode: Erase Startup-config Reload
This will have very BAD consequences - i.e. "Network Down, You Fired!"
|
Helpful Learning Tips
Hope that this helps a bit!
|
1 - Introduction to using Cisco IOS CommandsLet's start out at the very beginning with the question:
The most important thing to understand is that all computers run on Magic.
So what we are talking about here is the Magic Commands for Routing.
As long as you can remember the right Command,
Forget the commands, mis-spell them, put them in the wrong place, Yes, it is just like real magic - you will be playing with fire!
Most machines have commands and operating systems, It's sort of just like your car.
First you need to get into it, so you use the "Key" command. Then you have to use another Key command to start the car.
You have several commands that control what the car does.
If Cisco had designed your car you would not have a Steering Wheel, Imagine being in your car and wanting to turn Right. Instead of simply turning the wheel, you have to type in:
This Command consists of the Command word itself - STEERING-WHEEL You could perhaps add the optional Argument, "Use-Turn-Signals". Cisco would write the Model for this command like so: STEERING-WHEEL {RIGHT | LEFT | STRAIGHT } number-of-degrees [[no] use-turn-signals]
Translating the way Cisco writes this command: STEERING-WHEEL is the Command itself. (notice the Boldface!) An Argument is basically something which modifies the basic Command.
Things in Braces are Required Arguments {RIGHT | LEFT | STRAIGHT }
Italics stand for Arguments for which You supply the Values.
Square Brackets are for Optional Arguments - [[no] use-turn-signals]
If you are feeling thankful that Cisco did not design your car, Now then, there are 3 main types of Cisco Commands:
In order to configure most things on your Router,
But first things first, let's get your Router started!
|
2 - Starting Up Your Cisco RouterYou have just received your brandnew Cisco Router by special delivery.
The first step is, in fact, to remove it from the box. The second step is to find all the wires and accessories. If you are lucky and actually bought a Brandnew Router, you should have:
Count yourself as being one of the Luckiest people alive. If you have said Manuals, read the Cisco "Getting Started Guide" now.
On the other hand, if you are Unlucky and do not have this manual,
First of all, Cisco is supposed to provide the cables There should be a Port on the back of your Router that says "Console"
Find the cables that plugs into this port.
Plug the other end of said Cable into your Computer.
If you are confused right now, don't worry.
Anyway, let's say that you've figured this problem out
Anyway, where were we? You have now connected your Computer to your Router. Congratulations!
The next step is easy.
The next step should be visual. There should also be a small fan noise. Some fans are louder than others.
Speaking of parts of the Router that blink and go "whirr"
|
3 - Logging Onto Your RouterYou have now gotten your Router turned on.And you should have a good connection to your Terminal Program The very next step should be to Log On.
But since we have a brandnew Router and you've turned down the Setup Dialog
By Default, as it comes from the factory,
If you think this would be a terrible security flaw, you are correct! Anyway, you should see a Prompt that says: Router>
This is called User Exec Mode.
You can not set up Passwords as a humble "User".
Privileged Exec Mode To enter Privileged Exec Mode type in the word enable at the prompt.
Router> enable
This changes the prompt from Router> (with an arrow) If you want to go back to being a plain User, just type disable
Now you are Enabled, a super-user with awesome mystical powers!
So you should Immediately set Passwords so that everyone else can not Just to keep this Tutorial simple, let's use "CISCO" for all the passwords.
But wait, in order to set passwords you must be in the right Mode!
To get from Enable Mode to Configuration Mode Router# configure You will then see on your terminal screen the question: "Configuring from terminal, memory, or network [terminal]?"
If you press Return (or write in the magic word "terminal") This will leave you at the unusual prompt:
Which means that you are in the Router (Configure) mode. Configure is a Global Command.
To go back to our car analogy, if Cisco passwords were Keys Your very next step should be to set the Password for the Console Port.
Starting from within the Router(config) mode.
Router(config)# line console 0 Please do not use CISCO as a password in real life. This is just a Demo!
Note that the Router prompt changes to Router(config-line)
Also note that the Ctrl-Z (Control-Z, also written ^Z) ends your session,
Remember that the 3 Types of Commands are
The Global Command "Configure" takes you down to Router(config) Mode.
But we are certainly not finished setting Passwords yet! There are 5 separate Passwords you need to protect your Router.
We've done the Console already, so let's run through the rest briefly.
Set the Auxiliary PasswordPassword for external modem connections
|
5 - Making The IOS Shell Work For You
For those of you who consider UNIX to be an easy and user-friendly thing,
If you are like the rest of mankind and think of UNIX as User-Hostile,
I have it on good authority that the people who designed the Cisco IOS
And they very much liked using the standard editing program "vi". Anyway, if you've worked for years with BASH shells and "vi" you're in luck. If you haven't, here are the simple Operating Instructions.
|
4 - Learning To Use Context Sensitive Help
There are always times when even the most Expert Networking person
For us poor Mortals we can rejoice in the fact that the Cisco IOS It is called Context Sensitive Help "Help" means that it actually provides some assistance.
means that the commands it offers you A more scientific description would be: Where you are currently in the Router Command Shell In other words, a person in User Exec mode would only see a few commands. A person in Privileged (Enable) Mode would see lots more command options. In the Global Prompt Router# you would see "Global Commands" If you drop down into Config-t you'd see "Configuration Commands" And so on, etc. and the like...
|
6 - Showing Off Your Routers Elements
|
8 - Commands To Save Configurations |
9 - Commands to Reload Configurations
As you may have already guessed, the command to put the Saved Configuration
The command to do this is RELOAD. ARNOLD# (type in reload) That's it, easy, simple. Be thankful! Next we'll learn how to reload from a TFTP server.
The command for doing this is COPY RUN TFTP.
Remote host[]? 10.1.1.1 Building configuration . . . OK And now you know two methods for re-doing the router's running configuration. Why would you want to do this? Well, it is good for resetting the router back to square one if you make a mistake. It is also good for doing a practise Lab a second time. Which brings us back to the Nuclear Weapon of configuration commands:
ERASE STARTUP-CONFIG takes your Router and Nukes it back to the stone age.
We will be using this command in the next section.
|
10 - Using the Setup CommandIf you wish to use the lazy man's method of setting up your Router,Cisco has provided a set of Questions and Answers for you.
A brandnew Router should enter automatically into what is called
If you have already got a configuration and want to use "Setup",
You will start to see a number of questions, If you want to change something you can type in your own answers. Here is what the "System Configuration Dialog" looks like:
Pressing Enter at this question gives you a Summary Anyway, a typical Interface Summary from an unconfigured Router looks like:
Anyhow, as you can see, these Interfaces are not doing anything much.
*
|
*
SummaryIn the course of this Tutorial:
|
Questions on the Basic IOS CommandsRouter Parts
1. Which of the Below is a form of Permanent Memory used to store
2. Which kind of Memory is the full Operating System or "Image" stored in?
3. What is the regular working memory of the Router?
4. Which are the "Ports" that connect your Router to the outside world?
Booting Up Questions5. What is the very first thing that happens when your Router Boots Up?
6. What information is stored in the Bootfield?
7. If no "Configuration File" is saved in NVRAM then what will happen?
Logging on and Passwords Questions8. When you first log on to a new router, what password do you use?
9. The User Exec Mode allows you to do which of the following:
11. In order to create passwords, which Global command do you need to use first?
12. In order to set a Console Password, which Major Command do you use first?
13. Which of the following Password protects specifically against Remote intruders.
14. The Enable Secret Password is improved over the regular Enable because?
Cisco IOS Questions15. Which 2 of the following are Not true?
16. Which of the following Editing Commands will take you to the End of a line.
17. If you wanted to use a previous command over again, what are 2 ways to do it.
18. Which of the following Help commands would show you USER Exec commands
19. Context Sensitive Help Means?
SHOW Commands20. If you wanted to find what the Configuration Register contained, you'd use?
21. If your Router suddenly crashed, which command would help troubleshoot?
22. If you wanted to check quickly to make sure all your interfaces were
23. If you wanted to take a look at your Router's current configuration,
24. If you want to save your Current configuration,
25. What are two reasons not to use the commands ERASE STARTUP-CONFIG
|
Return To Cisco Tutorial Directory |
** There may be no configuration at all in the router the user is working >> with.
If it isn't a production router, begin the scenario by logging in**
1) Log into a router in both user and privileged modes.
>> 2) Use the context-sensitive help facility.
>> 3) Use the command history and editing features.
>> 4) Examine router elements (RAM, ROM, CDP, show).
>> 7) Identify the main Cisco IOS commands for router startup.
>> 10) List the commands to load Cisco IOS software from: flash memory, a
>> TFTP server, or ROM.
>> **A little bit of TFTP FAQ's would be useful...need to "touch" the >> file on UNIX, the usual need for fully qualified file names, etc. >> in the scenario, do a erase startup and reset. Show managment >> through the configuration editor after reboot**
>> 5) Manage configuration files from the privileged exec mode.
>> 6) Control router passwords, identification, and banner.
>> 12) Prepare the initial configuration of your router and enable IP.
>> ** for a scenario, you will probably need a server**
>> 11) Prepare to backup, upgrade, and load a backup Cisco IOS
>> software image.
>> 9) Copy and manipulate configuration files.
>> 8) Enter an initial configuration using the setup command.
,p>
>> ** Do this LAST. Yes, the user needs to know how to do it to pass the
>> test, but SETUP causes BAD habits**
* Original E-mail Description*Subject: Re: A writing opportunity Glad to hear you're ready to contribute and happy with our terms. Go ahead and use HTML. As you know, Howard and the rest of our group are currently attempting to hammer out the official CertificationZone.com Lab Scenario format standard. I am sure the format used for the CCNA level scenarios will be different than the one established for the CCIE level. In any event, Howard will be available to help you develop your scenario when the time comes.>> Howard feels that you can develop a White Paper addressing what >> CCNA candidates should know about IOS before taking the CCNA >> exam. The paper would need to be 20-25 pages in length and you should >> make every effort to address the following twelve specific IOS CCNA >> exam objectives: (Note Howard has regrouped the 12 CCNA IOS exam objectives >> and revised them into a more rational presentation order as follows: (Note >> Howard has also added personal comments bracketed by **) >> ** There may be no configuration at all in the router the user is working >> with. If it isn't a production router, begin the scenario by logging in** >> 1) Log into a router in both user and privileged modes. >> 2) Use the context-sensitive help facility. >> 3) Use the command history and editing features. >> 4) Examine router elements (RAM, ROM, CDP, show). >> 7) Identify the main Cisco IOS commands for router startup. >> 10) List the commands to load Cisco IOS software from: flash memory, a >> TFTP server, or ROM. >> >> **A little bit of TFTP FAQ's would be useful...need to "touch" the >> file on UNIX, the usual need for fully qualified file names, etc. >> in the scenario, do a erase startup and reset. Show managment >> through the configuration editor after reboot** >> >> 5) Manage configuration files from the privileged exec mode. >> 6) Control router passwords, identification, and banner. >> 12) Prepare the initial configuration of your router and enable IP. >> >> ** for a scenario, you will probably need a server** >> >> 11) Prepare to backup, upgrade, and load a backup Cisco IOS >> software image. >> 9) Copy and manipulate configuration files. >> 8) Enter an initial configuration using the setup command. >> >> ** Do this LAST. Yes, the user needs to know how to do it to pass the >> test, but SETUP causes BAD habits** >> Your White Paper should be structured similar to Howard's >> OSI paper, with a table of contents and matching section heads. >> You can preview Howard's Paper on-line at the site at >> http://www.certificationzone.com/cisco/ccna-n/whitepaper.shtml . >> In addition to the paper, you would need to submit at least 25 sample >> questions addressing IOS, which need to be similar in structure >> and content to those found on the actual CCNA exam. You would need to also >> provide the answers to each question with a concise user-friendly >> explanation. The third and final piece to this assignment would be a >> laboratory scenario that would permit readers of your White paper to >> apply their knowledge of IOS in an actual application. >> A step by step explanation for solving the scenario needs to be included. >> Each scenario should be tested to make sure it works before you submit it. >> As you know, Howard is currently working on a putting together a meeting of >> White Paper authors in the DC area for the purpose of establishing format >> guidelines for the lab scenarios that will appear at the >> CertificationZone.com website. We would like to post your paper at the site >> for the November issue, which means it would have to be in Howard's >> possession for review, no later than 9/25/99.
|
The basic elements of a Cisco Command are:
For example, lets say you want your Car to turn Right
You would have to use the Steering-Wheel command
A Steering Wheel, of course, can either stay "Straight" or "Turn"
Steering-Wheel Turn
(command). . . .(key word)
but you'd have to modify it to tell it which way to turn.
Such a modification is done by adding what is called a Parameter,
which in this case would be simply the word "Right".
Steering-Wheel Turn Right
Would be your Command, then Key Word, then Argument.
A lot of Cisco commands are written with parameters that further modify
them.
Some commands have parameters that are necessary [ ]
While other parameters are just "optional" [use-turn-signal]
In this tutorial, the parameters will go into Square Brackets [parameter].
Remember this, since Cisco tends to do this to parameters also.
Names are very important in Computers in general and Networking specifically.
Think of "Names" as being secret "Magic Names".
Just like in real Magic, you have to know what the Magic Name is,
Then when you Pronounce the Magic Name
|