How to Configure Static Routing Protocol in Cisco Router

To Configure Static Routing Protocol Network administrator Manually assign IP address to each router. Network Administrator should have knowledge about their Network each nodes and IP addresses. 

Related PostWhat is Static Routing

Configure Static Routing Protocol

Syntax 
Router(config)#ip route <Destination network> <subnetmask> <Next hope IP address>


Configuration of Router 1

 
Router>

Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#

Assign IP address to interfaces

R1(config)#int s0/0/0
R1(config-if)#ip add 10.1.1.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#no shut
R1(config-if)#int fa0/0
R1(config-if)#int 172.16.1.1 255.255.0.0
R1(config-if)#ip add 172.16.1.1 255.255.0.0
R1(config-if)#no shut

R1(config-if)#exit
R1(config)#ip route 20.0.0.0 255.0.0.0 10.1.1.2
R1(config)#ip route 192.168.1.0 255.255.255.0 10.1.1.2

R2#wr
Building configuration…
[OK
Show routing Information of Router 1

R1#sh 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    10.0.0.0/8 is directly connected, Serial0/0/0

S    20.0.0.0/8 [1/0] via 10.1.1.2
C    172.16.0.0/16 is directly connected, FastEthernet0/0
S    192.168.1.0/24 [1/0] via 10.1.1.2

Configuration of Router 2

Router>
Router>en
Router#conf t
Router(config)#hostname R2

Assign IP address to interfaces

R2(config-if)#int s0/1/0

R2(config-if)#ip add 10.1.1.2 255.0.0.0
R2(config-if)#no shut
R2(config)#int s0/1/1
R2(config-if)#ip add 20.1.1.1 255.0.0.0
R2(config-if)#clock rate 64000
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#ip route 192.168.1.0 255.255.255.0 20.1.1.2
R2(config)#ip route 172.16.0.0 255.255.0.0 10.1.1.1
R2(config)#
R2(config)#exit
R2#wr

Building configuration…
[OK
Show routing Information of Router 2

R2#sh 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    10.0.0.0/8 is directly connected, Serial0/1/0

C    20.0.0.0/8 is directly connected, Serial0/1/1
S    172.16.0.0/16 [1/0] via 10.1.1.1
S    192.168.1.0/24 [1/0] via 20.1.1.2
R2#

Configuration of Router 3

Router>en
Router#conf t
Router(config)#hostname R3

Assign IP address to interfaces

R3(config)#int s0/1/1

R3(config-if)#ip add 20.1.1.2 255.0.0.0

R3(config-if)#no shut

R3(config-if)#int f0/0

R3(config-if)#ip add 192.168.1.1 255.255.255.0

R3(config-if)#no shut
R3(config-if)#exit
R3(config)#ip route 10.0.0.0 255.0.0.0 20.1.1.1
R3(config)#ip route 172.16.0.0 255.255.0.0 20.1.1.1
R3(config)#

R3(config)#exit
Show Routing information of Router


R3#sh 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    10.0.0.0/8 [1/0] via 20.1.1.1

C    20.0.0.0/8 is directly connected, Serial0/1/1
S    172.16.0.0/16 [1/0] via 20.1.1.1
C    192.168.1.0/24 is directly connected, FastEthernet0/0
R3#

R3#wr
Building configuration…
[OK]

Related Topics

Share This onShare on FacebookTweet about this on TwitterShare on LinkedInShare on RedditShare on StumbleUponShare on Google+Pin on PinterestBuffer this pageShare on Tumblr
Rakesh Kumar
at
Rakesh Kumar is a Network engineer and a Blogger. He is crazy for learn and write about Technology , Tech and Computer Tips and Tricks Blog.