Online resources for University of  Greenwich, School of  Engineering


Introduction to Computer Networking 

 Labwork - Distance Vector Routing Protocol Lab


IMPORTANT INSTRUCTIONS
Read ALL of the text for this lab thoroughly before you make a start.
Follow the instructions completely for the lab to be successful.




Proceed to read the lab















Download the PT file for this part of the lab and run it in Packet Tracer.

You may need to save it to the desktop before running Packet Tracer from the NAL window.


Use your log books to make notes for this lab and answer all numbered questions.



Serial Links and the /30 mask

When putting serial links on routers, there will only ever be TWO hosts - the serial ports at each end of the link.
Therefore it makes no sense to assign a whole /24 (Class C) network to a serial link.

1.  How many addresses would be wasted if a /24 network 
was used to provide addresses on a serial link?

The solution is to use a much smaller sized network. The convention is to use a /30 subnetwork (255.255.255.252).
A / 30 subnetwork is the smallest practical network that is possible in IP version 4.
This is known as Variable Length Subnet Masking (VLSM) and allows for Classless Interdomain Routing (CIDR).

VLSM and CIDR have been adopted since the early 1990s.

A / 30 subnetwork has FOUR addresses e.g.

192.168.100.0       Network or wire address
192.168.100.1       First serial interface address
192.168.100.2
       Second serial interface address
192.168.100.3       Broadcast address

As there are only two host addresses on a serial link there will be no wastage of addresses.

The next FOUR numbers could be used on another serial link e.g.

192.168.100.4       Network or wire address
192.168.100.5       First serial interface address
192.168.100.6
      Second serial interface address
192.168.100.7       Broadcast address


For all serial links from now on, you must use a /30 address. These are generally RFC 1918 addresses.


2. What is special about RFC 1918 addresses?

Setting Interface Addresses

Note that for this lab, all commands are in courier font.

The IP addressing scheme is given in the diagram above.
You should use a /24 mask for the local area (Ethernet) network.

Make a copy of this diagram on the A3 paper provided for you.
Write the tables of IP addressing information on the diagram too (see below).

Using your mouse pointer, hover over each of the FastEthernet and Serial links in Packet Tracer to discover which router port it is connected to.
Make a table of connections for each router and enter the IP address and subnet mask for the connected interfaces similar to that below for all THREE routers.

3. What type of cable is used between the Internet and Chatham routers?

Note that each serial link has a small icon representing a clock at ONE end.
This end of the serial link, known as DCE, supplies the timing to the other end of the link.
Make a note which interfaces are responsible for supplying the clocking.
In this lab we will use 56000 bps as the clock rate for the serial links.

Chatham Interface Information
Interface
IP Address
Subnet Mask
Clock Rate
Default Gateway
Serial0/0



N/A
Serial0/1


N/A
Rochester Interface Information

Interface
IP Address
Subnet Mask
Clock Rate
Default Gateway
FastEthernet0/0


N/A

Serial0/0



N/A
Internet Interface Information

Interface
IP Address
Subnet Mask
Clock Rate
Default Gateway
Serial0/0



N/A

5. Make a copy of these tables available in your logbook.

6. Why is there no need for a Default Gateway on a serial network?

Once you have completed all THREE tables, you can begin entering the interface addresses in a similar way to that shown below:



Chatham>enable
Chatham#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Chatham(config)#interface serial 0/0
Chatham(config-if)#ip address 192.168.100.2 255.255.255.252
Chatham(config-if)#clock rate 56000
Chatham(config-if)#no shutdown
Chatham(config-if)#end
Chatham#write


Repeat this procedure to supply addresses and subnet mask for all connected interfaces on all THREE routers.

Refer to last week's lab if you are unsure how to enter the IP information.

Add the interface addresses for the other TWO routers using the IP addressing information that you wrote in the tables.

Remember to put a clock rate on all serial links that are the DCE end of the link.

When you have completed this, all links should have a green dot to show that the interfaces are 'up'.

If any of the links remain red, you should check you have entered the data correctly.

At the Priv Exec prompt enter the command show ip interface brief for each router

Chatham#show ip interface brief
Interface              IP-Address         OK? Method Status                Protocol
 
FastEthernet0/0        [your ip address]  YES manual up                    up
 
FastEthernet0/1        unassigned         YES manual administratively down down
 
Serial0/0             
[your ip address]  YES manual down                  down
 

The Status and Protocol should both appear 'up' not 'down' as highlighted above. 'down' indicates a problem with the configuration.

