Here in this article i am going to show you how to configure static routing.To show you how to configure static routing i have taken an example lab you can see in below image.
Now Lets see configuration step wise:
— System Configuration Dialog —
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#int fa0/1
R1(config-if)#ip address 192.168.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#int fa0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shut
— System Configuration Dialog —
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#int fa0/1
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#int fa0/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no shut
— System Configuration Dialog —
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R3
R3(config)#int fa0/1
R3(config-if)#ip address 192.168.2.1 255.255.255.0
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#int fa0/0
R3(config-if)#ip address 192.168.1.3 255.255.255.0
R3(config-if)#no shut
R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.1.3
R1(config)#ip route 192.168.3.0 255.255.255.0 192.168.1.2
R3(config)#ip route 192.168.0.0 255.255.255.0 192.168.1.1
R3(config)#ip route 192.168.3.0 255.255.255.0 192.168.1.2
R2(config)#ip route 192.168.0.0 255.255.255.0 192.168.1.1
R2(config)#ip route 192.168.2.0 255.255.255.0 192.168.1.3