SOURCECODEBD.NET

Live Experience

How to Configure Static Routing

R1

Router>
Router>en
Router#config t
Router(config)#hostname R1
R1(config)#int e1/0

R1(config-if)#no shut
R1(config-if)#ip add 192.168.10.1 255.255.255.224
R1(config-if)#int s0/0
R1(config-if)#no shut
R1(config-if)#ip add 10.0.0.1 255.255.255.252
R1(config-if)#end
R1#wr
R1#

R2

Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#int e1/0
R2(config-if)#no shut
R2(config-if)#ip add 192.168.20.1 255.255.255.224
R2(config-if)#int s0/0
R2(config-if)#no shut
R2(config-if)#ip add 10.0.0.2 255.255.255.252
R2(config-if)#exit
R2(config)#int s0/1
R2(config-if)#no shut
R2(config-if)#ip add 10.0.0.5 255.255.255.252
R2(config-if)#end
R2#wr
R2#

R3

Router>en
Router#conf t
Router(config)#hostname R3
R3(config)#int e1/0
R3(config-if)#no shut
R3(config-if)#ip add 192.168.30.1 255.255.255.224
R3(config-if)#int s0/0
R3(config-if)#no shut
R3(config-if)#ip add 10.0.0.6 255.255.255.252
R3(config-if)#end
R3#wr
R3#

NOW THE STATIC ROUTING CONFIGURATION

R1

R1>
R1>en
R1#conf t
R1(config)#ip route 192.168.20.0 255.255.255.224 10.0.0.2
R1(config)#ip route 10.0.0.4 255.255.255.252 10.0.0.2
R1(config)#ip route 192.168.30.0 255.255.255.224 10.0.0.2
R1(config)#end
R1#wr
R1#

R2

R2>
R2>en
R2#conf t
R2(config)#ip route 192.168.10.0 255.255.255.224 s0/0
R2(config)#ip route 192.168.30.0 255.255.255.224 s0/1
R2(config)#end
R2#wr
R2#

R3

R3>
R3>en
R3#conf t
R3(config)#ip route 192.168.10.0 255.255.255.224 s0/0
R3(config)#ip route 192.168.20.0 255.255.255.224 s0/0
R3(config)#ip route 10.0.0.0 255.255.255.252 s0/0
R3(config)#end
R3#
R3#wr
R3#

 

You are here: Home / Knowledge Base / Static Routing Configuration