cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2165
Views
0
Helpful
5
Replies

Can't remove a static route...

rudepeople
Level 1
Level 1

This question has been asked in this discussion, but the post has gone stagnant without resolution...

I have an old static route configured on my IRS4321k9 that I put in during testing. Now that the router is deployed, I want to remove the old route but it doesn't seem to want to remove...

I ran no ip route 0.0.0.0 0.0.0.0 172.8.8.22

No errors... exit, wr, then sh run and the route is still there...

sh ip route doesn't list it, but is shows up in sh run... what's the voodoo I need to kill it or is it just a phantom entry in sh run?

 

here's my sh ip route (obvious fake IPs are fake):

router#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is 172.10.0.33 to network 0.0.0.0

S*    0.0.0.0/0 [1/0] via 172.10.0.33
      192.168.60.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.60.0/24 is directly connected, Vlan1
L        192.168.60.1/32 is directly connected, Vlan1
      172.10.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        172.10.0.32/28 is directly connected, GigabitEthernet0/0/0
L        172.10.0.36/32 is directly connected, GigabitEthernet0/0/0
router#

 

5 Replies 5

Hello,

 

odd indeed. Is the route also in the startup config (show startup-config) ? If so, your best option is probably to copy the startup config to a TFTP server, edit the text file and remove the static route, TFTP it back to the router, and then copy the startup to the running config...

Yep, it's in startup config as well. I guess I'm going to have to build a tftp server next... *sigh*... this is in a colo, so this'll be fun.

I am puzzled by the reported symptoms and would like to see some more detail about it. Would you post the output of these steps:

show run | include route

show ip route

the config commands to remove the static route

show run | include route

 

HTH

 

Rick

HTH

Rick


@Richard Burts wrote:

I am puzzled by the reported symptoms and would like to see some more detail about it. Would you post the output of these steps:

show run | include route

 




router1#show run | include route
 default-router 192.168.60.1
ip route 0.0.0.0 0.0.0.0 172.8.8.69
ip route 0.0.0.0 0.0.0.0 172.8.0.33
router1#

@Richard Burts wrote:

show ip route


router1#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is 172.8.0.33 to network 0.0.0.0

S*    0.0.0.0/0 [1/0] via 172.8.0.33
      192.168.60.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.60.0/24 is directly connected, Vlan1
L        192.168.60.1/32 is directly connected, Vlan1
      206.71.85.0/24 is variably subnetted, 2 subnets, 2 masks
C        172.8.0.32/28 is directly connected, GigabitEthernet0/0/0
L        172.8.0.36/32 is directly connected, GigabitEthernet0/0/0
router1#

@Richard Burts wrote:

the config commands to remove the static route


Specifically:

router1> enable
router1# config t
router1 (config)# no ip route 0.0.0.0 0.0.0.0 172.8.8.22
router1 (config)# exit
router1# wr

@Richard Burts wrote:

show run | include route


same thing:

router1#show run | include route
 default-router 192.168.60.1
ip route 0.0.0.0 0.0.0.0 172.8.8.69
ip route 0.0.0.0 0.0.0.0 172.8.0.33
router1#

I'll have a tftp server up in a few minutes so I'll pull the startup-config, manually remove it, reup the config, and reboot... that'll fix it for sure. but yeah! WTH?!

Thank you for the information that I requested. It does show what you described. Can we verify that the lines of ip route 0.0.0.0 are in global config mode, or perhaps in some other mode? Can you post a page of show run preceding the ip route 0.0.0.0 and a half page of output following them? (or perhaps just the whole config)

 

HTH

 

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card