Routers know how to reach the networks they are connected to. However, they do not know how to reach remote networks that not connected. But, they can learn how to access remote networks to which they are not connected by using one of the following routing protocols.
1. Static routing
2. Default routing
3. Dynamic routing
a) RIP (international standard)
1) RIPv1 2) RIPv2
b) IGRP (cisco-based protocol, but not supported by cisco anymore)
c) EIGRP (cisco-based)
d) OSPF (international standard)
e) Is-Is (international standard)
Let’s start with the static routing protocol first.
- The best path is configured manually by the administrator.
- The mandatory need for the destination network ID
- It is secure and fasts
- Everything is manually
- Used for a small network
- Network changes affect the whole network
In static routing, all networks have to enter manually in the routing table. The static routing manager is responsible for manually entering the updates on all routers. However, the protocols of dynamic routing routers communicate with each other by sharing all the information on the network. When dynamic routing protocols are used, all updates are automatically received. Now let me show you how to configure the static routing protocol.
Let’s configure the belove shape with static routing on the example above, and then veryfy them with show ip routing command.
R1 Static routing configuration
R1(config)#ip route 126.96.36.199 255.255.255.0 10.0.0.2
R1(config)#ip route 192.168.2.0 255.255.255.0 10.0.0.2
R1(config)#ip route 192.168.3.0 255.255.255.0 10.0.0.2
R2 Static routing configuration
R2(config)#ip route 192.168.1.0 255.255.255.0 10.0.0.1
R2(config)#ip route 192.168.3.0 255.255.255.0 188.8.131.52
R3 Static routing configuration
R3(config)#ip route 192.168.1.0 255.255.255.0 184.108.40.206
R3(config)#ip route 192.168.2.0 255.255.255.0 220.127.116.11
R3(config)#ip route 10.0.0.0 255.255.255.0 18.104.22.168
Now let’s verify the configuration that we configured above.
As you see in the above picture, It is indicated by the letter c in front of the networks directly connected to the router. Networks configured with static routing are indicated by the letter s in front of them.
I hope it was a useful article.