How to Configure Static Routing in Cisco Packet Tracer: A Beginner’s Guide
In this tutorial, we will learn how to configure static routing between two different subnets using Cisco Packet Tracer. A router is a layer 3 device required to route traffic between distinct networks that cannot communicate by default.
Network Topology Details:
- PC0 IP Address: 192.168.1.10 (Subnet Mask: 255.255.255.0)
- PC0 Default Gateway: 192.168.1.1
- PC1 IP Address: 192.168.2.10 (Subnet Mask: 255.255.255.0)
- PC1 Default Gateway: 192.168.2.1
- Router Connection Network: 10.0.0.0/8
Follow these steps to configure your devices and establish complete end-to-end connectivity.
Step 1: Configure Router0 CLI Settings
Open Router0, navigate to the Command Line Interface (CLI), and enter the following commands to configure the local fast ethernet interface and the serial interface:
Router> enable
Router# configure terminal
Router(config)# interface FastEthernet0/0
Router(config-if)# Ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# interface Serial0/0/0
Router(config-if)# Ip address 10.0.0.1 255.0.0.0
Router(config-if)# no shutdown
Router(config-if)# exit
Step 2: Configure Router0 Static Route
To allow Router0 to send traffic to the 192.168.2.0 network behind Router1, add this static route:
Router(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2
Router(config)# exit
Router# copy running-config startup-config
Step 3: Configure Router1 CLI Settings
Open Router1, access the CLI, and input these commands to configure its local interface and connection interface:
Router> enable
Router# configure terminal
Router(config)# interface FastEthernet0/0
Router(config-if)# ip address 192.168.2.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# interface Serial0/0/0
Router(config-if)# ip address 10.0.0.2 255.0.0.0
Router(config-if)# no shutdown
Router(config-if)# exit
Step 4: Configure Router1 Static Route
Add the return static route on Router1 so it knows how to send data back to the 192.168.1.0 network:
Router(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.1
Router(config)# exit
Router# copy running-config startup-config
Step 5: Verify Connectivity with a Ping Test
To confirm your static routing works, open the Command Prompt on PC0 and ping PC1. A successful configuration will yield a 0% packet loss reply.



Comments
Post a Comment