How to Configure Static Routing on Cisco Router in GNS3? – Static routing configuration is required to communicate networks with two different locations in a small network with Cisco routers.
How to Configure Static Routing on Cisco Router in GNS3?

How to Configure Static Routing on Cisco Router in GNS3?

How to Configure Static Routing on Cisco Router in GNS3?

Static Routing is a routing protocol. It is called Static Routing because the Route is manually configured on the Routers. When Routers communicate networks, they use the Routes, and through these Routes, IP packets determine where they will go.

Configuring Static Routing on Cisco Routers is very simple. If you have a small network topology, it is recommended to configure the Static Route. Also, in some cases, Static Route is required.

Manual configuration of these Routes in a growing network will be difficult and complex. Because of this, Dynamic Routing is configured to allow Routers to automatically advertise networks.

In this article, we will configure Static Routing on Cisco Routers to networks in two different locations.

Our Recommendation

You can purchase “CCNA Routing and Switching Complete Study Guide” from Amazon.

How to Configure Static Routing in GNS3?

In this article, we will implement the Static Route / Static Routing steps using GNS3 and VMware Workstation programs.

Before moving on to the steps to configure Static Routing on Cisco Router in GNS3, you need to install GNS3 and install VMware Workstation on your computer. You can also browse how to integrate GNS3 and VMware Workstation for the use of virtual machines in GNS3.

If you want to watch the VMware connection with GNS3 as a video, you can watch the video called VMware integration with GNS3.

   Step 1

Cisco Router Static Routing configuration steps can now be passed. Open the GNS3 program and create a new project.

How to Configure Static Routing on Cisco Router in GNS3?

   Step 2

In the GNS3 program, create the network topology as shown in the following figure. You can also add clarifications to make network topology more understandable…

How to Configure Static Routing on Cisco Router in GNS3?

   Step 3

Configure the Windows 8.1 virtual machine IP address settings on VMware Workstation as follows.

How to Configure Static Routing on Cisco Router in GNS3?

   Step 4

Likewise, configure the Windows 10 virtual machine IP address settings on VMware Workstation as follows.

How to Configure Static Routing on Cisco Router in GNS3?

   Step 5

Open the Cisco Router R1 CLI command prompt and configure the FastEthernet 0/1 interface. You can control the interface with show ip interface brief command.

[code] R1# conf t
R1(config)# interface fastethernet 0/1
R1(config-if)# ip address 192.168.5.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# end
[/code]

How to Configure Static Routing on Cisco Router in GNS3?

   Step 6

Likewise, configure the interface on the Cisco Router R2 where the 192.168.10.0/24 network is connected.

[code] R2# conf t
R2(config)# interface fastethernet 0/1
R2(config-if)# ip address 192.168.10.1 255.255.255.0
R2(config-if)# no shutdown
R2(config-if)# end
[/code]

How to Configure Static Routing on Cisco Router in GNS3?

   Step 7

Ping operation from the Windows 8 virtual machine to the R1 Fa0/1 interface is successful.

How to Configure Static Routing on Cisco Router in GNS3?

   Step 8

Ping from the Windows 10 virtual machine to the R2 Fa0/1 interface is also successful.

How to Configure Static Routing on Cisco Router in GNS3?

   Step 9

Configure the Cisco Router R1 FastEthernet0/0 interface.

[code] R1# conf t
R1(config)# interface fastethernet 0/0
R1(config-if)# ip address 10.1.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# end
[/code]

How to Configure Static Routing on Cisco Router in GNS3?

   Step 10

Likewise, configure the R1 Fa0/0 interface.

[code] R2# conf t
R2(config)# interface fastethernet 0/0
R2(config-if)# ip address 10.1.1.2 255.255.255.0
R2(config-if)# no shutdown
R2(config-if)# end
[/code]

How to Configure Static Routing on Cisco Router in GNS3?

   Step 11

Before configuring Cisco Router Static Routing, ping the R2 Fa0/0 interface from the Windows 8 virtual machine. Ping will fail. Because we did not configure Cisco Routers to know these networks.

At this point, the importance of Static Routes emerges.

Ping operation from Windows 8 virtual machine to R2 Fa0/2 interface will fail. This is why if R1 can not reach the outside interface of R2, it will not be able to access its subnets…

How to Configure Static Routing on Cisco Router in GNS3?

   Step 12

Ping the same operations on the network against the Windows 10 virtual machine.

How to Configure Static Routing on Cisco Router in GNS3?

   Step 13

Specify a static route on the Cisco Router R1.

