You are on page 1of 3

#############################################################################################################################

#########################################################CCNA 640-802########################################################
#############################################################################################################################

###IP Routing - Practicals###

----> Routing Tables :-

R1 R2 R3
________ ________ ________
/ \ S 0/0 (DCE) / \ S 0/1 (DCE) / \
| \/ |---------------/ S 0/0 (DTE)| \/ |---------------/ S 0/0 (DTE)| \/ |
| /\ | 1.1 /---------------| /\ | 2.1 /---------------| /\ |
\________/ 1.2 \________/ 2.2 \________/
|Fa 0/0 |Fa 0/0 |Fa 0/0
| 3.1 | 4.1 | 5.1
| | |
| | |
| | |
S1| S2| S3|
_______|_______ _______|_______ _______|_______
| <--------- | | <--------- | | <--------- |
| ---------> | | ---------> | | ---------> |
|_____________| |_____________| |_____________|
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
___/___ ___\___ ___/___ ___\___ ___/___ ___\___
| 3.2 | | 3.3 | | 4.2 | | 4.3 | | 5.2 | | 5.3 |
|_____| |_____| |_____| |_____| |_____| |_____|
^ ^ ^ ^ ^ ^
PC1 PC2 PC3 PC4 PC5 PC6

Routing tables of routers:


R1:- ( * = Default Entries ) R2:- ( * = Default Entries ) R3:- ( * = Default Entries )
_____________________________________ _____________________________________ _____________________________________
| | | | | | | | | | | |
|Destination| Exit | Next Hop | |Destination| Exit | Next Hop | |Destination| Exit | Next Hop |
| Network | Interface | IP | | Network | Interface | IP | | Network | Interface | IP |
|-----------|-----------|-----------| |-----------|-----------|-----------| |-----------|-----------|-----------|
*|192.168.1.0| Serial0/0 | --- | *|192.168.1.0| Serial0/0 | --- | *|192.168.2.0| Serial0/0 | --- |
|-----------|-----------|-----------| |-----------|-----------|-----------| |-----------|-----------|-----------|
*|192.168.3.0| Fa 0/0 | --- | *|192.168.2.0| Serial0/1 | --- | *|192.168.5.0| Fa 0/0 | --- |
|-----------|-----------|-----------| |-----------|-----------|-----------| |-----------|-----------|-----------|
|192.168.2.0| Serial0/0 |192.168.1.1| *|192.168.4.0| Fa 0/0 | --- | |192.168.1.0| Serial0/0 |192.168.2.1|
|-----------|-----------|-----------| |-----------|-----------|-----------| |-----------|-----------|-----------|
|192.168.4.0| Serial0/0 |192.168.1.1| |192.168.3.0| Serial0/0 |192.168.1.1| |192.168.3.0| Serial0/0 |192.168.2.1|
|-----------|-----------|-----------| |-----------|-----------|-----------| |-----------|-----------|-----------|
|192.168.5.0| Serial0/0 |192.168.1.1| |192.168.5.0| Serial0/1 |192.168.2.2| |192.168.4.0| Serial0/0 |192.168.2.1|
|___________|___________|___________| |___________|___________|___________| |___________|___________|___________|

----> Routing(Practicals) :-

I] Static Routing:
Scenario:
R1 R2 R3
________ ________ ________
/ \ S 0/0 (DCE) / \ S 0/1 (DCE) / \
| \/ |---------------/ S 0/0 (DTE)| \/ |---------------/ S 0/0 (DTE)| \/ |
| /\ | 1.1 /---------------| /\ | 2.1 /---------------| /\ |
\________/ 1.2 \________/ 2.2 \________/
|Fa 0/0 |Fa 0/0 |Fa 0/0
| 3.1 | 4.1 | 5.1
| | |
| | |
| | |
S1| S2| S3|
_______|_______ _______|_______ _______|_______
| <--------- | | <--------- | | <--------- |
| ---------> | | ---------> | | ---------> |
|_____________| |_____________| |_____________|
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
___/___ ___\___ ___/___ ___\___ ___/___ ___\___
| 3.2 | | 3.3 | | 4.2 | | 4.3 | | 5.2 | | 5.3 |
|_____| |_____| |_____| |_____| |_____| |_____|
^ ^ ^ ^ ^ ^
PC1 PC2 PC3 PC4 PC5 PC6

