Sie sind auf Seite 1von 3

ELEX 4550 : Wide Area Networks

2014 Winter Session

Lab 4 - Introduction to IOS and GNS3

was installed and extract the contents to that folder


Introduction
(D:\GNS3-Standalone-64-bit).
Cisco is the largest manufacturers of routers. Cisco
routers are congured using a command language Create Project and Congure an IOS Image
that is part of their operating system, IOS (Internet
Go to the folder that was created above and run the
Operating System). In this lab you will practice using
gns3 application.
IOS commands to congure a router.
In the New Project window, enter a name for
Its oen useful to be able to test the conguration
your lab (e.g. myname-lab4) and enable the Save
of a network before deploying it. In this lab you will
nvrams option. Click on OK.
use an open-source simulator, GNS3, that allows you
Select the Edit -> IOS images and hypervisors
to set up and congure a network of routers.
menu item. Click on the button beside Im-
You will also use Wireshark to capture pack-
age le and select the image le you extracted above
ets owing on an interface between two simulated
(c7200-something.bin). Answer Yes if asked if
routers.
you want to uncompress the image.
In the lab you will have a chance to examine a Cisco
Set Default RAM to 64 MB, leave the other set-
7206 router. However, working on a simulator will
tings unchanged and click on Save and then Close.
allow you complete the lab more quickly and allows
e project les should be saved to a folder on your
everyone to work independently.
personal network directory.
is lab gives a very high-level overview of router
conguration. ere are many on-line sources if you
are interested in learning more. For example, the Set Up Your Network
Cisco 7206 Installation and Conguration Guide.
Add Routers

Click on the Router (topmost) Icon in the le toolbar.


Procedure Drag the icon labelled Router c7200 to the center
topology window. Grant the simulator (Dynamips)
Download GNS3 network access if asked. You should now have one
router labelled R1 in the window.
If necessary, download GNS3 from the course web Add another c7200 router (R2).
site or http://www.gns3.net/download/. For use on
the lab computers you should download the Windows
standalone 64-bit version to the D: drive. Right-click Congure Routers
on the downloaded le, select Extract All, select D:\ Select both routers by dragging a selection box
as the destination and click OK. around them. Select Device -> Congure. Click on
Routers c7200 on the le panel to congure both
Download the IOS Image routers at the same time. e heading should now
say Routers c7200 group.
e simulator does not include the router IOS so- Under the General tab set NPE to npe-300 (the
ware. You will use an IOS image from one of the Cisco IOS image we have available is not compatible with
7200 routers in the lab. the npe-400). Under the Slots tab set slot 0 to
If necessary, download the c7200 image le from C7200-IO-FE to add a Fast Ethernet (100 Mb/s) in-
the course web site to the same folder where GNS3 terface. Click on OK.

lab4.tex 1
Connect Routers the enable command but the GNS3 startup
cong le does this for you.
Click on R1 to highlight it. Select Device -> Add a
link. Click on R1 and select f0/0 (fast-ethernet, slot 0, R1(config)# is the prompt for conguration
interface 0). Drag the link to R2, click on R2 and se- mode where you can enter commands that
lect f0/0 again. Press the Esc key to stop adding links. change the routers conguration.
Your topology windows should look like:
R1(config-if)# is the interface conguration
prompt where you can enter interface congu-
ration commands.

e command config t enters cong-


uration mode. From conguration mode
interface <name> enters interface congu-
Select File -> Save Project to save your network ration mode for interface <name>. To return to the
topology. previous level type exit:
Grab a screen capture of your network topology for
MRXIVJEGI REQI
GSRJMK X
your report.
GSRJMK GSRJMK MJ
I\IG
Set Idle PC value
I\MX I\MX
e Idle PC value is a program counter value (an
address) that is part of the code executed when the Enter the following commands to set an IP address
router is idle. e simulator pauses simulator execu- on R1 interface f0/0, bring it up, set the routers name
tion at this address to reduce host CPU usage. to myname1, and return to exec mode:
Select Control -> Start/Resume all devices to start
both routers. Select Device -> Idle PC to calculate conf t
the Idle PC value. For the c7200-is-mz.121-1a in f0/0
image select 0x6046c9f8 if it is one of the options. ip ad 10.0.0.1 255.0.0.0
Click on OK (twice). no sh
ex
Start Consoles host myname1
Select Control -> Console connect to all devices to ex
open a console window for each router. e consoles
allow you to type IOS commands to congure each ese commands use abbreviated versions of
router. the commands configure terminal, interface
Practice using the IOS command-line help (?), his- address, no shutdown, hostname, and exit. e
tory (up-arrow) and editing (arrow, backspace and indentation is not required.
delete keys) features. Use your own name in the host name instead of
myname.
Give the same commands on the R2 interface but
Congure Router and Interfaces
use the hostname myname2 and address 10.0.0.2.
To reduce the length of conguration commands, the
IOS interface can be in dierent modes. e current Save the Conguration
mode is indicated by the prompt:
To make the current running conguration be the
R1# is the prompt for exec mode where you next startup conguration type copy run start
can enter commands that are acted on immedi- and conrm the default choices. Do this twice, once
ately. You would normally enter exec mode with in each routers console.

2
Select File -> Save Project. is will save the con-
guration information to (simulated) non-volatile
RAM (nvram) from which it will be restored the next
time the router reboots.

Show Router Conguration


Enter the command sh run on the rst router to
show the running conguration. is will show all
the IOS commands required to congure the router
to its current conguration from default values. Some
of these will have been set by the default GNS3 startup
conguration le.
Get a screen capture that includes both the host
name and the IP conguration for port f0/0. You may
need to increase the window size to capture both.

Monitor an Interface with Wireshark


Right-click on the link between R1 and R2 and select
Start capturing and R1 f0/0 (encapsulation:ETH).
Right-click on the link again and select Start Wire-
shark.
When Wireshark starts up, type ip in the Filter:
box to hide non-IP packets.
In the R1 console type: ping 10.0.0.2.
You should see the ping packets in the Wireshark
capture window. Grab a screen capture for your re-
port.

Report

Submit a report to the dropbox on the course web site


that includes:

the usual identication information (lab num-


ber and title, name, ID, set, date)

a screen capture of your topology

a screen capture of the running conguration


on the rst router showing the router name
(yourname1) and the IP address

a screen capture of the Wireshark window show-


ing the ping requests and responses.

Das könnte Ihnen auch gefallen