0% found this document useful (0 votes)
28 views8 pages

Cisco Static Routing Guide: Setup & Test

The document provides a comprehensive guide on configuring static routing using Cisco routers, highlighting its advantages in security and bandwidth efficiency for small networks. It includes detailed steps for setting up three routers and assigning IP addresses, as well as commands for establishing static routes. Additionally, it covers testing the configuration through pinging between computers and displaying routing tables to verify connectivity.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views8 pages

Cisco Static Routing Guide: Setup & Test

The document provides a comprehensive guide on configuring static routing using Cisco routers, highlighting its advantages in security and bandwidth efficiency for small networks. It includes detailed steps for setting up three routers and assigning IP addresses, as well as commands for establishing static routes. Additionally, it covers testing the configuration through pinging between computers and displaying routing tables to verify connectivity.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Cisco: Static Routing (PART 1)

INTRODUCTION
Static routing is the simplest routing to implement. Moreover, it offers
advantages in terms of security and consumes only a little bandwidth compared to protocols of
Dynamic Routing that we will see later in other tutorials.
Despite these net advantages, it still presents a drawback to highlight: its maintenance becomes more
heavier than dynamic routing protocols once the number of nodes (Routers) increases in
the network (Beyond 4 Routers).
Nonetheless, for a computer network of 3 routers, static routing proves to be advantageous to implement.
work.

WORK SCHEME
Create the diagram below in Packet Tracer, which we have three (3) Cisco 2800 routers and two
Computers (for the test). Assign IP addresses to the different interfaces as illustrated in the diagram. For
To do this, type the commands located in the pre-configuration section.
Pre-configuration
Type the following commands one after the other on the different routers to assign IP addresses to them
interferences according to the above diagram:

• Router 1

Router1>enable
Router1#configure terminal

Router1(config)#interface FastEthernet0/0
Router1(config-if)#ip address [Link] [Link]
Router1(config-if)# no sh
Router1(config-if)#exit
Router1(config)#interface FastEthernet1/0
Router1(config-if)#ip address [Link] [Link]
Router1(config-if)#no sh
Router1(config-if)#end

• Router 2

Router2>enable
Router2#configure terminal

Router2(config)#interface FastEthernet1/0
Router2(config-if)#ip address [Link] [Link]
Router2(config-if)# no sh
Router2(config-if)#exit
Router2(config)#interface FastEthernet1/1
Router2(config-if)#ip address [Link] [Link]
Router2(config-if)#no sh
Router2(config-if)#end

• Router 3

Router3>en
Router3#configure terminal

Router3(config)#interface FastEthernet1/0
Router3(config-if)#ip address [Link] [Link]
Router3(config-if)# no shutdown
Router3(config-if)#exit
Router3(config)#interface FastEthernet0/0
Router3(config-if)#ip address [Link] [Link]
Router3(config-if)#no sh
Router3(config-if)#end

Après cette étape, toutes les interfaces doivent passer à l'état [Link] sure they are before moving on to
the next section.
ROUTING CONFIGURATION
STATIC
The principle of static routing is as follows: For each router, identify all the networks that are not
neighbors (In other words, who are not directly connected) to this one. Then it is necessary to define a route (to
the help of a gateway) to access each of these networks.

Let's apply this principle to our diagram above:

• For Router 1

Les réseaux qui ne sont pas directement raccordés au routeur 1 sont:[Link]/30et192.168.3.0/24


The gateway to reach them is: [Link]. (In general, the gateway is the IP address of the interface
directly opposite to the concerned router in the direction of the networks in question.

• For Router 2

The networks that are not directly connected to router 2 are: [Link]/24 and [Link]/24.
The gateway to reach the network [Link]/24 is: [Link]
The gateway to reach the network [Link]/24 is: [Link]

• For Router 3

The networks that are not directly connected to router 3 are: [Link]/30 and [Link]/24
The gateway to reach them is: [Link]

Let's then translate what we just did into Cisco command.


The command is as follows in configuration mode:

ip route [network address] [mask] [gateway]

Then type the following commands in each router to configure static routing.

Router1(config)#ip route [Link] [Link] [Link]


Router1(config)#ip route [Link] [Link] [Link]
Router1(config)#do write
Router1(config)#end

Router2(config)#ip route [Link] [Link] [Link]


Router2(config)#ip route [Link] [Link] [Link]
Router2(config)#do wr
Router2(config)#end

Router3(config)#ip route [Link] [Link] [Link]


Router3(config)#ip route [Link] [Link] [Link]
Router3(config)#do wr
Router3(config)#end

That is all regarding the routing setup. In the next part, we will see how to test this.
configuration with some Cisco commands.
Cisco: Static Routing (PART 2)
INTRODUCTION
In PART 1, we saw how to configure Static Routing on
Cisco routers. We worked according to the diagram shown below:

We will now see how to test our configuration and use some
Cisco commands related to Routing.

TEST OF THE CONFIGURATION


Before the implementation of static routing, only intra-network communication was
possible (that is to say, only the interfaces located in the same network manage to
communicate mutually). Once the static routing is established, each interface can
join another, whether they are on the same network or not.
As a verification step, let's try to connect the PC1 that is located in the
network [Link]/24 with PC2 that is located at the other end of the network
[Link]/24

To do this, we must assign them an IP address within their respective range like the
show the images below (Don’t forget to put the gateway address):

From PC1, do a PING to try to reach PC2 and vice versa:


The result of the PING from PC1 to PC2 is displayed below (it should be the same for
you too if you didn't make a mistake in the configuration):
Note: For the first attempt (of the PING), it may not work.
because the network needs a bit of time to route packets from one end to the other.
Try several times for it to work.

• To display the routing table of a router, type the following command in


preferred mode:

show ip route

For example, for Router 1, here is what it looks like:


Each line determines a route.
The letter C is placed in front of all the networks that are directly connected to the router
in question (here Router 1). Indeed, according to the diagram, the networks [Link]/30
and [Link]/24 are directly connected to router 1.
The letter S (for Static) designates a route configured statically. The letter will be
network monitoring as well as the gateway to reach it.

• To also get an idea of the route taken by the packets as well as


the number of hops, use the command traceroute (Cisco equipment) or
tracert (under Windows).

For example, let's try to find the route taken by the packets to reach the
PC2 from PC1 and Router 1.
From PC1:

From Router 1:

We therefore have an idea of the number of routers crossed, the gateway as well as the
temps de réponse minimum, moyen et maximum.

You might also like