Networking Concepts: Static Routing Protocol

Static Routing is a process in which a network admin will configure the other network’s information manually. Since we already know about different routing protocols, let’s learn about Static Routing in details.

Why use Static Routing?

AD Value of Static Routing is 1 that means it is most reliable protocol available for routing after Directly Connected networks (AD=0). It is also easy to implement in comparison to other routing protocols but only in a small network. If network is large, it is hard to configure and manage if Static Routing is running. We will check that in configuration part.

Configuring Static Routes

There are a few concepts that one should keep in mind while configuring a static route. Concepts like number of Indirectly connected network, Next hop address, exit interface and use of ad value. To configure first we have to assign IP addresses to router interfaces and hosts. After that, we will go to configuration mode of router ans use ip route <destination network> <destination subnet mask> <next hop address or exit interface>.

To understand it better, lets take a topology for example,

Using Static routing in a network

In this topology, there are three networks (10, 11 and 12.0.0.0 /24). Now, by default router only knows directly connected networks so Router 1 only knows 10.0.0.0 and 11.0.0.0. It has no idea about 12.0.0.0 and same with Router 2. It only knows 11.0.0.0 and 12.0.0.0. If we want to send a packet from PC-1 to PC-2, it is not possible because when packet reaches to Router 1, it will check it’s routing table. Since there is no information on how to reach to 12.0.0.0 (PC 2), it will drop the packet.

To avoid this we use Routing. To configure Static Routing, we will come to configuration mode of Router 1 and use ip route <destination network> <destination subnet mask> <next hop address or exit interface>. In our case it will be ip route 12.0.0.0 255.255.255.0 11.0.0.2.Here 11.0.0.2 is IP address of se 2/0 interface of Router 2. It is called next hop address. We can also use ip route 12.0.0.0 255.255.255.0 se 2/0. Here se 2/0 is interface number of Router 1. It is called exit interface (From which interface packet is going out). There are some difference in exit interface and next hop address.

That is only 1 command because there is only one Indirectly Connected network. If there are more than one network, we have to give information of all the indirectly connected network on each router. Watch the following Video for detailed information.

Path Selection in Static Routing

If a router has more than one path to reach to the destination, it is its’ responsibility to select the best path. Router will select the path with better AD value and by better I mean less AD. We can do path selection in Static Routing with the help of next hope address or exit interface. Consider the following topology for example,

Path Selection with the help of Static Routing

We are at PC 1 and want to send some data to PC 2. We have 2 paths for that, either via 11.0.0.0 or via 13.0.0.0. Now when configuring static routing, if we use 11.0.0.2 as next hop address packet will be forwarded via upper path and if we use 13.0.0.2, packet will be forwarded via lower path. Similarly if we are using exit interface, if we use se 2/0, packet will be sent via upper path and on configuring se 3/0, packet will be forwarded via lower path. That is how we can configure path selection in static routing.

Using of AD value

We can also use ip route <destination network> <destination subnet mask> <next hop address or exit interface> <AD Value> for configuring AD Value for specific route. Changing AD from 1 to >1 will make that path less reliable in compare to other. Take a look,

AD Value in Static Routing

Here we have multiple paths, if we want use command ip route 12.0.0.0 255.255.255.0 11.0.0.2 10 at router 1, upper path will no longer be the best path from PC-1 to PC-2. It will be used as backup instead. If lower path fails then only upper path will be considered. Changing AD Value to 255 will make the path completely unreliable and that path will not be installed in Routing Table… ever. So use AD carefully.

For more information on Static Routing, use this link. Other protocols will be posted soon.

About The Author

Network Engineer/ Cisco Network Trainer at I-Medita Learning Solutions Pvt. Ltd.
Surendra Singh
CCIE Routing and Switching Written | Trainer at I-Medita
Mr. Surendra has 3 years of hands on Experience on Cisco Products. He has teaching and training expertise in CCNA Routing and Switching, CCNA Security and CCNP Routing and Switching. He is helping networking aspirants and professionals from last 3 years to grow with networking technologies. He is working as a Network Trainer at I-Medita. He has also trained many colleges and universities like Delhi University, IP University, ITM University etc on Cisco Technology.
1. Ability to create new network design and ability to document the network requirements and suggest recommendations based on the requirements to the management.
2. Training students using Classroom Training and Offline Training Support;
3. Develop Study Material in form of Practical Workbooks, PPT Slides, PDFs, Video Recordings and other relevant forms;
4. Providing network administration and support;
5. Maintaining existing software and hardware and upgrading any that have become obsolete;
6. Promptly report to management about the Network Performance reports, Current status of the Network on time.
7. Co-ordinate, configure and Install network configurations, software‘s etc.