You are on page 1of 7

c

Configuring Static Routes


KHAWAR BUTT
CCIE # 12353 [R/S, SECURITY, SP, DC, VOICE, STORAGE & CCDE]
Overview
 Static Route Overview
 Syntax
 Configuration c
Lab Diagram
PC PC PC

c
Switch Switch Switch

192.168.1.0/24 192.168.2.0/24 192.168.3.0/24


E 0/0 E 0/0 E 0/0
Serial 1/0 Serial 1/0
Serial 1/1 Serial 1/0
R1 192.168.12.0/24 R2 192.168.23.0/24 R3
Static Routing
 Static Routes are User-defined, manually created routes.

 The administrator creates Static Routes on a Cisco Router using the ip route Command.

c
 The administrator is responsible for creating routes for each network that is in your topology.

 If a new route is added in the network, you would need to add the new route manually on each
and every router.

 It is not suitable for a large/dynamic environment.

 In case a route goes down, the other routers are not going to be aware of the change and will
continue to send traffic towards the router.
Static Route Syntax
 The syntax for the Static Route Command [IP Route] is :

Ip route [Destination Network] [Network Mask] [Next Hop Router]

c
 For our network, if R1 wants to reach the 192.168.2.0/24 network, which is behind R2, you
would create a static route using the following:

Ip route 192.168.2.0 255.255.255.0 192.168.12.2

Destination Network: 192.168.2.0


Network Mask: 255.255.255.0
Next Router IP to reach the destination: 192.168.12.2 (This needs to be reachable/directly
connected)
Configuring Static Routes
1. Let’s configure full routing using static routes for our network based on the Lab Diagram.
Router Configurations
R1
c
R1(config)#IP route 192.168.2.0 255.255.255.0 192.168.12.2
R1(config)#IP route 192.168.3.0 255.255.255.0 192.168.12.2
R1(config)#IP route 192.168.23.0 255.255.255.0 192.168.12.2
R2

R2(config)#IP route 192.168.1.0 255.255.255.0 192.168.12.1


R2(config)#IP route 192.168.3.0 255.255.255.0 192.168.23.3
R3

R3(config)#IP route 192.168.1.0 255.255.255.0 192.168.23.2


R3(config)#IP route 192.168.2.0 255.255.255.0 192.168.23.2
R3(config)#IP route 192.168.12.0 255.255.255.0 192.168.23.2
Whiteboard

You might also like