Static routing configuration Lab using two Routers and Having three Networks.
We are going to configure static route between router R1 and R2 in this lab with the help of cisco packet tracer.
In static routing Configuration we have to tell the Routers about Indirectly Connected Networks. Although static routing configuration is so complex when network is too big or number of routers are so much.
It is practically not feasible to implement static routing in big companies where there are so many routers. In that case you can use Dynamic Routing like RIP Routing,EIGRP and OSPF.
Syntax for Static Routing:
Remember: In static Routing we used to tell the routers about the indirectly connected network.
#ip route <indirectly connected network> <netmask> <gateway ip to reach the indirectly connected network>
Static Route Configuration code on Router R1:
R1(config)#ip route 126.96.36.199 255.0.0.0 188.8.131.52
Static Route Configuration code on Router R2:
R2(config)#ip route 184.108.40.206 255.0.0.0 220.127.116.11
Finding Routing Tables on Routers:
R1#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 18.104.22.168/8 is directly connected, FastEthernet0/0
S 22.214.171.124/8 [1/0] via 126.96.36.199
C 188.8.131.52/8 is directly connected, FastEthernet0/1
Learn to Trace the IP :
Tracing route to 184.108.40.206 over a maximum of 30 hops:
1 0 ms 0 ms 0 ms 220.127.116.11
2 1 ms 0 ms 0 ms 18.104.22.168
3 0 ms 0 ms 0 ms 22.214.171.124