How To Configure Static Routing in Cisco Router: Experiment No.4
How To Configure Static Routing in Cisco Router: Experiment No.4
Static route is easy to configure, let’s take an example topology that we discussed in previous article.
Here I’m going to configure static routing between 2 routers (Router 1 and Router 2).
Routing table reviles that there is no information regarding Network 3 (30.0.0.0/8). So we should
update Network 3 manually in the routing table of Router 1.
Let’s start static routing Cisco packet tracer. 1st step is to assign IP address for each ports in
Router 1.
Router 1 configuration
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface ethernet 1/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0
R1(config)#clock rate 64000
R1(config-if)#ip address 40.0.0.2 255.0.0.0
R1(config-if)#no shutdown
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 30.0.0.0 255.0.0.0 40.0.0.1
R1(config)#exit
R1#
%SYS-5-CONFIG_I: Configured from console by console
R2(config-if)#exit
R2(config)#
R2(config)#interface serial 0/0
R2(config)#clock rate 64000
R2(config-if)#ip address 40.0.0.1 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
R2#
%SYS-5-CONFIG_I: Configured from console by console
The above configuration is assigning IP to the router 2 ports. The following is Static routing
command.
R2#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip route 10.0.0.0 255.0.0.0 40.0.0.2
R2(config)#ip route 20.0.0.0 255.0.0.0 40.0.0.2
R2(config)#exit
R2#
%SYS-5-CONFIG_I: Configured from console by console
R2#
In many situations we may have to remove static routing capability in some routers. In order to
remove Static Routing from a Cisco router we have to use the following command.
Router(config)#no ip route [Destination Network ID] [Subnet mask]
For our example,