0% found this document useful (0 votes)
4 views

Slides Set 4

The document explains different types of routing protocols, including dynamic, static, and default routing. It distinguishes between distance vector protocols like RIP and link state protocols like OSPF, highlighting their operational differences and advantages. Additionally, it provides configuration examples for routers to implement static and default routing.

Uploaded by

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

Slides Set 4

The document explains different types of routing protocols, including dynamic, static, and default routing. It distinguishes between distance vector protocols like RIP and link state protocols like OSPF, highlighting their operational differences and advantages. Additionally, it provides configuration examples for routers to implement static and default routing.

Uploaded by

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

Routing

DYNAMIC
STATIC
DEFAULT
Distance Vector vs. Link State Routing Protocol
Distance Vector Routing protocols determine the best path to a given destination based on distance. The distance metric is
usually measured in hops. Directly connected neighbors receive the entire routing table sent by distance vector protocols.
RIP (Routing Information Protocol) and IGRP (Internal Gateway Routing Protocol) are two examples of distance vector
protocols. Issue Count to Infinity Problem
Link state determine the best path based on Speed or Cost. Shortest-path-first protocols are another name for Link State
protocols. Protocols that use link state routing have a complete picture of the network topology. As a result, they have a
better understanding of the entire network than any distance vector protocol. All routers in the network receive information
about directly connected links via link state protocols. OSPF (Open Shortest Path First) and IS-IS (Intermediate System to
Intermediate System) are two examples of Link State Routing Protocols. No Count to infinity issue
Routing

 Routing refers to taking the packet from one device and sending it
through the network to another device on a different network

 Dynamic Routing
 A protocol running on 1st router communicate with the same protocol on 2nd
router to complete their routing table.

 Static Routing
 Route is manually defined by Administrator

 Default Routing
 All traffic is send to selected route defined by Administrator
Dynamic Routing
RIP (DISTANCE VECTOR ROUTING)
OSPF (LINK STATE ROUTING)
Dynamic Routing
RIP

 Routing Information Protocol (RIP) is a dynamic routing protocol which uses


hop count as a routing metric to find the best path between the source
and the destination network.

 It is a distance vector routing protocol which has Administrative Distance


AD value 120. Router select path having minimum AD Value
Router 1
R1>enable
R1#configure terminal
R1(config)#int fa 0/0
R1(config-if)#ip add 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit

R1(config)#int serial 1/0


R1(config-if)#ip add 20.0.0.1 255.0.0.0
R1(config-if)#no sh
R1(config-if)#exit
Router 1
Router 1
Router 2
R1>enable
R1#configure terminal
R1(config)#int fa 0/0
R1(config-if)#ip add 30.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit

R1(config)#int serial 1/0


R1(config-if)#ip add 20.0.0.2 255.0.0.0
R1(config-if)#no sh
R1(config-if)#exit
Router 2
Router 2
Router 1
Routing Protol

Routing Table Router 1 Routing Table Router 2


C 10.0.0.0 fa0/0 C 30.0.0.0 fa0/0
C 20.0.0.0 s1/0 C 20.0.0.0 s1/0

We run Routing Protocol on both router and they will send their routes to other
router, to converge the network

router rip
network x
Running Routing Protocol
Verification
Static Routing
Static Routing
Configuration

 R1> enable
 R1# conf t
 R1(config)# ip route 30.0.0.0 255.0.0.0 20.0.0.2
Configuration

 R2> enable
 R2# conf t
 R2(config)# ip route 10.0.0.0 255.0.0.0 20.0.0.1
Default Routing
Default Routing
Configuration
 R1> enable
 R1# conf t
 R1(config)# ip route 0.0.0.0 0.0.0.0 20.0.0.2
Configuration

 R2> enable
 R2# conf t
 R2(config)# ip route 0.0.0.0 0.0.0.0 20.0.0.1

You might also like