Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Help with Cisco static route

Posted on 2009-04-03
8
Medium Priority
?
395 Views
Last Modified: 2012-05-06
I'm trying to add a static route on a cisco router and it is not working. In the below example, the first static route (to 172.31) works fine. I added the second route and it doesn't work. The only differnence is the interface, I'm not sure how to enter that. How do I remove and re-add the 172.30 static route to look like the 172. 31 one?
User Access Verification
 
Password:
RTR01>sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is 172.16.0.2 to network 0.0.0.0
 
S    172.31.0.0/16 [1/0] via 172.16.0.2, FastEthernet0/0
S    172.30.0.0/16 [1/0] via 172.16.0.2
 
 --More--

Open in new window

0
Comment
Question by:3IT
  • 4
  • 4
8 Comments
 
LVL 50

Expert Comment

by:Don Johnston
ID: 24061226
The outbound interface get added automatically.

Try this:


no ip route 172.30.0.0 255.255.0.0 172.16.0.2
ip route 172.30.0.0 255.255.0.0 172.16.0.2

Open in new window

0
 

Author Comment

by:3IT
ID: 24061605
Thanks for your reply. That's the command that I used when I first created the static route. I can only assume it is not working because my route doesn't say "Fast Ethernet 0/0" at the end of it. I removed and I re-added as you suggested, but I get the same results.

RTR01#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is 172.16.0.2 to network 0.0.0.0
 
 
S    172.31.0.0/16 [1/0] via 172.16.0.2, FastEthernet0/0
S    172.30.0.0/16 [1/0] via 172.16.0.2
 
RTR01#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RTR01(config)#no ip route 172.30.0.0 255.255.0.0 172.16.0.2
RTR01(config)#ip route 172.30.0.0 255.255.0.0 172.16.0.2
RTR01(config)#exit
RTR01#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is 172.16.0.2 to network 0.0.0.0
 
S    172.31.0.0/16 [1/0] via 172.16.0.2, FastEthernet0/0
S    172.30.0.0/16 [1/0] via 172.16.0.2
 
RTR01#write mem
Building configuration...
[OK]
RTR01#traceroute 172.30.1.100
 
Type escape sequence to abort.
Tracing the route to 172.30.1.100
 
  1 68.23.xxx.xxx 4 msec 0 msec 4 msec
  2  *  *  *
  3  *  *  *
  4  *  *  *
  5  *  *  *
 
RTR01#

Open in new window

0
 
LVL 50

Expert Comment

by:Don Johnston
ID: 24062277
Is that the unedited output of a "show ip route???

Where's the 172.16.0.0 network?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:3IT
ID: 24063322
The 172.16.0.0 is the local network. This router I am working on is 172.16.0.1. A Cisco PIX is at 172.16.0.2. The PIX provides a VPN tunnel to the 172.31.0.0 network and the 172.30.0.0 network. Those tunnels are up and active.
You can see by the traceroute that my router is sending 172.30.0.0 traffic thru the public interface instead of the local interface. I'm sorry I'm pretty bad with Cisco stuff; our regular Cisco guy is out sick today.
0
 
LVL 50

Expert Comment

by:Don Johnston
ID: 24063730
Well, here's the thing; If there is no interface on the network that is the next hop, the route won't work. When you do a "show ip route" you should see a "C" (connected) route for the 172.16.0.0 network.

Can you post the output of a "show ip int brief".
0
 

Author Comment

by:3IT
ID: 24064780
I'm sorry, yes I did edit the output to what I thought was the critical statements. We have about a billion routes on this thing. Here is the unedited output you requested.

 
User Access Verification
 
Password:
Password:
RTR01>show ip int brief
Interface                  IP-Address      OK? Method Status                Prot
ocol
FastEthernet0/0            172.16.0.1      YES NVRAM  up                    up
 
FastEthernet0/1            unassigned      YES NVRAM  administratively down down
 
Serial0/0/0                unassigned      YES NVRAM  up                    up
 
Serial0/1/0                unassigned      YES NVRAM  up                    up
 
Multilink1                 192.168.255.1   YES NVRAM  up                    up
 
RTR01>

Open in new window

0
 
LVL 50

Expert Comment

by:Don Johnston
ID: 24064810
If that's the case, I don't know why the interface would be omitted. Does the route work?
0
 

Accepted Solution

by:
3IT earned 0 total points
ID: 24301417
Unsolved. Used another router to accomplish the same thing.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We've been using the Cisco/Linksys RV042 for years as: - an internet Gateway - a site-to-site VPN device - a leased line site-to-site subnet-to-subnet interface (And, here I'm assuming that any RV0xx behaves the same way as an RV042.  So that's …
Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question