Commands:

R1:-
R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.1.2
R1(config)#ip route 192.168.4.0 255.255.255.0 192.168.1.2
R1(config)#ip route 192.168.5.0 255.255.255.0 192.168.1.2

R2:-
R2(config)#ip route 192.168.3.0 255.255.255.0 192.168.1.1
R2(config)#ip route 192.168.5.0 255.255.255.0 192.168.2.2

R3:-
R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1
R3(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.1
R3(config)#ip route 192.168.4.0 255.255.255.0 192.168.2.1

II] Default Routing: (Best for STUB Network)(STUB Network = Network with one exit interface)

Scenario: (Network of Router R1 & R3 are stub networks)


R1 R2 R3
________ ________ ________
/ \ S 0/0 (DCE) / \ S 0/1 (DCE) / \
| \/ |---------------/ S 0/0 (DTE)| \/ |---------------/ S 0/0 (DTE)| \/ |
| /\ | 1.1 /---------------| /\ | 2.1 /---------------| /\ |
\________/ 1.2 \________/ 2.2 \________/
|Fa 0/0 |Fa 0/0 |Fa 0/0
| 3.1 | 4.1 | 5.1
| | |
| | |
| | |
S1| S2| S3|
_______|_______ _______|_______ _______|_______
| <--------- | | <--------- | | <--------- |
| ---------> | | ---------> | | ---------> |
|_____________| |_____________| |_____________|
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
___/___ ___\___ ___/___ ___\___ ___/___ ___\___
| 3.2 | | 3.3 | | 4.2 | | 4.3 | | 5.2 | | 5.3 |
|_____| |_____| |_____| |_____| |_____| |_____|
^ ^ ^ ^ ^ ^
PC1 PC2 PC3 PC4 PC5 PC6

Commands:

R1:-
R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2

R2:-
R2(config)#ip route 192.168.3.0 255.255.255.0 192.168.1.1
R2(config)#ip route 192.168.5.0 255.255.255.0 192.168.2.2

R3:-
R3(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.1
III] Dynamic Routing:

A] RIP Version 1 (Routing Information Protocol):


Scenario:

R1 R2 R3
________ ________ ________
/ \ S 0/0 (DCE) / \ S 0/1 (DCE) / \
| \/ |---------------/ S 0/0 (DTE)| \/ |---------------/ S 0/0 (DTE)| \/ |
| /\ | 1.1 /---------------| /\ | 2.1 /---------------| /\ |
\________/ 1.2 \________/ 2.2 \________/
|Fa 0/0 |Fa 0/0 |Fa 0/0
| 3.1 | 4.1 | 5.1
| | |
| | |
| | |
S1| S2| S3|
_______|_______ _______|_______ _______|_______
| <--------- | | <--------- | | <--------- |
| ---------> | | ---------> | | ---------> |
|_____________| |_____________| |_____________|
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
___/___ ___\___ ___/___ ___\___ ___/___ ___\___
| 3.2 | | 3.3 | | 4.2 | | 4.3 | | 5.2 | | 5.3 |
|_____| |_____| |_____| |_____| |_____| |_____|
^ ^ ^ ^ ^ ^
PC1 PC2 PC3 PC4 PC5 PC6

Commands:
R1:-
R1(config)#router rip
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.3.0
R1(config-router)#exit
R2:-
R2(config)#router rip
R2(config-router)#network 192.168.1.0
R2(config-router)#network 192.168.2.0
R2(config-router)#network 192.168.4.0
R2(config-router)#exit

