Solved

Help with Cisco static route

Posted on 2009-04-03
8
388 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

There are two basic ways to configure a static route for Cisco IOS devices. I've written this article to highlight a case study comparing the configuration of a static route using the next-hop IP and the configuration of a static route using an outg…
How to set-up an On Demand, IPSec, Site to SIte, VPN from a Draytek Vigor Router to a Cyberoam UTM Appliance. A concise guide to the settings required on both devices
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…

770 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