How to Configure a Static Route on a Cisco Router
Roben Young
12/18/20232 min read


Introduction
Configuring a static route on a Cisco Router allows you to manually specify the path that network traffic should take. This can be useful in situations where dynamic routing protocols are not suitable or when you need to override the default routing behavior. In this blog post, we will guide you through the process of configuring a static route on a Cisco Router.
Step 1: Access the Router's Command Line Interface (CLI)
To configure a static route, you need to access the router's CLI. You can do this by connecting to the router using a console cable or by accessing it remotely using SSH or Telnet.
Step 2: Enter Privileged EXEC Mode
Once you are in the router's CLI, enter privileged EXEC mode by typing enable and providing the appropriate password if prompted.
wndrlan> enable
wndrlan#
Step 3: Enter Global Configuration Mode
To configure a static route, you need to be in global configuration mode. Enter global configuration mode by typing configure terminal.
wndrlan# configure terminal
wndrlan(config)#
Step 4: Configure the Static Route
To configure a static route, use the following command:
ip route destination_network subnet_mask next_hop
Replace destination_network with the IP address or network address of the destination network you want to reach. Replace subnet_mask with the appropriate subnet mask for the destination network. Replace next_hop with the IP address of the next hop or exit interface where the traffic should be forwarded.
wndrlan(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.1
Step 5: Verify the Configuration
After configuring the static route, it is important to verify that it has been applied correctly. You can do this by using the show ip route command. Look for the entry corresponding to the destination network you configured and ensure that it is listed as a static route.
Step 6: Save the Configuration
Once you have verified that the static route is working correctly, save the configuration to ensure that it persists across reboots. You can do this by typing write memory or copy running-config startup-config.
Conclusion
Configuring a static route on a Cisco Router can be a useful skill to have in your networking toolkit. By following the steps outlined in this blog post, you should now be able to configure a static route and ensure that network traffic is properly routed to its intended destination. Remember to always verify your configuration and save it to avoid any potential issues.
