0% found this document useful (0 votes)
66 views11 pages

4.10 - Lab - Manual - 10 - CN - Static and Dynamic Routs

Uploaded by

Ahmad Abduhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views11 pages

4.10 - Lab - Manual - 10 - CN - Static and Dynamic Routs

Uploaded by

Ahmad Abduhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Lab Manual / CN-5th/ BSSE / SE Dept.

/ UMT Lahore

Lab Manual # 10
In this lab we will perform some more network tasks like.
1. Implementation of static routing using Packet tracer
2. Implementation of Dynamic routing by RIP using Packet tracer

Task-1:
 Implementation of static routing between all networks connected with Lahore and
Karachi routers using Packet tracer. So that all network can communicate with each
other.

Scenario to implement:

According to scenario given above


First assign IP address to all computers statically connected with both (Lahore
& Karachi) routers . Also give Default gateways to these PC the ip addresses of
relevant routers’ s ethernet interface. i.e gate way 10.0.0.10 to 10 class network
and 192.168.30.10 to 192 class network pcs.

P a g e 1 | 11
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

Configuration on Lahore Router CLI:


Step01:
Router> enable
Router # config terminal
Router (Config ) #hostname lahore
lahore( config) #interface fastethernet 0/0
lahore( config-if ) # ip address 10.0.0.10 255.0.0.0
lahore( config-if ) # no shut down
exit
Step02:
lahore( config) #interface serial 2/0
lahore( config-if ) # ip address 172.16.0.1 255.255.0.0
lahore( config-if ) # clock rate 64000
lahore( config-if ) # no shutdown
Ctr+ z
lahore > write

Do the same configuration on KARACHI side router.

Configuration on Karachi Router CLI:


Step01:
Router> enable
Router # config terminal
Router (Config ) #hostname karachi
Karachi( config) #interface fastethernet 0/0
Karachi ( config-if ) # ip address 192.168.30.10 255.255.255.0
Karachi ( config-if ) # no shut down
exit
Step02:
Karachi ( config) #interface serial 2/0
Karachi ( config-if ) # ip address 172.16.0.2 255.255.0.0
Karachi ( config-if ) # no shutdown
Ctr+ z

P a g e 2 | 11
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

Karachi > write

P a g e 3 | 11
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

!!!!
Ok Building configurations !!!!

To Connect Lahore side LAN network with Karachi side LAN Network.

On Lahore side router go to # mode and type

Lahore # show ip route


It will show detail of directly connected networks like
Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, FastEthernet0/0


C 172.16.0.0/16 is directly connected, Serial 0/2
S 192.168.30.0/24 [1/0] via 172.16.0.2

To give route of 192 Network to Lahore router (static way)

Lahore (config) # ip route 192.168.30.0 255.255.255.0 172.16.0.2

Lahore # show ip route

To give route of 10 Class Network to Karachi router (static way)

Karachi (config) # ip route 10.0.0.0 255.0.0.0 172.16.0.1

Karachi # show ip route

// It will show
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 10.0.0.0/8 is directly connected, FastEthernet0/0


P a g e 4 | 11
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

C 172.16.0.0/16 is directly connected, Serial 0/2


S 192.168.30.0/24 [1/0] via 172.16.0.2
S= detail of statically connected networks

// Now both classes of networks can communicate / ping with each other.

Task-2: Implementation of Dynamic routing by RIP V1 using Packet


tracer
Scenario to implement:

On Lahore side router


Step01
lahore(config)#no ip route 192.168.30.0 255.255.255.0 172.16.0.2

%No matching route to delete


lahore(config)#exit
lahore#
%SYS-5-CONFIG_I: Configured from console by console

Lahore # 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 10.0.0.0/8 is directly connected, FastEthernet0/0
C 172.16.0.0/16 is directly connected, Serial2/0

Step02:
Lahore #config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Lahore (config)#router rip
Lahore (config-router)#network 172.16.0.0
Lahore (config-router)#network 10.0.0.0
Lahore (config-router)#^Z
lahore#
%SYS-5-CONFIG_I: Configured from console by console
write
Building configuration...
P a g e 5 | 11
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

[OK]

P a g e 6 | 11
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

On Karachi side router


karachi>enable
karachi#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
S 10.0.0.0/8 [1/0] via 172.16.0.1
C 172.16.0.0/16 is directly connected, Serial2/0
C 192.168.30.0/24 is directly connected, FastEthernet0/0

