Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

Simple Routing Question

if i have to put a satatic route entry for

What it will be like

ip route dest mask hop




Re: Simple Routing Question is an ip address in network

So if you specify ip route you will get an error message saying inconsistent address and mask.


Re: Simple Routing Question

Like thisisshanky said, this IP address is one of four you can have with that mask. is the subnet ID is a usable address is a usable address is a broadcast address for that subnet

If you are trying to set up a static route to the subnet, it would look something like this:

ip route 1

where is the IP address of the next-hop router on the way to that subnet, and 1 is the next-to-lowest metric you can have for a route (lowest is 0, for a directly-connected subnet).

If you want to create a static route just for that specific IP host address, it would look like this:

ip route 1

Remember, just because you point to the next-hop router doesn't mean the traffic will get to its destination. Every router along that path needs to know how to get there, whether it learns from the static route or from dynamic routing protocols. So you may have to enter that static route several times; and the next-hop IP address will be different for each successive router in the path.

If you really wanted to, you could also change the metric on each static route to reflect the exact number of router hops to the destination; but it probably won't help the traffic get there any faster.

Hope this helps.

CreatePlease to create content