Open In App

Types of Routing

Routing is a process that is performed by layer 3 (or network layer) devices in order to deliver the packet by choosing an optimal path from one network to another.

Types of Routing

There are 3 types of routing that are described below.



1. Static Routing

Static routing is a process in which we have to manually add routes to the routing table. 

Advantages

Disadvantage 

Configuration



R1 having IP address 172.16.10.6/30 on s0/0/1, 192.168.20.1/24 on fa0/0. 
R2 having IP address 172.16.10.2/30 on s0/0/0, 192.168.10.1/24 on fa0/0. 
R3 having IP address 172.16.10.5/30 on s0/1, 172.16.10.1/30 on s0/0, 10.10.10.1/24 on fa0/0. 

Now because only static routes for router R3: 

R3(config)#ip route 192.168.10.0 255.255.255.0 172.16.10.2
R3(config)#ip route 192.168.20.0 255.255.255.0 172.16.10.6

Here, provided the route for the 192.168.10.0 network where 192.168.10.0 is its network I’d and 172.16.10.2 and 172.16.10.6 are the next-hop address. 
Now, configuring for R2: 

R2(config)#ip route 192.168.10.0 255.255.255.0 172.16.10.1
R2(config)#ip route 10.10.10.0 255.255.255.0 172.16.10.1
R2(config)#ip route 172.16.10.0 255.255.255.0 172.16.10.1

Similarly for R1: 

R1(config)#ip route 192.168.20.0 255.255.255.0 172.16.10.5
R1(config)#ip route 10.10.10.0 255.255.255.0 172.16.10.5
R1(config)#ip route 172.16.10.0 255.255.255.0 172.16.10.5

2. Default Routing

This is the method where the router is configured to send all packets toward a single router (next hop). It doesn’t matter to which network the packet belongs, it is forwarded out to the router which is configured for default routing. It is generally used with stub routers. A stub router is a router that has only one route to reach all other networks. 
 

Configuration: Using the same topology which we have used for static routing before. 

 

In this topology, R1 and R2 are stub routers so we can configure default routing for both these routers. 

Configuring default routing for R1: 

R1(config)#ip route 0.0.0.0 0.0.0.0  172.16.10.5

Now configuring default routing for R2: 

R2(config)#ip route 0.0.0.0 0.0.0.0  172.16.10.1

3. Dynamic Routing

Dynamic routing makes automatic adjustments of the routes according to the current state of the route in the routing table. Dynamic routing uses protocols to discover network destinations and the routes to reach them. RIP and OSPF are the best examples of dynamic routing protocols. Automatic adjustments will be made to reach the network destination if one route goes down. 

A dynamic protocol has the following features: 

Advantages 

Disadvantage 

Article Tags :