Step-01

Karachi # configure terminal


Enter configuration commands, one per line. End with CNTL/Z.

Karachi (config) #no ip route 10.0.0.0 255.0.0.0 172.16.0.1


Karachi (config)#exit

Karachi # 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 172.16.0.0/16 is directly connected, Serial2/0


C 192.168.30.0/24 is directly connected, FastEthernet0/0

Step-02

Karachi # configure terminal


Enter configuration commands, one per line. End with CNTL/Z.
Karachi (config) #router rip
Karachi (config-router)#network 172.16.0.0
Karachi (config-router)#network 192.168.0.0
P a g e 7 | 11
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

Karachi (config-router)#^Z

P a g e 8 | 11
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

karachi#
%SYS-5-CONFIG_I: Configured from console by console
write
Building configuration...
[OK]

Step3:
Karachi # 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

R 10.0.0.0/8 [120/1] via 172.16.0.1, 00:00:17, Serial2/0


C 172.16.0.0/16 is directly connected, Serial2/0
C 192.168.30.0/24 is directly connected, FastEthernet0/0

Task-3:
Dynamic Routing: RIP v2:
Routing Information Protocol Version 2. Both versions of RIP, RIPv1 and RIPv2,
are Distance Vector Routing Protocols that use router hop counts as their metrics.
They support a maximum hop count value of 15. Any router farther than 15 hops
away is considered to be unreachable. Ad value for RIPv2 is same as RIP v1,
which is 120.

Difference between RIPv1 and RIPv2?


 RIP v1: In RIPv1 we broadcast, send and receive.
 RIP v2: IN RIPv2 we multicasting, only receive.
What is ad value?
Administrative distance (AD) is a number of arbitrary unit assigned to dynamic
routes, static routes and directly-connected routes, lesser then Ad value better and
trustful will be the path / router.
How to make dynamic routing using RIPv2?
Consider the other IP configuration of computers and networks. In this section,
we will only discuss about the configuration of routing RIPv2 with the help of
commands. In RIPv2 you have to configure network which are directly connected
to router as in RIPv1, subnet mask is not compulsory.

P a g e 9 | 11
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

Commands:
- Open router CLI (Command line interface)
- Show ip route (Show the IP of routers that you have assigned them,
this should be written on second mode i.e “# mode”)
- Configure terminal (Third mode)
- No router rip (Clear if previous router configuration e.g. you use
RIPv1)
- Router rip (To Configure by RIP)
- Version 2 (Using Version 2)
- Use these commands and configure every routers e.g. LHR, KRI.

- LHR# configure terminal


- LHR(config)# router rip
- LHR(config-router)# version 2
- LHR (config-router)# network 10.0.0.0
- LHR config-router)# network 172.16.0.0
- LHR(config-router)# exit
- Ctr+ Z
- LHR # write

Configuration on Krachi Router

- KRI( configure terminal


- KRI(config)# router rip
- KRI(config-router)# version 2
- KRI(config-router)# network 192.168.0.0
- KRI(config-router)# network 172.16.0.0
- KRI(config-router)# exit

Ctr+ Z
KRI # write

END OF LAB-10

P a g e 10 | 11
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

Lab Task 1:
Suppose you have a network with three routers, each with two interfaces: Router A with Router B,
Router B with Router C and vice versa. You want to configure static routing on each router so that
hosts on the A network can communicate with hosts on the B network and hosts on the C network
can communicate with C network and vice versa.

1. What routes would you need to configure on Router A to enable communication between the
two networks?
2. What routes would you need to configure on Router B to enable communication between the
two networks?
3. What routes would you need to configure on Router C to enable communication between the
two networks?

Lab Task 2:
Suppose you have a network with four routers, each with two interfaces, and each connected in a
line: Router A, Router B, Router C and Router D. You want to configure static routing on each
router so that two adjacent hosts on the network can communicate with each other, and vice versa.
What static routes would you need to configure on each router?

Dynamic Routing
Lab Task 1:
1. Draw a network diagram by using two routers (Lahore, Islamabad, Karachi routers) and each
router connects with two systems with the help of switches.
2. Implementation of Dynamic routing by RIP V1 using Packet tracer between all networks
connected with Lahore, Islamabad and Karachi routers using Packet tracer. So that all network can
communicate with each other.

P a g e 11 | 11

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy