Solved

Help with Cisco static route

Posted on 2009-04-03
8
385 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
Comment Utility
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
Comment Utility
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
Comment Utility
Is that the unedited output of a "show ip route???

Where's the 172.16.0.0 network?
0
 

Author Comment

by:3IT
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 50

Expert Comment

by:Don Johnston
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Unsolved. Used another router to accomplish the same thing.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VPN Problems 3 51
DHCP snooping on Cisco switch dropping all DHCP traffic 5 56
Enterasys QoS setup 2 32
Failover VDSL Modems 3 19
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…
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now