Upcoming SlideShare
Loading in …5
×

# Uccn1003 -may10_-_lab_03_-_ip_subnet_and_intro_to_routing

476 views

Published on

0 Comments
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
Your message goes here
• Be the first to comment

• Be the first to like this

No Downloads
Views
Total views
476
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Uccn1003 -may10_-_lab_03_-_ip_subnet_and_intro_to_routing

1. 1. UCCN1003 Data Communications and NetworksLab 03: IP Subnets and Introduction to RoutingInstructions: 1. Read the “Introduction” section for the background 2. Perform all the lab exercises, starting with exercise 1 3. Follow all the steps. 4. Record the results in all italic bold actions (by screen capture or copying). 5. Paste your screen captures on a Word Document and save it. 6. Answer all the questions in italic. 7. Write your answer in the same Word Document. 8. Please follow the sequence of the exercises, and don’t skip any step. 9. Please keep your word document. You will need it for your tests and exam. 10. Please try to understand the exercises and the commands, and don’t just type the commands “blindly” without much studies and understanding.IntroductionIn this lab, you will learn how to form simple subnets. On the basis of these simple subnets, youwill build routes to enable the subnets to communicate among themselves. It is yourresponsibility to study from the exercises on how the static routes work.Exercise 1: Subnets in a Switch with Variable Subnet Mask 1. Open PacketTracer and build a network based on the following figure (with the designated IP address and subnet mask). PC0 = 10.0.1.1/8 PC1 = 10.0.1.2/16 PC2 = 10.0.1.3/24 PC3 = 10.0.2,1/8 PC4 = 10.0.2.2/16 PC5 = 10.0.2.3/24 2. Use PC0 to ping PC3, PC4 and PC5. Which PC can PC0 ping successfully? 3. Use PC1 to ping PC3, PC4 and PC5. Which PC can PC1 ping successfully? 1
2. 2. 4. Use PC2 to ping PC3, PC4 and PC5. Which PC can PC2 ping successfully? 5. Use PC2 to ping PC0, and PC1. Can PC2 ping successfully ping PC0 and PC1? 6. What can you deduce from the result why some pings are successful and others are not? (Hint: check IP subnet rule)Exercise 2: Strange IP Subnet 1. Set up the above network with the IP address and subnet mask, as indicated in the figure. 2. Use PC0, PC1, and PC2 to ping all other PCs. Which PC can be pinged successfully? If we want all the PCs to be able to communicate with each other, we need a router. 2
3. 3. 3. Add in an extra router (model 2811 and add an extra physical module NM-2FE2W in the AIM slot) and connect the router to the switch, as shown in the following diagram. 4. Connect 3 cables from the FastEthernet ports (fa0/0, fa0/1, and fa1/0) of the routers to the switch. 5. Set the IP address of the fa0/0 to 192.168.1.3/25. Set the default gateway IP address of PC0 and PC3 to 192.168.1.3. Remember to type “no shut” for the interface. 6. Set the IP address of the fa0/1 to 10.1.1.3/12. Set the default gateway IP address of PC1 and PC4 to 10.1.1.3. Remember to type “no shut” for the interface. 7. Set the IP address of the fa1/0 to 172.16.1.3/21. Set the default gateway IP address of PC2 and PC5 to 172.16.1.3. Remember to type “no shut” for the interface. 8. Use PC2 to ping all other 5 PCs. PC2 should successfully ping all other PCs. Please refer to IP subnet rules in your lecture notes, and try to understand how this work.Exercise 3: Static Route Configuration 3
4. 4. Choose WIC-2T as your extra module for the serial communication for both routers. Put the module in the left WIC slot. 1. Build the above network with two 2620XM routers. In this exercise, we will learn how to use and configure a serial connection. Add in an extra WIC-2T as shown in the above figure. 2. Connect the two routers with serial DCE wire (Choose the cable with the above icon). Remember to connect to serial0/0 of both routers. 3. Configure the IP addresses and gateway addresses for all PCs. 4. For Router0, refer to the following commands for IP address and static routing.Router>enableRouter#config tRouter(config)#hostname Router0Router0(config)#interface serial0/0Router0(config-if)#ip address 10.1.1.1 255.255.255.0Router0(config-if)#clock rate 128000Router0(config-if)#no shutdownRouter0(config-if)#exitRouter0(config)#ip route 172.16.1.0 255.255.255.0 10.1.1.2 5. For Router1, configure the IP address and static routing.Router>enableRouter#config tRouter(config)#hostname Router1Router1(config)#interface serial0/0Router1(config-if)#ip address 10.1.1.2 255.255.255.0Router1(config-if)#clock rate 128000Router1(config-if)#no shutdownRouter1(config-if)#exitRouter1(config)#ip route 192.168.1.0 255.255.255.0 10.1.1.1 4
5. 5. 6. If you set the static routes and configure the IP addresses correctly, PC0 should be able to ping PC2 and PC3. 7. For serial connection, you need to set clock rate since it is synchronous connection. Otherwise the serial connection won’t work properly. The unit of 128000 is bits per second. You can set the clock rate of the serial line up to 4000000, but just remember to set the same clock rate at both serial ports.Exercise 4: Static Routing for Routers Connected a Switch 1. Build the following network with the IP addresses and gateway addresses stated in the figure. All subnet masks are 255.255.255.0. Keep it as a good habit to change the hostname of the router in CLI to match the name in the figure. Save the network as Lab3- 4-1.pkt. You will need this for exercise 6. 2. Set the static routes by referring to the following commands. Each router requires two static routes to point to other subnets. Please study and understand the commands.For Router0===========Router0(config)#ip route 192.168.2.0 255.255.255.0 200.1.1.2Router0(config)#ip route 192.168.3.0 255.255.255.0 200.1.1.3 5
6. 6. For Router1===========Router1(config)#ip route 192.168.1.0 255.255.255.0 200.1.1.1Router1(config)#ip route 192.168.3.0 255.255.255.0 200.1.1.3For Router2===========Router2(config)#ip route 192.168.2.0 255.255.255.0 200.1.1.2Router2(config)#ip route 192.168.1.0 255.255.255.0 200.1.1.1 3. Use PC0 to ping other PCs in order to test the connectivity of all the subnets. 4. Check the routing tables of each routers by typing:Router0#show ip routeRouter1#show ip routeRouter2#show ip route 5. Save your network as lab3-4-2.pkt. You will continue to expand this network in Exercise 5.Exercise 5: Default Route 6
7. 7. 1. Based on the network in exercise 4, extend the network that includes subnet 192.168.4.0 as shown in figure. Backup the running-config file of Router0 to startup-config (“copy run start”), while you add in an extra module NM-2FE2W to Router0, because you need to on and off Router0. 2. Add in the static routes by referring to the following commands (assume that you have done exercise 4 correctly). Please study and understand the commands on why the static routes have to set in such as way.For Router0===========Router0(config)#ip route 192.168.4.0 255.255.255.0 200.1.2.2For Router1===========Router1(config)#ip route 192.168.4.0 255.255.255.0 200.1.1.1For Router2===========Router2(config)#ip route 192.168.4.0 255.255.255.0 200.1.1.1For Router3===========Router3(config)#ip route 0.0.0.0 0.0.0.0 200.1.2.1 3. Use PC0 to ping other PCs in order to test the connectivity of all the subnets. 4. Check the routing tables of each routers by typing:Router0#show ip routeRouter1#show ip routeRouter2#show ip routeRouter3#show ip route 5. Note: If you don’t use the default route in Router3 (ip route 0.0.0.0 0.0.0.0 next_hop_IP). You have to type the static route commands as shown in the following. In a way, default route save you from typing some “extra” commands. (You do NOT need to type the following commands in Router3.)Router3(config)#ip route 192.168.1.0 255.255.255.0 200.1.2.1Router3(config)#ip route 192.168.2.0 255.255.255.0 200.1.2.1Router3(config)#ip route 192.168.3.0 255.255.255.0 200.1.2.1 7
8. 8. Note on default routeip route 0.0.0.0 0.0.0.0 next_hop_IPA default route, also known as the gateway of last resort, is the network route used by a routerwhen no other known route exists for a given IP packets destination address. All the packets fordestinations not known by the routers routing table are sent to the default route. This routegenerally leads to another router, which treats the packet the same way: If the route is known, thepacket will get forwarded to the known route. If not, the packet is forwarded to the default-routeof that router which generally leads to another router.Exercise 6: Dynamic Routing (Homework) 1. Load the file Lab3-4-1.pkt, and extend the network in Exercise 4 to include Router3, Router4, Router5, Router6, and Router7 with the switches and the PCs. Please configure 8
9. 9. the IP addresses and the gateway IP addresses according to the labels in the figure. Make sure that you have NOT set any static routes in network. 2. Set the dynamic routes by referring to the following commands. Dynamic routes are configured by software, in this case RIP (routing information protocol). Please study them carefully. Basically, each router has to “advertise” the subnets attached to it with the command “network a.b.c.d”, after the command “router rip”.For Router0===========Router0(config)#router ripRouter0(config-router)#network 200.1.1.0Router0(config-router)#network 192.168.1.0Router0(config-router)#network 200.1.2.0Router0(config-router)#exitFor Router1===========Router1(config)#router ripRouter1(config-router)#network 200.1.1.0Router1(config-router)#network 192.168.2.0Router1(config-router)#exitFor Router2===========Router2(config)#router ripRouter2(config-router)#network 200.1.1.0Router2(config-router)#network 192.168.3.0Router2(config-router)#exitFor Router3===========Router3(config)#router ripRouter3(config-router)#network 192.168.4.0Router3(config-router)#network 200.1.2.0Router3(config-router)#exitFor Router4===========Router4(config)#router ripRouter4(config-router)#network 200.1.1.0Router4(config-router)#network 200.2.2.0Router4(config-router)#exitFor Router5===========Router5(config)#router ripRouter5(config-router)#network 200.2.2.0Router5(config-router)#network 192.168.5.0 9
10. 10. Router5(config-router)#network 200.3.3.0Router5(config-router)#exitFor Router6===========Router6(config)#router ripRouter6(config-router)#network 200.2.2.0Router6(config-router)#network 192.168.7.0Router6(config-router)#exitFor Router7===========Router7(config)#router ripRouter7(config-router)#network 200.3.3.0Router7(config-router)#network 192.168.6.0Router7(config-router)#exit 6. After you have key in all the commands, please wait for a while (around 3 minutes) for the RIP software to configure the dynamic routes in all the routers. 7. Use one PC of each subnet to ping other PCs in order to test the connectivity of all the subnets. Troubleshoot the network if necessary. 8. Check the routing tables of each router.Router0#show ip routeRouter1#show ip routeRouter2#show ip routeRouter3#show ip routeRouter4#show ip routeRouter5#show ip routeRouter6#show ip routeRouter7#show ip route 10