Skip to content
Related Articles

Related Articles

Types of Routing

View Discussion
Improve Article
Save Article
Like Article
  • Difficulty Level : Easy
  • Last Updated : 20 Oct, 2021

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. 

There are 3 types of routing: 

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

Advantages – 

  • No routing overhead for router CPU which means a cheaper router can be used to do routing. 
  • It adds security because an only administrator can allow routing to particular networks only. 
  • No bandwidth usage between routers. 

Disadvantage – 

  • For a large network, it is a hectic task for administrators to manually add each route for the network in the routing table on each router. 
  • The administrator should have good knowledge of the topology. If a new administrator comes, then he has to manually add each route so he should have very good knowledge of the routes of the topology. 

Configuration – 


R1 having IP address on s0/0/1, on fa0/0. 
R2 having IP address on s0/0/0, on fa0/0. 
R3 having IP address on s0/1, on s0/0, on fa0/0. 

Now configuring static routes for router R3: 

R3(config)#ip route
R3(config)#ip route

Here, provided the route for network where is its network I’d and and are the next-hop address. 

Now, configuring for R2: 

R2(config)#ip route
R2(config)#ip route
R2(config)#ip route

Similarly for R1: 

R1(config)#ip route
R1(config)#ip route
R1(config)#ip route

2. Default Routing – 
This is the method where the router is configured to send all packets towards 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 the 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

Now configuring default routing for R2: 

R2(config)#ip route

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: 

  1. The routers should have the same dynamic protocol running in order to exchange routes. 
  2. When a router finds a change in the topology then the router advertises it to all other routers. 

Advantages – 

  • Easy to configure. 
  • More effective at selecting the best route to a destination remote network and also for discovering remote network. 

Disadvantage – 

  • Consumes more bandwidth for communicating with other neighbors. 
  • Less secure than static routing. 

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!