Static route is really helpful to understand, How routing works!
So, before start Dynamic Routing we must understand and learn how static route works!
Lets start.....................
Here IP of Serial 2/0 and Serial 3/0 are 192.168.2.1 and 192.168.2.2.
R1
On R1, we are directly connected with 192.168.1.0 and 192.168.2.0. But to connect with 192.168.3.0, we have to use following command write down with next hop IP.
Now check the configuration with "Show IP Route"
R2
On R2, we are directly connected with 192.168.2.0 and 192.168.3.0. But to connect with 192.168.1.0, we have to use following command write down with next hop IP.
So, before start Dynamic Routing we must understand and learn how static route works!
Lets start.....................
Here IP of Serial 2/0 and Serial 3/0 are 192.168.2.1 and 192.168.2.2.
R1
On R1, we are directly connected with 192.168.1.0 and 192.168.2.0. But to connect with 192.168.3.0, we have to use following command write down with next hop IP.
Router(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2
Router(config)#^Z
Now check the configuration with "Show IP Route"
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, Serial2/0
S 192.168.3.0/24 [1/0] via 192.168.2.2
R2
On R2, we are directly connected with 192.168.2.0 and 192.168.3.0. But to connect with 192.168.1.0, we have to use following command write down with next hop IP.
Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1
Router(config)#^Z
Now check the configuration with "Show IP Route"
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
S 192.168.1.0/24 [1/0] via 192.168.2.1
C 192.168.2.0/24 is directly connected, Serial3/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
In the results of "Show IP Route" you can see "S" in front of IP which is configured by us on each router.
When we configure Static Route, we write down next hop address which is really important. Here our next hop address are 192.168.2.1 and 192.168.2.2.
This kind of Static Route could be useful in small network only but in big network Static Route is not useful, thats why we are using Dynamic Routing.
Here is a video which explain everything about Static Route in very easy way.
Here is a video which explain everything about Static Route in very easy way.
This video is not prepared by me but I get this from my friend.

1 comment:
i have completed my Telecommunication Engineering and now i am going to doing CCNA Course. Thanks for sharing such nice information.
Buy Term Paper
Post a Comment