Help with Cisco static route

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

3ITAsked:
Who is Participating?
 
3ITAuthor Commented:
Unsolved. Used another router to accomplish the same thing.
0
 
Don JohnstonInstructorCommented:
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
 
3ITAuthor Commented:
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Don JohnstonInstructorCommented:
Is that the unedited output of a "show ip route???

Where's the 172.16.0.0 network?
0
 
3ITAuthor Commented:
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
 
Don JohnstonInstructorCommented:
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
 
3ITAuthor Commented:
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
 
Don JohnstonInstructorCommented:
If that's the case, I don't know why the interface would be omitted. Does the route work?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.