Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

I want add static route

Dear sir,

i have configured cisco 2811 router in central site which have six wan interface. in central side i have three network.

1. 192.166.2.0/24

2. 192.168.1.0 /24

3. 192.168.10.0/24

my router fastethernet ip is 192.166.2.202 and i want to access my server from 192.166.2.0 network ip address of servers are 192.168.1.73 and 192.168.1.71 which i am not able to access . i have add the static route in routers also but i am not able access both the servers

Kindly suggest

ss yadav

2 REPLIES
Green

Re: I want add static route

The generic form for adding a static is:

ip route

or

ip route interface metric

If you do not specify the optional metric, the route using the gateway address will get a metric of one and the static using the "interface" keyword will get a metric of zero.

So, if I understand your setup, you'd use a command like:

ip route 192.168.1.0 255.255.255.0 192.166.2.202

or, if the 192.166.1.0 network was on you S0/0.100 subinterface it would look like:

ip route 192.168.1.0 255.255.255.0 interface S0/0.100

Again, the first example would get a default metric of 1, the second example would get a default metric of 0.

Be careful using static (and default) routes. It's easy to accidently se up a routing loop. If you start getting errors like "TTL Expired" .... you almost certainly have a routing loop.

If you need to remove the static route, just repeat the command (the whole command) with a "no" in front of it like this:

no ip route 192.168.1.0 255.255.255.0 192.166.2.202

^^

Good Luck

Scott

Hall of Fame Super Silver

Re: I want add static route

Scott has done a good job of explaining the principles of configuring static routes. I offer one small correction: any static route gets an administrative distance of 1 (I know that there are multiple sources that say that there is an administrative distance difference between statics that specify a next hop address or statics that specify an output interface - but if you check the operation on the router all statics get an administrative distance of 1).

I am not clear about the original post, it describes having 6 WAN interfaces, then it talks about several networks and servers. Perhaps the original poster can be more specific about the topology and about what the problem is. If we understand better what is configured and what the problem is, then perhaps we can give better advice about what the solution might be.

HTH

Rick

2039
Views
0
Helpful
2
Replies