Add a static route to a Cisco router

Contributor Icon Contributed by qmchenry Date Icon September 18, 2003  
Tag Icon Tagged: 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.

Previous recipe | Next recipe |
 
  • abanks
    Multiple routes can be configured with different metrics:

    ip route 192.168.0.0 255.255.255.0 10.1.1.1 10
    ip route 192.168.0.0 255.255.255.0 10.1.1.2 20



    Lower numbers are better routes.
  • Anonymous
    utter crap! you need to get your CCNA first and learn the proper terminology instead of just spewing out commands found anywhere on the web, especially if your going to beG for donations...pathetic.
  • Anonymous
    Should use static route for multihoming connection

    lower number with priority connection , and vice versa
blog comments powered by Disqus