×

Static Routing

Static Routing

Static Routing is the process in which static routes are manually added to the routing table through the direct configuration.

Static routing is configured in the global configuration mode using syntax:

Router(config)#ip route [destination_network][subnet_mask][next-hop_address or exitinterface].

Where-

ip route is used to create a static route.

destination_network is the network in which you are trying to reach.

subnet_mask is used on the network.

next-hop_address is the ip address of a router’s interface that is a directly connected network. It will receive the packet from the router and forward it to the remote network.

exit interface is used in place of the next-hop address (if required).

Advantages of Static Routing:

There are the following advantages of static routing:

  • It is easy to implement.
  • It is the most secure way of the routing.
  • No overhead
  • Bandwidth is not used for sending the routing updates.

Disadvantages of Static Routing:

There are the following disadvantages of Static Routing:

  • It is suitable only for small networks.
  • Administrator must update all routers.
  • It does not handle multiple paths to a destination.
  • It cannot be dynamically updated if the topology changes.

Configure Static Routing in the topology:

Configure Static Routing in the topology
  • Configure IP addresses to the Routers
  • Configure the IP addresses to the Router0’s interfaces:

Serial interface (s0/0/0) with an IP address 192.168.10.1, and fast Ethernet interface (f0/0) with an IP address 10.0.0.1.

Configure the IP addresses
  • Configure the IP addresses to the Router1’s interfaces:

Serial interface (s0/0/0)with an IP address 192.168.10.2, and fast Ethernet interface(f0/0) with an IP address 20.0.0.1.

fast Ethernet interface
  • Assign the IP addresses to the PCs.

PC0

IP Configuration

PC1

IP Cofig 2

PC2

PC2 IP Config

PC3

IP Config pc3

You can also learn it in detail from here. https://www.tutorialandexample.com/configure-ip-address-to-router-and-pc-in-packet-tracer/

  • Check both Router’s Routing table using the “show ip route” command:
  • Router0

Router0’s routing table shows the networks that are directly connected to the Router0.

routing table shows

Router1

Router1’s routing table shows the networks that are directly connected to the Router1.

Router 1

Now, when we ping from PC0 to PC1, we get ping replies in the format, “ip address: bytes time, and TTL”, because both the PCs (PC0 & PC1) are in the same network.

same network

When we ping from PC0 to PC2, we get ping replies with a failure message “Destination host unreachable” because both (PC0 & PC2) are in the different network.

different network

To verify again with the second network address, check ping from PC2 to PC3 and we see the below screenshot ping replies with ip address, bytes, time, and TTL.”

screenshot ping replies

But, when we ping PC2 from PC0 & PC1, we get ping replies a failure message “Destination host unreachable” because PCs are on a different network.

Destination host unreachable

To provide communication between different networks, we need to configure the static routing using the following syntax:

ip route [destination_network]

[subnet_mask]

[next-hop_address or exitinterface].

On Router0, configure static route:

configure static route

On Router1, configure static route:

configure static route

Now check Router0’s routing table, we can see some static router entry in the table. To check routing table use “show ip route”command.

some static router entry

Now to verify static routing ping from PC0 to PC2, ping replies successfully because the routing table has a static entry of the network 20.0.0.0.

ping replies successfully

Similarly, check Router1’s routing table, we see some static route entry in the routing table.

verify static routing

 To verify static routing, ping from PC2 to PC1, ping replies because now the Router1’s routing table has a static entry of the network 10.0.0.0.

static entry of the network

Related Topics

Saving, Erasing, and Verifying Configuration

Saving Configuration Cisco device store commands information into two configuration files: running configurationstartup configuration running configuration In the running configuration, you can manually save the data from RAM to NVRAM by typing the copy running-config startup-config command. When you...

3 minutes read.

Data Encapsulation and De-Encapsulation

Data Encapsulation It is the process of adding headers and trailers to data. When a host transmits data to another device over a network, the data is encapsulated, with protocol information...

5 minutes read.

Verifying OSPF Configuration