7. Make a copy of the output of this command for each router available in your logbook.


Remember to save your work regularly.
Packet Tracer or your PC could crash and you will lose all unsaved work!




Setting up Routing

CIDR, Routing and VLSM
Now that we are using /30 addresses, we must use a routing protocol that understands VLSM.

RIP is a CLASSFUL routing protocol and ASSUMES that the address we are using is either Class A or B or C.

RIP will not be useful here.

A revision was made to RIP in 1993 so that it could support CIDR (and VLSM).

This was RIP version 2.

For each router, make a note of the NETWORKS it has attached to it. You will need these when you enter the routing information.

Make a table to hold this information.

Router Network Information
Internet
Chatham
Rochester
(insert attached network address)
(insert attached network address) (insert attached network address)


(insert attached network address)

Now enter global configuration mode for the Internet router.

Type the commands as shown below:

Internet#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Internet(config)#router rip
Internet(config)#version 2
Internet(config-router)#network [your network address]
Internet(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
Internet#write

Repeat this using your network information for all the other routers in your network.

For Rochester only enter the following commands:

Rochester#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Rochester(config)#router rip
Rochester(config)#version 2
Rochester(config-router)#passive-interface fa0/0

8.  A passive interface does not send out any routing information. Why might this be useful?

Remember that you only need to include in RIP those networks that are actually connected to each particular router.

When you have done this, type the command

show ip route

This will show the networks that your router knows about.

Chatham#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    200.22.0.0/24 is directly connected, FastEthernet0/0
Chatham#

Remember to save your work regularly.


PC Addressing

Visit each PC in turn and click on the Desktop tab and enter the IP Configuration dialogue.



Add the network addresses 192.168.50.2 to 192.168.50.7 to PC0 through to PC5.

The subnet mask will be 255.255.255.0 for all links.

The default gateway will be the IP address of the router to which the LAN is attached. Look this up in your table.

Don't worry about the DNS Server.

9. What does DNS stand for?

Try to ping one PC from another. An example is shown below.



If this is not successful, you need to troubleshoot.

Verifying Routing
Issue the show ip route command on each router.

10.  If the router has learned any routes from RIP, which letter will preceed them? Check the codes displayed to discover this.

Example output:

Internet#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.1.0/24 is directly connected, FastEthernet0/0
R    192.168.50.0/24 [120/2] via 192.168.1.2, 00:00:24, FastEthernet0/0
R    192.168.100.0/24 [120/1] via 192.168.1.2, 00:00:24, FastEthernet0/0

If you do not see learned routes, you need to troubleshoot. The show ip interface brief command could be useful here.

Do not proceed until your routing is working completely.

Remember to save your work regularly.

More Verification

The show ip protocols command gives detailed information about the routing process.

Issue this command this for all three routers and answer the following questions for each router.

11.  What is the hold down time?
12.  What is the Maximum path count?
13.  What is the Distance?
14.  Which are the passive interfaces?
15.  When is the next update due?


Checking Interfaces

You can issue the show ip interfaces command. This gives details of all the interfaces thet the router has.
This can be very useful if your network is not working properly.

Do this for all three routers and note the answers in your log books.

16.  Which interfaces are administratively down?
17.  How are the addresses of the connected interfaces determined?
18.  What is the size of the MTU?
13.  What does MTU mean?
20.  What is the status of split horizon?


Debugging

The debug ip rip command allows you to see in real time the router RIP update process.

Type the command into all three routers. Make a note of what is displayed.

21.  How often does more information arrive?
22.  What information is displayed?
23.  Which routers are supplying routing information?
24.  Which version of RIP is being used?
25.  What metrics are reported for the networks?


When you have gathered the information, turn debugging off.

Use no debug ip rip to achieve this. You should never leave a router in debug mode in a production environment.

26.  Why would this be bad?

27.  What other debug commands are available?

Tidying up

Check the physical view of each router to ensure that there are no missing components.

28. What is missing from the Internet and Rochester routers?



Further Work (optional)

Add another router to the network. Use a serial port to connect it to the Rochester router.
Choose appropriate IP addressing for the serial link.
Enable RIP (version 2) for this new router.
Add a LAN to its Fa0/0 interface.
Connect a switch to this interface, you do not need to configure the switch.
Be sure to update the RIP information on the Rochester network.

Check that the routing is functioning correctly using the commands above.



Save your results in your logbook.

If you wish, you may download Packet Tracer 5 from the Useful Applications.



Back to Index page

Written by M Clements                        
Last updated :
08/02/2011 13:13