[code] R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 192.168.10.0 255.255.255.0 10.1.1.2
R1(config)#end
R1#
R1#show ip route
Codes: L – local, C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, 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, H – NHRP, l – LISP
+ – replicated route, % – next hop override

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.5.0/24 is directly connected, FastEthernet0/1
L 192.168.5.1/32 is directly connected, FastEthernet0/1
S 192.168.10.0/24 [1/0] via 10.1.1.2
R1#
[/code]

The show ip route output on R1 is as follows.

How to Configure Static Routing on Cisco Router in GNS3?

   Step 14

Identify the Static Route in Cisco Router R2 in the same way.

[code] R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip route 192.168.5.0 255.255.255.0 10.1.1.1
R2(config)#end
R2#
R2#show ip route
Codes: L – local, C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, 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, H – NHRP, l – LISP
+ – replicated route, % – next hop override

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.2/32 is directly connected, FastEthernet0/0
S 192.168.5.0/24 [1/0] via 10.1.1.1
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, FastEthernet0/1
L 192.168.10.1/32 is directly connected, FastEthernet0/1
R2#
[/code]

How to Configure Static Routing on Cisco Router in GNS3?

   Step 15

Returning to the VMware Workstation Windows 8.1 virtual machine and pinging the Windows 10 virtual machine at 192.168.10.0/24, the ping will succeed as follows.

How to Configure Static Routing on Cisco Router in GNS3?

   Step 16

If we ping the Windows 8.1 virtual machine on the 192.168.5.0/24 network via the Windows 10 virtual machine, the ping operation will succeed.

How to Configure Static Routing on Cisco Router in GNS3?

Show Commands Related to How to Configure Static Routing on Cisco Router in GNS3

R1#show ip int brR2#show ip int brR1#show ip routeR2#show ip routeR1#show running-configR1#show running-config
R1#show ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.1.1.1 YES manual up up
FastEthernet0/1 192.168.5.1 YES manual up up
R1#
R2#show ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.1.1.2 YES manual up up
FastEthernet0/1 192.168.10.1 YES manual up up
R2#

R1#show ip route
Codes: L – local, C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, 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, H – NHRP, l – LISP
+ – replicated route, % – next hop override

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.5.0/24 is directly connected, FastEthernet0/1
L 192.168.5.1/32 is directly connected, FastEthernet0/1
S 192.168.10.0/24 [1/0] via 10.1.1.2
R1#

R2#show ip route
Codes: L – local, C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, 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, H – NHRP, l – LISP
+ – replicated route, % – next hop override

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.2/32 is directly connected, FastEthernet0/0
S 192.168.5.0/24 [1/0] via 10.1.1.1
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, FastEthernet0/1
L 192.168.10.1/32 is directly connected, FastEthernet0/1
R2#

R1#show running-config
Building configuration…

Current configuration : 1087 bytes
!
! Last configuration change at 11:27:41 UTC Fri Jun 2 2017
upgrade fpd auto
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
redundancy
!
!
ip tcp synwait-time 5
!
!
!
interface FastEthernet0/0
ip address 10.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.5.1 255.255.255.0
duplex auto
speed auto
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip route 192.168.10.0 255.255.255.0 10.1.1.2
!
no cdp log mismatch duplex
!
!
control-plane
!
mgcp profile default
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
transport input all
!
!
end
R1#

R2#show running-config
Building configuration…

Current configuration : 1087 bytes
!
! Last configuration change at 11:28:22 UTC Fri Jun 2 2017
upgrade fpd auto
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
redundancy
!
!
ip tcp synwait-time 5
!
!
interface FastEthernet0/0
ip address 10.1.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.10.1 255.255.255.0
duplex auto
speed auto
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip route 192.168.5.0 255.255.255.0 10.1.1.1
!
no cdp log mismatch duplex
!
control-plane
!
!
mgcp profile default
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
transport input all
!
!
end
R2#

How to Configure Static Routing on Cisco Router in GNS3? ⇒ Video

You can watch how to configure Static Routing on Cisco Router in GNS3 and also subscribe to our YouTube channel…

  Final Word

How to Configure Static Routing on Cisco Router in GNS3? – We have configured Static Routes on Cisco routers using the GNS3 network simulator program. Static Routing can prefer in terms of performance. Dynamic Routing is required in a large network. Because Static Routing will be difficult and complex.

If this article is helpful, send me feedback by commenting! Thanks in advance, take care of yourself!

Also, you can add to browser bookmarks by pressing the CTRL+D to read this article later!

Articles Related to How to Configure Static Routing on Cisco Router in GNS3

Articles Related to How to Configure Static Routing on Cisco Router in GNS3
Related Products

Files Related to How to Configure Static Routing on Cisco Router in GNS3
Related Files
You can download the Cisco Router 7200 IOS image used in this article from your computer at the following…
 

Leave a Reply

Your email address will not be published. Required fields are marked *

twenty − seventeen =