?
Solved

Help with Cisco static route

Posted on 2009-04-03
8
Medium Priority
?
393 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
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…

719 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