Cisco Static Routing Lab on GNS3 | Static Routes with GNS3

How to configure the static routes on GNS3

 Static routing is a core technology that any network engineer must understand.  With static Routing you can configure your network without using any dynamic routing protocol like RIP, OSPF etc. Commonly static routes are used for floating routes and a default route. A well designed network should have very few static routes because when you configure a static routes and in case of network changes, you’ll then potentially need to reassess and reconfigure the static route to ensure network connectivity.
With static routes, for successful IP communication it is necessarily you configure bi-directional static routes on each router. Consider the following figure, suppose you want to access R3 from R1, in such case you need two static routes one from R1 to R3 and other R3 to R1.
Static routing configuration is very simple and easy, you just need to advertise the remote network with defining the next hope address. Syntax of static route Cisco command is as under:
Router(config)#ip route <destination network> <mask> <next hope address>
Learn more Basic Cisco commands from here.


In above Gns3 lab you  have three routers on which we will configure routing using static routes. All required configuration are as following, you all also download the full configurations of these routers from links which are given under the configuration of each router.


R1 Configuration:
On router R1 one we have one directly connected network (11.11.11.0/24) and two remote networks 22.22.22.0/24 &  33.33.33.0/24. For static routing you need to configure two static routes for remote network and next hope address will interface f0/0 of R2 which have the IP address 11.11.11.2. Next hope address is like a gateway and IP address of neighbor router which is connected to remote network, if you want to access R3 from R1 you will access it through next hope address 11.11.11.2. 
R1#conf t
R1(config)#interface f0/0
R1(config-if)#ip address 11.11.11.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#ip route 22.22.22.0 255.255.255.0 11.11.11.2
R1(config)#ip route 33.33.33.0 255.255.255.0 11.11.11.2
Download R1 configuration
R2 Configuration:
On router R2 we have two directly connected network 22.22.22.0/24 &  11.11.11.0/24 and remote network 33.33.33.0/24. Therefore you need to configure the only static route for 33.33.33.0/24 with next hope address 22.22.22.2.

R2#configure terminal
R2(config)#interface f0/0
R2(config-if)#ip address 11.11.11.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface f1/0
R2(config-if)#ip address 22.22.22.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#ip route 33.33.33.0 255.255.255.0 22.22.22.2
R2(config)#exit
R3 Configuration
Remote Network=11.11.11.0/24
Directly connected networks=22.22.22.0/24 &  33.33.33.0/24
Next hope address= 22.22.22.1

R3#configure terminal
R3(config)#interface f0/0
R3(config-if)#ip address 22.22.22.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface loopback 1
R3(config-if)#ip address 33.33.33.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#ip route 11.11.11.0 255.255.255.0 22.22.22.1
R3(config)#exit

Download R3 configuration

After the successful configuration show ip route on R1 will have the following output.


No comments:

Post a Comment

UA-23728446-1