Network Kings

How To Configure Static Routing?

Static Routing Configuration Lab

In this lab, we will learn how to configure static routing.

To do this lab you need to perform 4 steps-

  1. Design the topology.
  2. Assign the IP Address
  3. Configure Static Routing
  4. Verify the connectivity.

Step 1: Design the topology

To perform this lab, I used the packet tracer, it is free software provided by Cisco. Also, it is quite simple to use, I recommend this to perform CCNA labs or for beginner students.

To design this topology, I used 2 routers (2811) and 2 switches (2960), 3 laptops and 1 server. To make connection fast, use automatically connection choose wire (yellow color with zigzag)

To place the device in the workspace, first click on the device and then click on the workspace where you want to place the device.


Step 2: Assign the IP address to router interfaces laptops and server.

To assign ip address to the router interfaces, you need to access the CLI of router.

Click on the router, a window will pop up, then click on the CLI. Congrats, now you are in CLI.

When you first time enter in CLI. There is a message continue with configuration dialog? (yes/no) type no.

######assign IP address to router interfaces#####

Router1 Configuration

enable
configure terminal
hostname R1
interface fa0/0
ip address 192.168.20.1 255.255.255.0
no shutdown
interface fa0/1
ip address 192.168.30.1 255.255.255.0
no shutdown

You have to type all these commands in R1 CLI to configure IP address. Same steps will used to configure IP address in router 2, only ip addresses are changed.

Router2 Configuration

enable
configure terminal
hostname R2
interface fa0/0
ip address 192.168.10.1 255.255.255.0
no shutdown
interface fa0/1
ip address 192.168.30.2 255.255.255.0
no shutdown

To verify IP addresses and interface status use show ip interface brief command.

Now assign IP address to the laptops and server.

This is very simple, click on the device, then select desktop then select IP configuration.

Now enter IP address, subnet mask and default gateway. In this lab for laptop 1 and laptop 2 default gateway is R1. So, in the field of default gateway, you have to enter the 192.168.20.1. Similar way, for laptop 0 and server R2 is default router, and default address is 192.168.10.1.

This is screen capture of laptop 2 IP configuration, similar way you have to assign the address for the rest of device.

verify IP addresses and interface status use show ip interface brief command.

Step 3: configure static routing

Router1
configure terminal
ip route 192.168.10.0 255.255.255.0 192.168.30.2
This command is used to configure static route.

Router2
configure terminal
ip route 192.168.20.0 255.255.255.0 192.168.30.1

You can verify static routes by using show ip route command in privileged mode.

Syntax of static route command: ip route


Step 4: Verify the connectivity by using ping command.

Ping command is used to check connectivity. It is very simple process, click on the PC, go to the desktop, go to the command prompt.

Static Routing Configuration Lab

Here, I mentioned a screen capture of laptop 1, I ping the server and the result is in front of you, i got a ping reply. It means there is a connectivity between laptop 1 and server. Similar way, you have to check the connectivity with other devices.

If you get ping reply, it means you configured static route correctly and lab is successful.

Homelab backbone
Photo by Thomas Jensen / Unsplash