In this tutorial let me show you how to configure static routing procol and what kind of routing protocols first we want to know what kind of routing protocols
Routing protocols (Dynamic routing & static routing )
For Dynamic routing it contains (Ripv1 , Ripv2 , OSPF , IGRP , EIGRP , BGB)
But in this tutorial I will talking about Static Routing and how to configure it
First please look at this picture and tell me how many network in this picture ?
Sure you will answer me it has be found 6 networks
It means all routers can send and receive information between each other do you think that ?! Ok lets try to ping between routers to see if I can send and receive data between all this networks or not
Ok lets try to ping between office_1 and office_2
Success!
Lets try to ping between office_2 and HR
Success!
Lets try to ping between HR and technical_sup
Success!
Lets try to ping between technical_sup and secretery then ceo routers
Success!
Lets try to ping between secretery and ceo
Success!
But if we try to ping between remote router it will be not able to ping between each other like for example try to ping between office_1 and HR router it will not be able to ping don't believe me ? Ok lets try it
Failed!
So why packets not sent for this routers ? Because office_1 go to routing table and look at it and didn't find any address called 192.168.16.2 it mean it can't reach to this address and sure packets will be dropped and will be unreachable to the destination .. so how can we fix this problem ? Sure we can use static routing or we can use routing protocols or we can use based policy routing ..
But in this tutorial we will talking about static routing protocol and how to ..
What about if we want to tell router office_1 go to talk with HR or technical_sup router or ceo router or secretery ? We should tell it exit from interface (blabla) or go to from (blabla) ip ddress ok in the static routing protocol we should now something about it ..
If office_1 want to send packets or talking with HR router it should put ip route then destination ip and subnet mask then you can type (exit interface or you can type next hop ip )
Notes :
Hop mean Router .
Let me give you an example about that but please I want to tell you about office_1 it has been called stub network .. stub network mean one way to the destination it mean it not has been found any way to the destination without this interface so
If office_1 router want to talk to technical_sup it can talking with by two ways :
By give it ip route then (router ip) then next hop ip
Or you can type ip route then (router ip) then exit interface
Practical :
Router office_1 is astub network
So we should type default route it will be configure like that : ip route 0.0.0.0 0.0.0.0 (next hop) now go to office_1 router and type :
Ip route 0.0.0.0 0.0.0.0 192.168.15.2 (this is next hop way)
Or
Ip route 0.0.0.0 0.0.0.0 e0/0 (this is exit interface way)
office_2 have astub network why ? Because one way to the destination .
ok now go to office_2 then type
ip route 0.0.0.0 0.0.0.0 192.168.16.2
then go to HR router and type ip route 192.168.15.0 255.255.255.0 s0/0
and ip route 192.168.17.0 255.255.255.0 s0/1
and try to ping between office_1 and HR routers it will be success!
now go to technical_sup router and type ip route 192.168.16.0 255.255.255.0 s0/0
for connecting between office_2 router and technical_sup router .. and type on technical_sup router ip route 192.168.15.0 255.255.255.0 s0/0 for connecting between office_1 and technical_sup router .. and type on technical_sup router ip route 192.168.20.0 255.255.255.0 s0/2 .. and type on technical_sup router default route by type ip route 0.0.0.0 0.0.0.0 s0/0 (because its astub network) .
now go to secretery router and type ip route 192.168.19.0 255.255.255.0 e1/0 .. and type ip route 192.168.17.0 255.255.255.0 s0/0 .. and type ip route 192.168.16.0 255.255.255.0 s0/0 .. and type ip route 192.168.15.0 255.255.255.0 s0/0 ..
now go to ceo router and type ip route 192.168.18.0 255.255.255.0 e1/0 .. and type 192.168.17.0 255.255.255.0 s0/0 .. and type 192.168.16.0 255.255.255.0 s0/0 .. and type 192.168.15.0 255.255.255.0 s0/0 ..
Now try to ping all routers between eachother and now you can send and recieve packets between each other .
Notes :
please check your routing table by type (ip route) to see changes .