R3:-
R3(config)#router rip
R3(config-router)#network 192.168.2.0
R3(config-router)#network 192.168.5.0
R3(config-router)#exit

B] RIP Version 2 (Routing Information Protocol):


Scenario:
R1 R2 R3
________ ________ ________
/ \ S 0/0 (DCE) / \ S 0/1 (DCE) / \
| \/ |---------------/ S 0/0 (DTE)| \/ |---------------/ S 0/0 (DTE)| \/ |
| /\ | /---------------| /\ | /---------------| /\ |
\________/ \________/ \________/
|Fa 0/0 |Fa 0/0 |Fa 0/0
| | |
| | |
| | |
| | |
S1| S2| S3|
_______|_______ _______|_______ _______|_______
| <--------- | | <--------- | | <--------- |
| ---------> | | ---------> | | ---------> |
|_____________| |_____________| |_____________|
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
___/___ ___\___ ___/___ ___\___ ___/___ ___\___
| | | | | | | | | | | |
|_____| |_____| |_____| |_____| |_____| |_____|
^ ^ ^ ^ ^ ^
PC1 PC2 PC3 PC4 PC5 PC6

Commands:
R1:-
R1(config)#router rip
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.3.0
R1(config-router)#version 2
R1(config-router)#exit
R2:-
R2(config)#router rip
R2(config-router)#network 192.168.1.0
R2(config-router)#network 192.168.2.0
R2(config-router)#network 192.168.4.0
R2(config-router)#version 2
R2(config-router)#exit

R3:-
R3(config)#router rip
R3(config-router)#network 192.168.2.0
R3(config-router)#network 192.168.5.0
R3(config-router)#version 2
R3(config-router)#exit

C] IGRP (Interior Gateway Routing Protocol):


Scenario:
R1 R2 R3
________ ________ ________
/ \ S 0/0 (DCE) / \ S 0/1 (DCE) / \
| \/ |---------------/ S 0/0 (DTE)| \/ |---------------/ S 0/0 (DTE)| \/ |
| /\ | 1.1 /---------------| /\ | 2.1 /---------------| /\ |
\________/ 1.2 \________/ 2.2 \________/
|Fa 0/0 |Fa 0/0 |Fa 0/0
| 3.1 | 4.1 | 5.1
| | |
| | |
| | |
S1| S2| S3|
_______|_______ _______|_______ _______|_______
| <--------- | | <--------- | | <--------- |
| ---------> | | ---------> | | ---------> |
|_____________| |_____________| |_____________|
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
___/___ ___\___ ___/___ ___\___ ___/___ ___\___
| 3.2 | | 3.3 | | 4.2 | | 4.3 | | 5.2 | | 5.3 |
|_____| |_____| |_____| |_____| |_____| |_____|
^ ^ ^ ^ ^ ^
PC1 PC2 PC3 PC4 PC5 PC6

Commands:
R1:-
R1(config)#router igrp 10
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.3.0
R1(config-router)#exit

R2:-
R2(config)#router igrp 10
R2(config-router)#network 192.168.1.0
R2(config-router)#network 192.168.2.0
R2(config-router)#network 192.168.4.0
R2(config-router)#exit

R3:-
R3(config)#router igrp 10
R3(config-router)#network 192.168.2.0
R3(config-router)#network 192.168.5.0
R3(config-router)#exit

D] EIGRP (Enhanced Interior Gateway Routing Protocol):


