CS 380 Router Lab

CS 380 Project#3: Router Lab

Purpose: The purpose of this lab is to give you some basic experience of configuring a routing protocol between two routers, and to familiarize you with the router version of the CISCO IOS software by having you work on the CISCO 2600 series routers in the CS Network Lab. By the end of this lab you should be able to:

·  Navigate through the IOS software on a CISCO router.

·  Look up basic connection information on a router.

·  Configure different interfaces of a router.

·  Configure the RIP protocol on a CISCO Router.

This lab is designed to be conducted by a group of two students working on a pair of routers. Each member of your group will occupy a router station and work on one of the two routers. Each step must be performed in a synchronized fashion; otherwise you won’t get the proper results. Note that you need to turn in your own report.

Please follow the steps below. Answer questions in the boxes.

IMPORTANT: Note that you are not required to answer all questions during the lab session. You might need to have a discussion with your team partner to figure out some answers after this lab session. Write down the start time at the top of this page and finish the lab within one hour.

Name of your Router (circle one, refer to the “Network Diagram”): Router1 or Router2

Part 0: Power off both switches and both routers & turn them back on. (Note that the switches have no power buttons, and you have to unplug the power cord to turn them off.) This action is for resetting the switches and routers to their initial configurations.

Part 1: Test connection

a)  You and your teammate should check if all cables (light blue, yellow and red) are connected properly among PCs, Routers and Switches according to the “Network Diagram.” If not, make sure you connect them correctly before your move on.

b)  Open a command prompt (DOS prompt) on your computer.

c)  Type “ping <ip-address-of-the-opposite-PC>” (e.g. If you’re on PC 1, ping PC 2), and press ENTER to ping. (Refer to the “Network Diagram” for the correct IP address of PCs) Can you ping the other PC?

(If your answer is “No”, then try it again in a couple of minutes. If your answer is “No” again, then stop and report this to the lab assistant.)

d)  Question:

How fast was the ping returned for each? Write down the average in milliseconds!


Part 2: Login your router using telnet.

a)  Use the current command prompt.(DOS prompt), type “telnet <ip-address>” (Note: There are two interfaces on each router, 0/0 and 0/1, use IP address of interface 0/0)

b)  Type in the password as given on the “Network Diagram.”

c)  After you have logged into both routers, start up another DOS prompt, and ping the router on the opposite network. (e.g. If you’re on PC 1, ping Router 2).

Remember not to ping from the telnet screen that is logged into the router. That will only ping from router to router. You want to ping from your computer to the router on the opposite network.

Part 3: Show commands and save the outputs

a)  Type “enable”, then enter the password when prompted (refer to the “enable password” on the board)

b)  At the command prompt, type “show running-config”, and then press ENTER

c)  When you see “---- More ----“, press SPACE BAR to display more information

d)  Create a new folder under C:\CS380_Fall03 using your last name as the folder name.

e)  Copy the contents of the output to a text file, and name it as “running-config.txt”. (To copy from DOS prompt, select the text to be copied, then right click on the blue bar on the top of the window, then go to Edit > Copy)

f)  Type “show ip protocol”, and press ENTER.

g)  Copy the output to a text file under your own folder and name it, “ip_protocol.txt”. This will list the ip protocol(s) currently running and its/their properties.

h)  Type in “show arp”.

i)  Copy the output to a text file under your own folder and name it as “arp.txt”

j)  Type in “show ip route”.

k)  Copy the output to a text file under your own folder and name it as “ip_route.txt”.


Part 4: Configure IP address of an interface

Question:

a)  Which interface of your router is connected to the opposite router? (Hint: Refer to the network diagram; it should be either 0/0 or 0/1)

b)  Type “config terminal” and press ENTER

c)  Type “interface fastethernet <port>” where port is the port number in (a).

d)  Type “ip address <ip-address> <subnet-mask>”. Use the following for each router:

IP Address Subnet Mask

Router 1 212.163.60.10 255.255.255.0

Router 2 212.163.60.11 255.255.255.0

Assign different IP addresses to each router using corresponding information.

(Warning: Make sure you don’t assign the same IP on both routers. Assigning the same IP to both routers will create an infinite loop situation.)

e)  Type “end” and press ENTER

f)  Ping the 0/0 router interface on the opposite side of the network

Question:

Was the ping successful?

g)  For each router, using what you have just learned [steps (b) to (e)], change the IP address of the same interface [indicated in part (a)] to the following.

IP Address Subnet Mask

Router 1 212.163.61.10 255.255.255.0

Router 2 212.163.61.11 255.255.255.0

h)  Ping the 0/0 router interface on the opposite of the network again.

Question:

Was the ping successful?

i)  Change the IP address of the router interface [indicated in part (a)] back to original value according to the network diagram.

