![]() |
![]() ![]() |
![]() |
![]() |
![]() |
|
![]() |
|
![]() |
|
The StorylineYou 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! |
Let'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!
You 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:
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
Next step is to set the computer up with a "Terminal Emulation Program" Well, there are lots of different computers and even more different terminal programs. Luckily most of them agree on certain things which can be "set".
Anyway, set your Computer "Terminal Emulation Program" to the following:
Some of you are already Experts and know what all these do. 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"
You should also start to see the following on your VT100 Terminal Program:
System Bootstrap, Version 12.0(1), SOFTWARE Restricted Rights Legend After reading this legal information very carefully, It should ask you "Would you like to enter the initial configuration dialog? [yes|no]:"
But we are going to type in "NO" when it asks us if we want to use the Besides if you are a Cisco person, you like doing things the hard way! 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.
Password for external modem connections
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.
If the end of a line goes too long, it will not automatically wrap to the next one.
Instead the Cisco IOS command shell gives you a dollar sign $. Your line would now look like this:
Router#$ this is a way too long line that is full of sound and fury
Note that the $ goes after the Router Prompt.
If you keep typing is will shift over as you type, Router#$long line that is full of sound and fury, signifying nothing!
You can get back to the beginning of your Novel by typing CTRL-A
Router# For Demo Purposes Only this is a long line that is full of $
If you want to you can turn off these Advance Editing Tools Since this would be a silly thing to do, please turn them back on
Now then, you just typed in a Real Long Command (RLC) Well, the Cisco IOS makes this Real Easy! The Router keeps the last 10 commands you issued in its HISTORY, If you are using the VT-100 Emulator we talked about before, If you are a poor unfortunate without VT-100 you can use these instead:
Router# show history
You can increase the size of your HISTORY buffer by using the command:
Terminal History Size
Router# Terminal History Size 99
The above command would give you 99 commands to play with!
Hope you noticed the SHOW part of the command above, 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...
?
1. If you type in a "?" at a Router prompt, 2. If you type in a command, a Space, and then a Question Mark (?) 3. If you type in the first few letters of a command and a Question Mark
The show version command gives you information on what version Show version will also show you what interfaces the router has.
router# type in show version Router> (type in show version
router>show version
Cisco Internetwork Operating System Software ROM: System Bootstrap, Version 11.0(10c), SOFTWARE Router uptime is 12 minutes cisco 2500 (68030) processor (revision N) with 2048K/2048K bytes of memory. Bridging software 1 Ethernet/IEEE 802.3 interface. 32K bytes of non-volatile configuration memory. Configuration register is 0x2102
The show memory command shows what memory is allocated Router> (type in show memory
Router>show memory
There are two Memory Charts that get shown.
1. A Summary
Router>:show memory
Head Total(b) Used(b) Free(b) Lowest(b) Largest(b) 2. A Detailed Block by Block memory chart.
Allocator PC Summary for: Processor
pc=0x031FDE54, size=000963416, count=000056, name=List Elements -Traceback= 320F2A6 317A070 318F4A4 31904A2 318F54C 31C2EBE As you can see the SHOW MEMORY command gives you lots of detailed information
A Process is part of a Program, or if it is small, it can be the entire Program.
It's sort of like having a troupe of Jugglers, The show processes command shows you all the active processes, PID - The ID number of each Process.
Q - The Queue priority
TY - This is the Status of the Process
PC - Program Counter.
Runtime - The amount of CPU time in milliseconds used by the Process
Invoked - This is the amount of time the Process has been invoked.
uSecs - The CPU time in milliseconds for each Process invocation.
Stacks - This shows both the "low watermark" / "total stack space" in bytes.
TTY - Shows you which terminal controls the process.
Process - Finally, this actually gives you the Name of the process!
Router> (type in show processes
Router>show processes
PID QTy PC Runtime (ms) Invoked uSecs Stacks TTY Process
1 Csp 32134FE 8 872 9 736/1000 0 Load Meter
2 M* 0 3632 82 44292 2960/4000 0 Exec
3 Lst 3203DC6 14300 960 14895 3736/4000 0 Check heaps
4 Cwe 3209FB6 0 1 0 3724/4000 0 Pool Manager
5 Mst 318E706 0 2 0 3700/4000 0 Timers
6 Mwe 311F992 8 2 4000 3696/4000 0 Serial Backgroun
7 Lwe 323C858 340 78 4358 3684/4000 0 ARP Input
8 Mwe 33877A6 0 3 0 3704/4000 0 DDR Timers
9 Mwe 339B8CA 0 2 0 5712/6000 0 Dialer event
10 Lwe 34BE0AC 36 2 18000 3684/4000 0 Entity MIB API
11 Mwe 3125CA2 0 1 0 3732/4000 0 SERIAL A'detect
12 Cwe 320D770 0 1 0 3740/4000 0 Critical Bkgnd
13 Mwe 31E55AA 696 547 1272 4756/6000 0 Net Background
14 Lwe 31857B2 16 7 2285 5604/6000 0 Logger
15 Msp 319E1D4 172 4347 39 3568/4000 0 TTY Background
16 Msp 31E4EB6 3084 4415 698 3736/4000 0 Per-Second Jobs
17 Msi 3235488 40 4351 9 3724/4000 0 Partition Check
18 Hwe 31E5014 0 1 0 3712/4000 0 Net Input
19 Csp 31EC442 68 873 77 3728/4000 0 Compute load avg
20 Msp 31E4EE4 4740 75 63200 3776/4000 0 Per-minute Jobs
21 Mwe 309D71E 0 1 0 3824/4000 0 SYNCCD2430 Helpe
--More--
A Stack is basically a portion of the Memory that is used to monitor Stacks are usually ordered in a "Last In, First Out" (LIFO) data structure.
The SHOW STACKS command looks at the manner in which the Cisco Router's If there was a Reboot caused by a crash, then using SHOW STACKS Router> (type in show stacks
Minimum process stacks:
Interrupt level stacks:
Level Called Unused/Size Name
A Buffer is portion of Memory set aside for data to wait around in Buffers are sort of like Bus Stops, but some are Bigger (like a Bus Station), SHOW BUFFERS lets you see the size of the Small, Middle, Big, Very Big, Large, and Huge buffers.
Also gives statistics on their usage. Kind of like Baseball scores.
Router> (type in show buffers
500 in free list (500 max allowed)
Public buffer pools:
Interface buffer pools:
We'd already discussed what Flash Memory is early, but a reminder can't hurt.
Flash Memory SHOW FLASH tells you how Big the Flash Memory is and what it is doing. Router> (type in show flash
System flash directory:
SHOW INTERFACES is like the Swiss Army knife of troubleshooting. Router> (type in show interfaces
Router>show interfaces
A Protocol is an agreed-upon method of speaking to others. SHOW PROTOCOLS lets you know if everyone is speaking Swahili properly. Even if the Interface is UP, if the Line Protocol isn't working, nothing works.
All of our Interfaces will be listed as Administratively Down In fact, since we are only doing the basic Setup of one Router in this tutorial,
Router>show protocols
Global values:
Internet Protocol routing is enabled
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. 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:
Refer to the "Getting Started" Guide for additional Help.
Use Control-c to Abort the Configuration Dialog at any Prompt.
Default settings are in square brackets []
Would you like to enter the initial configuration dialog? [yes] First, would you like to see the current Interface summary? [yes]
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.
Of course that brings to mind the important question,
"What is an Interface?"
An interface is something you connect things to, For example, the Ethernet Interface is where the Ethernet cable goes, But the Interface is also made up of Hardware (chips and boards) Got that picture? Good... we'll wait til later to tell you about "Virtual Interfaces"!
The System Configuration Dialog has only just begun!
The next Step will allow you to give your Router a Name
The screen on your Terminal should now look like this:
Configuring Global Parameters: Enter Host name [Router] : URouter
Which will change the Prompt on your Terminal Screen to change to:
URouter#
Note that the Router now has Your Name on it, "URouter"!
The next step is to choose Passwords to protect your Router
Protocols are simply things we agree upon for communicating stuff. Anyway, please configure the following Protocols:
First you will be configuring the Router to use the Now you get asked if you want to use the OSI Connectionless Network Service.
Next we pretend you are a Mac fanatic with a huge Multi-Zone Network!
Well, that's enough for the Global Configuration stuff for now. If you remember, an Interface is something that you plug into. You will notice that most of your Configurations So you thought you were almost finished, eh?
Configuring Interface Parameters: Cisco Routers come with a number of different Interfaces. The one mentioned above, Ethernet0, is your Interface *
*
This should be enough for you to be able to get a router up and running. The true challenge come when you have two or three, or 30,000 routers, Hopefully you will look forward to each challenge as it comes. Yours Truly - Bruce Evry
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?
6. What information is stored in the Bootfield?
7. If no "Configuration File" is saved in NVRAM then what will happen?
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?
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?
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
1 - Introduction to using Cisco IOS Commands
And that Commands are the Magic Words that
make computers do things.
And that a Routers is merely a Computer in a box that does nothing but Route.
And you are going to become the Magician!
then you will be able to make your Router do amazing tricks.
and you could call up evil Daemons that will destroy
your network.
it's just that we normally don't think of them that way.
This allows you to open the door.
Cisco Routers use
"Password" commands for this, but it's the same thing.
There's the "Gas Pedal" Command that makes it go fast.
And
the "Brake" Command that hopefully slows you down.
Of course it's good to have hands-on experience with the Steering Wheel,
which
is a command that lets you adjust the direction you're going.
or Brakes, or a Gas Pedal. You would have a Text-Based
User Interface.
You also have the "Argument" - Right (which modifies
the Command)
And then the "90" is another "Argument" standing for "90 Degrees"
If you had put in "180" then you'd have
made a U-turn.
Everything in BOLD is what you write exactly as written.
Notice that a Vertical Bar | separates the
various choices.
number-of-degrees is an Argument that can
be from 0 to 360 Degrees.
Please note that the [no] is also in Brackets,
which simply means that it is also just an option.
(just say No to turn-signals?)
just wait til we get to the Parallel Parking exercise!
"Look At Car" - car is leaning to one side.
"Look At Tires" - front drivers side tire is flat.
"Change Tire" - getting out jack and spare, changing
tire.
you will need to use a combination of all 3 of these basic Command
types.
Don't worry, you will soon become all-too-familiar with all 3!
2 - Starting Up Your Cisco Router
(We would suggest using a Chainsaw, but some of you would do
it, right?)
If you bought a Used Second Hand Router and have all the Above
Count
yourself as being one of the Luckiest people alive.
but are using this Tutorial as a substitute, I will
take mercy
and give you the "basic gist" of setting up a new machine.
you need to connect your new Router to a Computer.
Find these
wires, you will need them.
(it is usually an RJ45 connector or an RS-232-C connector)
(What? Did
you expect Cisco to always use the Same connector??)
Once again, your Router & Computer mileage may vary -
you
may need to find a suitable "connector adaptor" to make it fit.
Often seen are DB-9 , RS-232, or the good old RJ-45.
There is always some way to plug your Router into your Computer.
and have the appropriate Cable going between your New Router
and your Computer.
so that it can talk successfully with the Router.
Sounds simple, right?
Most Windows computers come
with a program called "Hyperterminal".
You can also download the latest version of this by searching the Net.
If you don't know what these things mean,
don't worry.
They will be appearing in my forthcoming 10,000 page Book "Everything About Computers"
available at fine
bookstores near you by the year 3,000...
Find the Router's Power Cord
Plug the Power Cord into an appropriate Electrical Socket.
Turn
on Router! (hint, there should be a "Power Switch")
See if the Power Light comes on
(on the 2500 series all you get is a little LED
in back... sorry!)
(what's the point of owning expensive electronic gear without lots of blinking lights?)
We should now consider the important Internal Parts that you
will be configuring!
Very Important Router Parts
This is a form of permanent memory used by the Router to store:
(to change the ROM you have to remove and replace chips)
An Electronically Erasable and Re-Programmable memory chip.
The "Flash" contains the full Operating
System, or "Image".
This allows you to Upgrade the OS without removing chips.
This stores your Router's "Startup Configuration File".
Similar to Flash memory,
this retains data even when power is lost.
This is regular computer memory chips.
These are the working memory of the Router,
and
provide Caching, Packet Buffering, and hold Routing Tables.
The RAM is also where the Running Operating System
lives
when the Router is on.
RAM loses all its data when reset or powered off.
Basically your Router will have Serial interfaces,
Which
are mostly used to connect long-distance as in a WAN (Wide-Area Network).
You will also have LAN (Local-Area Network)
Interfaces,
such as Ethernet, Token Ring, and FDDI (Fiber Distributed Data Interface)
What Happens As Your Router Boots Up
This includes the CPU (Central Processor Unit), memory, and interfaces.
The Configuration File is then executed one
line at a time.
the Cisco IOS will offer you the chance to use the "Initial Configuration
Dialog".
This is a set of Questions for you to answer to do a basic configuration.
Since in our theoretical New
Router there is no NVRAM configuration
This "Setup Dialog" will be one of the first things we see.
Copyright (c) 1986-2001 by Cisco Systems
Use, duplication, or disclosure by the Government is subject to restrictions
as set forth
in subparagraph (c) of the Commercial Computer Software -
Restricted Rights clause... if you are viewing this at Home
please
put your hands on your head an wait for the FBI to arrive.
(and other such legal fineprint as necessary!)
a brandnew Router should enter automatically into what is
called
the "System Configuration Dialog". Also called the "Setup Dialog".
"System Configuration Dialog", because putting
in the commands ourselves,
will let us learn exactly how to properly configure a Router.
As they always say, "The more difficult and challenging,
the better!"
3 - Logging Onto Your Router
You 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.
there is no Password yet,
a Router does not require a password on the Console Port.
You should definitely set up Passwords for your
Router as your first step!
This initial "setting of password" can only be done from the Console Port.
As a User you are allowed to log on, look at things, and do very little else.
To set up Passwords for your Router you need to first enter what is
called:
(think of this as Master Magician Mode)
Router# . . . . . . .
To Router# (with a # or pound sign.)
The # means that you
have entered Privileged Exec Mode
Needless to say, nearly everyone just calls it "Enable Mode" for short.
You will very
seldom hear anyone call it Privileged Exec Mode.
Please note that you did not need to enter a password
when
logging in from the Console -
Nor did you need one when changing to Privileged Exec (Enable) Mode.
just as easily become All-Powerful Deity. This
would be Bad!
In order to configure nearly anything on a Cisco
Router
you must be in Configuration Mode.
try typing the word configure
you will be able to configure from your terminal (aka computer).
(the
other two choices are fun, but for now we'll use the terminal, ok?)
Now and only now can you start the process of configuring Passwords.
you'd have to be in Car(config)# mode in order to use them.
You need to put in the following series of commands to create one.
Router(config-line)# login
Router(config-line)# password CISCO
Router(config-line#Ctrl-Z
when you put in the line console 0 command.
line
is a major command that puts you into "sub-command" mode.
(this is where you yell "Down Periscope - Dive! Dive! Dive!)
Only
in the Router(config-line)# mode can you configure individual "lines".
and brings you back up to the Router# prompt.
Global, Major, and Sub-command!
The Major Command "Line select-interface
takes you to Router(Config-line)
The Subcommands "login" and "password" let you configure your password.
If Cisco Routers were simple easy-to-use devices,
everyone
and his grandmother would be Cisco Certified, right?
Just for fun, I am including text-boxes for you
to write the Commands in.
Set the Auxiliary Password
5 - Making The IOS Shell Work For You
you will be pleased to note that the creators
of the Cisco IOS liked UNIX.
then take hope from the fact that Cisco doesn't
use ALL the UNIX commands.
liked to use the BASH Shell, a UNIX shell
that is fairly polite.
(which may stand for "Variable Insanity" or
"Very Intense"...)
Simple Operating Instructions
Note that using the ARROW Keys is limited to those using a VT-100 Terminal Emulation.
Fancy Editing Tricks
This indicates that you are an over-achiever
and have typed too much,
at least too much to be shown on the screen.
hiding more of the beginning of the sentence.
by simplying typing in Terminal No Editing at the
prompt.
by typing in the two words Terminal Editing.
Command History!
and you realize that you made a mistake in one word
and want
a second chance to do it right again.
which is a special memory Buffer which holds
the "Command History".
(note here that a "Buffer" is a memory space for storing things...)
simply do the following.
Putting the Command show history in at the prompt
gives
you the list of the last 10 commands you have typed in.
we will be using a lot more of SHOW commands to look at
various things!
4 - Learning To Use Context Sensitive Help
needs to bring back to mind one of those 10,001 arcane
commands
that are always the exact one you need and can't remember.
has a very good "HELP" function built into it.
change with the "context" or basically "what you are
trying to do".
Secrets of Using HELP!
Using the Help function is as easy as typing in a Question Mark.
There are 3 main uses of the Question Mark.
the Help function gives you a list of all the commands you can use
from that Prompt.
The Cisco IOS will try and give you options
you can use with that command.
the IOS will give you a list of Commands
that start with those letters.
(please note there is No Space between the letters and the ? - Important!)
6 - Showing Off Your Routers Elements
Show Version
of the Cisco Internetwork Operating System your
router is using.
It also gives you lots of other basic information on things such as
"how long the router has been up",
"how the system was started",
"what processor" and "how much memory" and "where the system image file was loaded from."
(you can also type in sh ver for short)
IOS (tm) 3000 software (IGS-I-L, Version 11.1(11) RELEASE SOFTWARE
(fc1)
Copyright (c) 1986-1999 by Cisco Systems, Inc.
Compiled Tue 24-Jun-97 12:20 by jaturner
Image text-base: 0x0301E644,
data-base 0x00001000
ROM: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c) RELEASE
SOFTWARE (fc1)
System restarted by power-on
System image file is "flash:igs-i-l.110-16", booted via
flash
Processor board ID 06267777, with hardware
revision 00000000
X.25 software, Version 2.0, NET2,, BFE and GOSIP compliant.
2 Serial network interfaces.
8192K bytes of rocessor board System flash (Read ONLY)
Show Memory
by the management system for which purposes.
Processor EA90C 5326580 2056220 3270360 3270360 3231192
I/O 600000
2097152 465264 1631888 1579032 1631720
pc=0x031D8060, size=000462508, count=000312, name=*Packet
Data*
pc=0x03217BAE, size=000287992, count=000068, name=Interrupt Stack
pc=0x031D8028, size=000178496, count=000312,
name=*Packet Header*
pc=0x031DCDEC, size=000115040, count=000008, name=Fair Queueing
pc=0x031C2BD2, size=000049196,
count=000001, name=Exec
pc=0x031DDBA8, size=000044660, count=000011, name=*Hardware IDB*
pc=0x031957E4, size=000040840,
count=000010, name=TTY data
pc=0x03214150, size=000033516, count=000063, name=Process
pc=0x0322E6F4, size=000032808,
count=000001, name=Cfg EEPROM Copy
pc=0x031DDBBE, size=000025124, count=000011, name=*Software IDB*
pc=0x034A829A, size=000014468,
count=000001, name=Init
pc=0x034A81F4, size=000014464, count=000001, name=Init
pc=0x03AA68C2, size=000013644, count=000001,
name=Init
pc=0x03A772B6, size=000013644, count=000028, name=ATMSIG-SHOW
pc=0x031A2D10, size=000013512, count=000197,
name=Parser
01:13:41: %SYS-3-CPUHOG: Task ran for 2008 msec (19/19), process = Exec, PC = 31 7A068.
31C3028 31C3332 31A18F0 31B605C Linkage
pc=0x031368E0,
size=000012044, count=000001, name=Init
pc=0x0320BCD8, size=000012032, count=000084, name=Watched Boolean
pc=0x032B17D0,
size=000011420, count=000001, name=DHCPD Message Workspace
pc=0x0320BEE8, size=000011040, count=000064, name=Process Events
--More--
about the memory contained within your
router.
Show Processes
each item they are tossing up in the air is one Process.
As long
as they keep them all going, everything is fine.
If not you can use SHOW PROCESSES to do a little troubleshooting!
in the form of a chart containing the following
information in Columns:
CPU utilization for five seconds: 7%/7%; one minute: 9%; five minutes: 12%
SHOW STACKS
the internal operations of a program.
Processes and Interupts utilize these stacks.
will reveal the reason for that reboot.
Router>show stacks
Free/Size Name
2704/4000 Setup
3256/4000 Autoinstall
2776/4000 DNS Snoop
2680/4000 Init
1720/2000 LAPB Timer
5400/6000 BootP Resolver
3460/4000 RADIUS INITCONFIG
4632/5000 DHCP Client
3524/4000 Exec
1 0 3000/3000 CL-CD2430 transmit interrupts
2 0 3000/3000 CL-CD2430 receive interrupts
3 33 2772/3000 Serial interface state change interrupt
4 23 2872/3000 Network interfaces
5 10771 2896/3000 Console Uart
SHOW BUFFERS
while waiting to catch the next bus out.
and some of them are very large, like
an Airport!
Router>show buffers
Buffer elements:
128 hits, 0 misses, 0 created
Small buffers, 104 bytes (total 56, permanent 50):
54 in free list (20 min, 150 max allowed)
87 hits, 2 misses, 0 trims, 6 created
0 failures (0 no memory)
Middle buffers, 600 bytes (total 28, permanent 25):
28 in free list (10 min, 150 max allowed)
76 hits, 1 misses, 0 trims, 3 created
0 failures (0 no memory)
Big buffers, 1524 bytes (total 50, permanent 50):
47 in free list (5 min, 150 max allowed)
19 hits, 0 misses, 0 trims, 0 created
0 failures (0 no memory)
VeryBig buffers, 4520 bytes (total 10, permanent 10):
10 in free list (0 min, 100 max allowed)
0 hits, 0 misses, 0 trims, 0 created
0 failures (0 no memory)
Large buffers, 5024 bytes (total 0, permanent 0):
0 in free list (0 min, 10 max allowed)
0 hits, 0 misses, 0 trims, 0 created
0 failures (0 no memory)
Huge buffers, 18024 bytes (total 0, permanent 0)
:
0 in free list (0 min, 4 max allowed)
0 hits, 0 misses, 0 trims, 0 created
0 failures (0 no memory)
Ethernet0 buffers, 1524 bytes (total 32, permanent 32):
8 in free list (0 min, 32 max allowed)
24 hits, 0 fallbacks
8 max cache size, 8 in cache
BRI0 buffers, 1524 bytes (total 4, permanent 4):
3 in free list (0 min, 4 max allowed)
3 hits, 0 fallbacks
1 max cache size, 1 in cache
BRI0:1 buffers, 1524 bytes (total 16, permanent 16):
12 in free list (0 min, 16 max allowed)
12 hits, 0 fallback
4 max cache size, 4 in cache
BRI0:2 buffers, 1524 bytes (total 16, permanent 16):
12 in free list (0 min, 16 max allowed)
12 hits, 0 fallbacks
4 max cache size, 4 in cache
Serial0 buffers, 1524 bytes (total 32, permanent 32):
7 in free list (0 min, 32 max allowed)
25 hits, 0 fallbacks
8 max cache size, 8 in cache
Serial1 buffers, 1524 bytes (total 32, permanent 32):
7 in free list (0 min, 32 max allowed)
25 hits, 0 fallbacks
8 max cache size, 8 in cache
Serial2 buffers, 1524 bytes (total 8, permanent 8)
:
6 in free list (0 min, 8 max allowed)
6 hits, 0 fallbacks
0 max cache size, 0 in cache
Serial3 buffers, 1524 bytes (total 8, permanent 8):
6 in free list (0 min, 8 max allowed)
6 hits, 0 fallbacks
0 max cache size, 0 in cache
CD2430 I/O buffers, 1524 bytes (total 20, permanent 20):
10 in free list (0 min, 20 max allowed)
10 hits, 0 fallbacks
SHOW FLASH
An Electronically Erasable and Re-Programmable memory chip.
The "Flash" contains the full Operating
System, or "Image".
This allows you to Upgrade the OS without removing chips.
Again lots of good statistics to use in troubleshooting
your Router.
Router>show flash
File Length Name/status
1 11780820 12-04T.bin
[11780884 bytes used, 4996332 available, 16777216 total]
16384K bytes of processor board System flash (Read ONLY)
SHOW INTERFACES
It gives you information on all the Interfaces in your
Router.
Since the Interfaces are where all the real work takes place
being able to see what they are doing is very helpful.
BRI0 is administratively down, line protocol is down
Hardware is BRI
MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 5 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
BRI0:1 is administratively down, line protocol is down
Hardware is BRI
MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
Encapsulation HDLC, loopback not set
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 5 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
BRI0:2 is administratively down, line protocol is down
Hardware is BRI
MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 5 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
Ethernet0 is administratively down, line protocol is down
Hardware is Lance, address is 0010.7b3a.dea6 (bia 0010.7b3a.dea6)
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 252/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 01:17:16, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
14 packets output, 840 bytes, 0 underruns
14 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
14 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Serial0 is administratively down, line protocol is down
Hardware is HD64570
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input never, output 01:17:18, output hang never
Last clearing of "show interface" counters 01:17:18
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
5 packets output, 853 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=down DSR=down DTR=down RTS=down CTS=down
Serial1 is administratively down, line protocol is down
Hardware is HD64570
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input never, output 01:17:50, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/2/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
6 packets output, 132 bytes, 0 underruns
0 output errors, 0 collisions, 3 interface resets
0 output buffer failures, 0 output buffers swapped out
23 carrier transitions
DCD=down DSR=down DTR=down RTS=down CTS=down
Serial2 is administratively down, line protocol is down
Hardware is CD2430 in sync mode
MTU 1500 bytes, BW 115 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
6 packets output, 1992 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=down DSR=down DTR=down RTS=down CTS=down
Serial3 is administratively down, line protocol is down
Hardware is CD2430 in sync mode
MTU 1500 bytes, BW 115 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
6 packets output, 1992 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=down DSR=down DTR=down RTS=down CTS=down
SHOW PROTOCOLS
Sort of like having a conference call and all of us agreeing,
"Let's
all speak Swahili..."
If they are not, then the Router will tell you,
"Line Protocol is down.
since we have not yet turned any of them on.
we don't actually have anyone else
to talk Swahili with, do we? Router> (type in show protocols
BRI0 is administratively down, line protocol is down
BRI0:1 is administratively
down, line protocol is down
BRI0:2 is administratively down, line protocol is down
Ethernet0 is administratively down,
line protocol is down
Serial0 is administratively down, line protocol is down
Serial1 is administratively down, line
protocol is down
Serial2 is administratively down, line protocol is down
Serial3 is administratively down, line protocol
is down
SUMMARY
As you can see, the SHOW commands give you an inside view of your router.
There are many,
many show commands, and you will get to know most of them!
8 - Commands To Save Configurations
9 - Commands to Reload Configurations
back into the Running Configuration is
simple.
(which just says, copy to the Running-config from a TFTP file)
Name of configuration file to write [ARNOLD-confg]? return
Write file ARNOLD-confg
on host 10.1.1.1?
[confirm] return
In other words, it erases your NVRAM so that
the next time you RELOAD,
you have a completely blank Router.
As mentioned back at the very beginning, do NOT use this on a production
router.
This will in fact bring down your Network and have you looking through want ads.
10 - Using the Setup Command
If 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.
the "System Configuration Dialog" or "the Setup Dialog".
simply get into Enable mode and issue the Command
SETUP
most of which have a suggested Default answer in [Brackets].
For those
answers you find agreeable, simply Press the "Enter" key
- - - System Configuration Dialog - - -
At any point you may enter a Question Mark "?" for Help.
(this is where you press the "Enter" key for
[yes]
of what Interfaces your Router has configured.
If it is a New
Router straight from the Router Factory,
there won't be a whole lot going on.
That's because it's not configured yet,
right?
Interface ... IP Address ... OK? .. Method ... Status ... Protocol
----------------------------------------------
Ethernet0.... unassigned ... NO ... not set .... down ... down
Serial0 ........ unassigned ... NO ... not set ....
down ... down
Serial1 ........ unassigned ... NO ... not set .... down ... down
They have no IP Addresses (all unassigned!) and
they are Not "OK?"
What's worse, they have no method as it's "not set",
and their status is "down" and protocol is
"down".
How very depressing!
such as putting a power cord into an electrical socket.
You could
think of Interfaces as the places you plug cables
into on the back of your Router.
and the Serial Interface is where
you plug in the Serial Cables
(add milk and sugar to taste).
as well as the Software that makes the hardware work.
Global Configuration
But wait, there's More!
Let's name this Router after the ancient Sumerian City "UR".
Type
in the Name "URouter" in the text box below.
There are two "Command Levels" in the Cisco IOS
The "Non-privileged" can log onto the Router with
the regular password
and they can basically look at stuff but can't touch.
Protocols
This next section of the Systems Configuration Dialog is for Protocols.
Like when the Phone rings, you pick it up and say
"Hello".
That is part of a Protocol.
Then the person who called you says "Hello" and you start talking.
Simple Network Management Protocol.
(which is anything but
simple but does help Manage Networks)
(trust us, you do not need this protocol
right now)
Interface Configuration
We'll be moving on to the even more complicated Interface
junk.
Without these there is no connection to anything
and
you just spent a couple thousand dollars on a Router for nothing.
you'll be doing start out with Global Configuration commands
And
then go on to do some Interface Configuration commands
Personally I think this is a plot by evil Space Aliens...
Systems Configuration Dialog - Part 2
Revenge of the Interfaces!
Okay, what you will actually see next in the Dialog is:
Configuring Interface Ethernet0:
One of them is, of course, the one marked Console that
you attached your computer to.
that goes to your Ethernet "Local Area Network".
Summary
In the course of this Tutorial:
You, of course, know that is merely the beginning.
all interconnected, and each one of them serving
one or more networks.
Learn the Basics well, and they will serve you well in
the future!
Questions on the Basic IOS Commands
Router Parts
a very basic form of the Cisco IOS software, the POST,
and Bootstrap program?
Booting Up Questions
5. What is the very first thing that happens when your Router Boots Up?
Logging on and Passwords Questions
8. When you first log on to a new router, what password do you use?
10. The Privileged Exec Mode is entered into by issuing which command.
Cisco IOS Questions
15. Which 2 of the following are Not true?
that start with the letter S?
SHOW Commands
20. If you wanted to find what the Configuration Register contained, you'd use?
talking correctly with the outside world you'd
use which command?
which of the following commands would not
work? (choose all that apply)
you could use which of the following commands? (choose all that
apply)
amd then RELOAD on the Router that connects your
company to the Internet? (choose all that apply)
-------Jagdeep Yadav