There are several ways to verify OSPF configuration and operations, which are: show ip route commandshow ip ospf commandshow ip ospf database commandshow ip ospf interface commandshow ip protocol commandshow ip ospf neighbor commanddebugging ospf Consider the following topology –We...

2 minutes read.

CCNA Tutorial

What is CCNA? CCNA stands for Cisco Certified Network Associate. It is a certification course offered by Cisco. CCNA improves your understanding of the internet working and how different network topologies work...

3 minutes read.

Configure Password

Password configuration is an in-built feature of Cisco devices.Each Cisco device uses a password to authenticate users for accessing the device and also provides security to the Cisco devices. There are five types of the...

2 minutes read.

Banner config

Banner config The banner is a little pool which is used in Cisco systems and also in other systems like Unix, Linux and so no.It permits a text that is displayed when you log in a...

1 minute read.

Static Routing

Static Routing Static Routing is the process in which static routes are manually added to the routing table through the direct configuration. Static routing is configured in the global configuration mode using syntax: Router(config)#ip route...

3 minutes read.

The OSI Reference Model

OSI Reference Model OSI stands for Open System Interconnection. OSI provides a framework for creating and implementing networking standards, devices, and internetworking schemes. The following devices operate at the OSI model: Network...

6 minutes read.

Checking Network Connectivity and Troubleshooting

As a Network Engineer, you must know that how to check network connectivity and troubleshoot a network. There are following commands are used in the network to check and troubleshoot the network connectivity – 1)...

3 minutes read.

Open Shortest Path First (OSPF) Basics

Open Shortest Path First(OSPF) is a classless routing protocol. It uses a link-state routing protocol, which means that the routers exchange topology information with their nearest neighbors. The OSPF maintains three separate tables that...

3 minutes read.

Ethernet Networks in Review

Ethernet Networks in Review Today, Ethernet is the most used technology for the LANs. It is described as IEEE 802.3 standard. Ethernet is a connection-based media access method i.e., Carrier Sense...

2 minutes read.

Download and Install the Cisco Packet Tracer

Download and Install the Cisco Packet Tracer Step1: -Download Cisco Packet Tracer from the link given below: https://arief-jr.blogspot.com/2016/01/download-cisco-packet-tracer-62-for.html Here we will download Cisco packet tracer for Windows OS, so for Windows, go for...

1 minute read.

EIGRP Basics

EIGRP stands for Enhanced Interior Gateway Routing Protocol. It is also called as the Hybrid routing protocol. It contains the features of both distance vector and link-state routing protocols. Characteristics of EIGRP There are the...

5 minutes read.

Configure Hostname

Configure a hostname on a router A hostname is a unique name given to a device (router or switch) on a network and is used to identify one device from another on a specific...

1 minute read.

IP Addressing

IP Addressing IP Addressing is designed to allow hosts on a network to communicate with another host on a different network. There are two types of IP address: IPv4 IPv4 addresses are 32-bits long. It allows...

2 minutes read.

Components of a Cisco Router

The Internal Components of a Cisco Router Before troubleshoot and configure Cisco devices, it is necessary to know the major components of the Cisco routers. The given table shows all the internal components of...

2 minutes read.

Configure IP Routing

IP Routing stands for “Internet Protocol Routing.”It is the process of sending packets (data) from a source network to a destination network.In IP Routing, routers select the best route for a data packet from the...

2 minutes read.

Cisco IOS Overview

Cisco IOS Overview Cisco Internetwork Operating System (IOS) is a multitasking operating system which controls all functions of Cisco routers and switches. Willaim Yeager wrote the first IOS in 1986.It is used to allocate resources and manages...

2 minutes read.

Configuring Catalyst Switches

When you power on a new purchased Switch for the first time, it runs a series of Power-On Self Tests (POSTs) operations. A  POST is designed to verify the basic operations of the...

3 minutes read.

Configuring EIGRP

Consider the topology given below – The initial IP configuration table is given below: Devices Interface IP address Router1 ...

2 minutes read.