Add a Static Route to a Cisco Router

A static route adds an entry to the routing table for a specific destination IP address or subnet.


To route traffic to the 10.10.20.0/24 subnet through the IP address 192.168.100.1:

conf t
ip route 10.10.20.0 255.255.255.0 192.168.100.1

The netmask 255.255.255.0 means the same as the subnet/24 notation.

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.

3 Responses to “Add a Static Route to a Cisco Router”

  1. October 12, 2010 at 12:04 pm, Wadegerencser said:

    Yea, it’s called Administrative Distance. The route may not be “better” but more believable to the router itself. You can manually input that or it will be learned dynamically.

    Reply

  2. February 04, 2011 at 4:33 pm, MnChris612 said:

    stfu. The best way to learn is to do it yourself. If you break it, you will learn that much better because you will never forget what you did to fix it, and that knowledge will carry on into future projects.

    Reply

  3. March 03, 2011 at 10:27 am, Udayjoshi22 said:

    router A and router B are in same network connect with switch. router B serial interface connected with different network router C. how to configure static route on router A.

    Reply

Leave a Reply