Ping the PC on the other side again and verify it is working. Note: Both of you have to configure the IP address of the routers correctly in order to get it work.

(If your answer is “No”, then try it again in a couple of minutes. If your answer is “No” again, then you can to try check if you have changed the IP address of the router interface incorrectly.)


Part 5: Disable the Routing Protocol

a)  Type “config terminal” into the command prompt and press ENTER.

b)  Type “no router rip” (this disables the rip protocol)

c)  Now bring up the DOS prompt (In a completely separate window) again and try to ping the PC on the opposite network.

Question:

What is the result of ping? (Describe exactly what you see, however, if the ping works, something is wrong!)

Part 6: Re-enabling RIP

a)  Make sure you are still in Configuration Mode.

b)  Type in “router rip”.

Question:

How does the command prompt change?

c)  Type in “network <network-id>” for each interface of the router you are configuring. (This advertises the network IDs of the networks that your router is directly connected to). There will be two addresses you have to advertise. You can get the addresses from the network diagram. You may have to wait after you enter each network ID. Make sure you type in the correct network IDs.

As an example, if one port on the router has IP 220.163.59.5 (C class IP address), which belongs to the network 220.163.59.0, you would type “network 220.163.59.0” to advertise this network. That is, change the last number in the IP address to 0 and use that as network ID (since this is a Class C IP address). Remember to advertise TWO networks.

d)  Try to ping the other PC again in the DOS prompt. It may not immediately work. Retry every 15 seconds until it works.

e)  Exit to Privileged Exec Mode by typing “end”.

f) If ping doesn’t work after 2 minutes, check your work for any errors as you learned in part 3(b) and look for the section of “router rip”. Verify that you input TWO correct network IDs. To cancel an erroneously advertised network, go back to router rip mode (with config-router in the prompt) as you did early in this part, and then type “no network <network-id>”.


Part 7: Reboot Router and re-login using HyperTerminal

a)  Go to the back of your router, turn off the router by pressing the power button, wait for 5 seconds, and then turn it back on again.

b)  Make sure the “rollover” cable (light blue) is connected properly from your PC to the “console” port of your router. Then use Hyper-Terminal to connect to the router again.

c)  Start up HyperTerminal:

a.  Start menu > programs>Accessories>Communications

d)  Name the connection with your last name.

e)  Ensure that the connection settings match those below:

·  Connect using COM1(Serial port)

·  Under port settings:

  1. Bits per second: 9600
  2. Data bits: 8
  3. Parity: None
  4. Stop bits: 1

·  Flow Control: Hardware

f)  IMPORTANT: Hit ENTER once to bring up the prompt.

Part 8: Configure your router

a) Use what you learned in Part 4 to configure the IP address of the 0/1 interface of your router to the following.

IP Address Subnet Mask

Router 1 234.123.45.1 255.255.255.0

Router 2 234.123.45.2 255.255.255.0

What happened? (Write down exactly what you see.)

b)  Again use what you learned in Part 4 to configure the IP address of the 0/1 interface of your router to the following. Ping the other PC. If the ping fails, then try it again in a couple of minutes.

IP Address Subnet Mask

Router 1 218.123.45.1 255.255.255.0

Router 2 218.123.45.2 255.255.255.0

Was the ping successful?

c)  Use what you also learned in Part 6 to advertise the 218.123.45.0 network. Ping the other PC. If the ping fails, then try it again in a couple of minutes.

Was the ping successful?

Part 9: Finishing up

a)  Copy all four text files to your USB drive, and take it with you.

______

(Finish Time) (Date)

> Work on Part 10 after finishing the lab <

Part 10: After the lab

a)  What are the IP addresses and subnet masks for the TWO interfaces of the TWO routers in the two “running-config.txt” files saved by you and your teammate in Part 3(e)?

b)  How often does the router send an update to its neighbors? [Refer to the “ip_protocol.txt” file saved in Part 3(g) – output of “show ip protocol”]

c)  What does the output of “show arp” show? [Refer to the “arp.txt” file saved in Part 3(i). ARP stands for Address Resolve Protocol]

d)  What does the output of “show ip route” show? [Refer to the “ip_route.txt” file saved in Part 3(k)]

e)  Why ping was successful in Part 4(f) but not in Part 4(i)? (Hint: Compare the two IP addresses you assigned)

f)  As mentioned in Part 6(d), when you try to ping the other PC again in the DOS prompt, it may not immediately work. Why might it not work at first?

g)  Explain why you have such a problem when you try to configure the IP address of the 0/1 interface of your router in Part 8(a), but you don’t have this problem in Part 8(b).

> What to turn in? For each student (NOT each Team) <

1. This Router Lab document with answers to all the questions.

2.  A printed copy of the four text files that you saved.

Note:

·  Individual report - turns in your own report.

·  A soft copy of this Router Lab document is available at the class web.

6

CS380, YOUNG