DT021- 081/2

advertisement
Student Name
Date
DT021- 081/2
COMMUNICATIONS NETWORKS 1
Laboratory 11
Objective
The objective of this exercise is to gain some experience on the practical operation of routers using
the RIP protocol. You will set up, configure and test a small internetwork consisting of three
interconnected networks using 2 Cisco routers, and 2 PCs.
You should work in teams of 2 to 3 students. Download the results sheet from the web, and complete
it as you progress. Print it at the end of the laboratory session. There can be a single report per group.
Network set up
Each group will use 2 Cisco routers and 2 PCs.
Use the 2 PCs to create 2 LANs. Connect each LAN to a router, and interconnect the 2 routers using
a serial interface or a 2nd Ethernet port.
Set up the Test Network as shown in the figure below. You should first disconnect the PCs
connection to the DIT LAN.
For each of the PCs you should configure:
-
the IP address
-
the subnet mask
-
the default gateway
You should report the IP configuration of the PCs you have selected in the table below:
 Results Sheet
Network/Node
Net 1/Node A
IP Address
Subnet Mask
Gateway IP Address
Net 2/Node D
Use the following network prefixes:
Net 1: 11.0.0.0/8
Net 2: 172.20.0.0/16
Net 3: 192.168.10.0/24
106756143
Page 1/5
The network should be set up as follows.
Net 1 Node A
Node B
IF1
Net 1
IF2
Router 1
(CISCO)
Net 3
IF2
Node C
IF1
Net 2 Node D
Router 2
(CISCO)
Net 2
Cisco router
The routers used in this lab may be Cisco 1700, 2500 or 2800 series. They have various I/O
connections possible.
 Console Port: Connection to a terminal or PC's serial port for local configuration.
 Serial Port: Used to make a direct connection between two adjacent routers with a serial cable.
 10/100 Ethernet: Ethernet port supporting 10/100 Mbps Ethernet.
One of the 2 10/100 Base Ethernet should be used to connect the routers to the Nets, the other
should be used to interconnect the 2 routers.
The 2500 series do not have an RJ45 compatible connector for the network connection, and an
Attachment Unit Interface (AUI) must be used.
1.
2.
3.
4.
5.
6.
7.
Connecting a PC to a Router for Configuration
Connect the router’s console port using the RJ-45 cable to the serial (COM) port on PC,
Open “Hyper terminal” by clicking: Start > Programs > Accessories > Communication > Hyper
terminal.
Enter connection name, e.g.: Cisco
Select COM3
Under “bits per second” select 9600 and leave all other fields.
Switch on power to router when main Hyper terminal window appears.
Enter password if prompted (cisco)
106756143
Page 2/5
Note: When first connecting to the router, the lowest access mode, called the EXEC mode is entered.
From this mode, the user can only use a limited numbers of unprivileged commands.
It is necessary to enter privileged mode to configure the router. This is done using the command
enable. Privileged mode will usually be password protected.
8. Type enable and enter the password (class) to enter Privileged mode.
Define the IP configuration of the routers
List the IP parameters to be used to configure the router interfaces.
Net 3/Node B = Router 1 – IF 1: IP Address
Net 3/Node B = Router 1 – IF 1: Subnet Mask
Net 3/Node B = Router 1 – IF 2: IP Address
Net 3/Node B = Router 1 – IF 2: Subnet Mask
Net 3/Node C = Router 2 – IF 1: IP Address
Net 3/Node C = Router 2 – IF 1: Subnet Mask
Net 3/Node C = Router 2 – IF 2: IP Address
Net 3/Node C = Router 2 – IF 2: Subnet Mask
Configuration of the routers interfaces
1) Display the configuration of all the interfaces:
Router#show interfaces
Note the names of the interfaces: Ethernet 0, or Ethernet 0/0, FastEthernet 0 or FastEthernet 0/0,
Serial 0 or serial 0/0,….
(Depending on the router model, the naming conventions change slightly).
2) Display the configuration for the interfaces you have used to interconnect the routers.
Router#show interface <name of interface>
3) Configure the interfaces you are using with IP address and subnet mask.
Router# configure terminal
Router(config)#interface <name of interface>
Router(config-if)#ip address <ipaddress> <subnetmask>
Router(config-if)#no shutdown
Note: the no shutdown command. An interface may be correctly configured and physically
connected, yet be "administratively down." In this state it will not function. The command for causing
an interface to be administratively down is shutdown.
Note: when configuring a serial interface, a clock rate should be set on one side of the connection,
using the command line:
Router(config-if)#clock rate 56000
After completing the configuration of the interfaces, you may exit the configuration mode, and check
the configuration:
106756143
Page 3/5
Router(config-if)#exit
Router(config)# exit
Router# show interface <name of interface>
Test Network Connectivity
Check whether nodes A and D can ping each other. Explain the result.
Node
Node A
Ping
Pass/Fail
Node D
Exercise 1: Dynamic routing
Router#show ip route
What routes are displayed in each router:
Router 1
Router 2
RIP Routing
In this test, you should use Ethereal on the PC identified as Node E (in network interconnecting the 2
routers) to observe the RIP traffic.
Now add an RIP routes to both routers.
Router# configure terminal
Router(config-if)#router rip
Router(config-if)#version 2
Router(config-if)#no auto-summary
Router(config-router)#network <net1(router 1)> <or net 2 (router 2)>
Router(config-router)#network <net3>
Router(config)#exit
Router#show ip route
106756143
Page 4/5
What routes are displayed in each router:
Router 1
Router 2
What destination networks are advertised in the RIP updates, and what are the associated costs.
How frequently are the RIP updates sent ?
106756143
Page 5/5
Download