Scenario:
R1 R2 R3
________ ________ ________
/ \ S 0/0 (DCE) / \ S 0/1 (DCE) / \
| \/ |---------------/ S 0/0 (DTE)| \/ |---------------/ S 0/0 (DTE)| \/ |
| /\ | 1.1 /---------------| /\ | 2.1 /---------------| /\ |
\________/ 1.2 \________/ 2.2 \________/
|Fa 0/0 |Fa 0/0 |Fa 0/0
| 3.1 | 4.1 | 5.1
| | |
| | |
| | |
S1| S2| S3|
_______|_______ _______|_______ _______|_______
| <--------- | | <--------- | | <--------- |
| ---------> | | ---------> | | ---------> |
|_____________| |_____________| |_____________|
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
___/___ ___\___ ___/___ ___\___ ___/___ ___\___
| 3.2 | | 3.3 | | 4.2 | | 4.3 | | 5.2 | | 5.3 |
|_____| |_____| |_____| |_____| |_____| |_____|
^ ^ ^ ^ ^ ^
PC1 PC2 PC3 PC4 PC5 PC6

Commands:

R1:-
R1(config)#router eigrp 100
_
| R1(config-router)#network 192.168.1.0
| R1(config-router)#network 192.168.3.0
| OR
|_ R1(config-router)#network 192.168.0.0 0.0.255.255
R1(config-router)#exit

R2:-

R2(config)#router eigrp 100


_
| R2(config-router)#network 192.168.1.0
| R2(config-router)#network 192.168.2.0
| R2(config-router)#network 192.168.4.0
| OR
|_ R2(config-router)#network 192.168.0.0 0.0.255.255
R2(config-router)#exit

R3:-

R3(config)#router eigrp 100


_
| R3(config-router)#network 192.168.2.0
| R3(config-router)#network 192.168.5.0
| OR
|_ R3(config-router)#network 192.168.0.0 0.0.255.255
R3(config-router)#exit

E] OSPF (Open Shortest Path First):


Scenario:
R1 R2 R3
________ ________ ________
/ \ S 0/0 (DCE) / \ S 0/1 (DCE) / \
| \/ |---------------/ S 0/0 (DTE)| \/ |---------------/ S 0/0 (DTE)| \/ |
| /\ | 1.1 /---------------| /\ | 2.1 /---------------| /\ |
\________/ 1.2 \________/ 2.2 \________/
|Fa 0/0 |Fa 0/0 |Fa 0/0
| 3.1 | 4.1 | 5.1
| | |
| | |
| | |
S1| S2| S3|
_______|_______ _______|_______ _______|_______
| <--------- | | <--------- | | <--------- |
| ---------> | | ---------> | | ---------> |
|_____________| |_____________| |_____________|
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
/ \ / \ / \
___/___ ___\___ ___/___ ___\___ ___/___ ___\___
| 3.2 | | 3.3 | | 4.2 | | 4.3 | | 5.2 | | 5.3 |
|_____| |_____| |_____| |_____| |_____| |_____|
^ ^ ^ ^ ^ ^
PC1 PC2 PC3 PC4 PC5 PC6

Commands:

R1:-
R1(config)#router ospf 100
_
| R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
| R1(config-router)#network 192.168.3.0 0.0.0.255 area 0
| OR
|_ R1(config-router)#network 192.168.0.0 0.0.255.255 0.0.0.255 area 0

R1(config-router)#exit

R2:-
R2(config)#router ospf 1500
_
| R2(config-router)#network 192.168.1.0 0.0.0.255 area 0
| R2(config-router)#network 192.168.2.0 0.0.0.255 area 0
| R2(config-router)#network 192.168.4.0 0.0.0.255 area 0
| OR
|_ R2(config-router)#network 192.168.0.0 0.0.255.255 0.0.0.255 area 0

R2(config-router)#exit

R3:-
R3(config)#router ospf 200
_
| R3(config-router)#network 192.168.2.0 0.0.0.255 area 0
| R3(config-router)#network 192.168.5.0 0.0.0.255 area 0
| OR
|_ R3(config-router)#network 192.168.0.0 0.0.255.255 0.0.0.255 area 0

R3(config-router)#exit

#############################################################################################################################
#####################################################By - Muhammed Anas######################################################
#############################################################################################################################

You might also like