Tuesday , 21 March 2023
Home » English » Configuring Static Route

Configuring Static Route

Lesson 1: Configure static routing

Lesson 2: Configuring Routing default (default route)

I. Concept

– Routing is the process that routers perform to transfer data packets to the destination network. The router is based on the destination IP address of the packet to packet to the interface in the right direction to the final destination. (Please see the article: The defensive on Router )

– For static routing, the path information from the network administrator is assigned to the router. Then the functional administrators to update, delete the information about the path to router.

II. Features:

– Apply for a small network environment (less than 5 router)

– Do not consume link bandwidth for messages between routers on the way

– Do not consume system resources Router path computation as dynamic routing

– Secure Router only works because based on the way that the designated Admin

– Very difficult to troubleshoot, to reconfigure when there are changes in the network address of the device as well as

III. Configuration

– First we configure IP on two routers

At Router0

Router> en

Router # conf t

Router (config) #hostname Router0

Router0 (config) #interface f0 / 0

Router0 (config-if) # ip address

Router0 (config-if) #no shutdown

Router0 (config-if) #exit

Router0 (config) #interface f0 / 1

Router0 (config-if) # ip address

Router0 (config-if) #no shutdown

At Router1

Router> en

Router # conf t

Router (config) #hostname Router1

Router0 (config) #interface f0 / 0

Router0 (config-if) # ip address

Router0 (config-if) #no shutdown

Router0 (config-if) #exit

Router0 (config) #interface f0 / 1

Router0 (config-if) # ip address

Router0 (config-if) #no shutdown


– To enable static routing we have two ways to configure the following:

Method 1:

Router (config) # ip route <Network_dich> <Subnet Mask of Network_dich> <IP nexthop>

Either way 2 :

Router (config) # ip route <Network_dich> <Subnet Mask of Network_dich> <exit Interface>

For example, do the following models:static5 Configuring Static Routing (Configuring Static Routing)

Figure 1: Diagram showing the configuration using Static

Option 1: Router (config) # ip route <Network_dich> <Subnet Mask of Network_dich> <IP nexthop>

+ Network: Network of IP addresses in the network (ie the network =

+ Nexthop: A port of the router’s ip on the road next to the destination network of the packet

At Router0, Network Subnet Mask destination; for this network to be Router0 to go through port F0 / 0 of Router1, which IP ports this IP address = So one way we can command

Router0> en

Router0 # conf t

Router0 (config) # ip route

Similarly on Router1 to send the packet to the destination network is subnet mask, they must go through the nexthop ports f0 / 0 of Router0 (which IP port is

So we have configured on Router1:

Router1> en

Router1 # conf t

Router1 (config) # ip route

Note: We must be configured on all routers, the new Ping each other for routing packets must be off and on (send and receive)

It is located at the IP for the PC machine in the order shown in Figure 1

Method 2: Router (config) # ip route <Network_dich> <Subnet Mask of Network_dich> <exit Interface>

+ Exit Interface: Name of Packet exit ports in the router is configured for example f0 / 0, s0 / 0

On Router0 want to the destination network, the packet will be released from the port F0 / 0, not f0 / 1 of this router, so we ordered:

Router0 (config) # ip route f0 / 0

Similarly we have command on Router1:

Router0 (config) # ip route f0 / 0


With the PC and router ports set as shown we can ping from PC0 to all other PC on the LAN

Note: With the 2 above can not configure the network environment Multi Access as follows:

Configure static routing multi access static (Configuring Static Routing)

Figure 2: Diagram showing the multiple access environments (Multi Access)

So if you want to Router0 destination network is that every exit port f0 / 0 on Router0 then the next packet switch can not know is through Router1 or Router2 here.

Lượt xem (1710)

About Nguyễn Thanh Sơn

Nguyễn Thanh Sơn
Network Security, Web Design, Computer Science

Xem thêm


Configuring Topology network equipment Juniper

Continue with the basic article on Juniper devices, network security today actual models configured with: …

Để lại bình luận:

Loading Facebook Comments ...

Leave a Reply

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