cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3687
Views
5
Helpful
4
Replies

No matching route to delete

CottonSwitch
Level 1
Level 1

From searching this question pops up a few times but following those steps gets me nowhere.

I'm trying to remove a rout from a Cisco Catalyst 3650 but receive error "No matching route to delete"

When doing command show ip route I come up with this.

Gateway IP of last resort 192.168.1.9 to network 0.0.0.0

0.0.0.0/0[1/0] via 192.168.1.9

192.168.1.0/24 is variably subnetted 2 subnets, 2 masks

192.168.1.1/29 is directly connected to vlan3

192.168.1.2/32 is directly connected to vlan3

I am trying to remove 192.168.1.1/29 and I use this

config t

no ip route 192.168.1.1/29 255.255.255.248

This gives me the error. I have also tried adding vlan 3 to the end but come up with the same error. Do I need to use a different command for this or am I missing something at the end? Also, I I change everything to /32 will it have any negative impacts on the network or break it?

Thanks!

 

4 Replies 4

Joseph W. Doherty
Hall of Fame
Hall of Fame
The issue might be you're trying to remove a "connected" route. Remove the IP from the VLAN 3 SVI and then see whether the route is removed.

BTW, what are you trying to do? You have a SVI with an IP, on a L3 switch, but you don't want it in your route table? If so, the purpose of the SVI's IP is?

Our entire network was recently reconfigured and has issues only on this end. The IP was just originally inputted wrong and just needs to be changed. Is there and easier way do it? I only know how to remove and re add.
Thanks.

Generally, if the IP is the primary for the interface, all you need to do is re-input the IP address command (with the correct parameters). Doing so will replace the IP. The foregoing, assumes, you still have management access to device.

Richard Burts
Hall of Fame
Hall of Fame

There are several things in the original post that strike me as needing comment.

 

Here is the gateway of last resort

Gateway IP of last resort 192.168.1.9 to network 0.0.0.0

and here is the subnet of vlan 3

192.168.1.1/29 is directly connected to vlan3

if the mask is /29 then the subnet includes addresses 0 through 7 and the address of the gateway is not included in the subnet of vlan 3. Where is that gateway address?

 

Perhaps it would be helpful if the original poster would post the configuration of vlan 3. In fact it may be helpful if we could see all of the config.

 

This appears to be the default route in the show ip route

0.0.0.0/0[1/0] via 192.168.1.9

the AD of 1 suggests that it is from a static route. Can the original poster verify this? Can we see exactly what is configured for static routes in the config?

 

 

The original poster is attempting to remove 192.168.1.1/29. I am not sure why they are attempting to remove this. But the syntax used is not correct. They use 

no ip route 192.168.1.1/29 255.255.255.248

If 192.168.1.1/29 is really from a static route then the correct syntax would be

no ip route 192.168.1.1 255.255.255.248 <next_hop>

note that /29 is 255.255.255.248 so there is duplicated information in the command used and the command used is missing the next hop for the static route.

 

If we had better information, especially the configuration of vlan 3 and the specific configuration of any static routes, then we might be able to suggest a solution.

 

HTH

 

Rick

HTH

Rick

Review Cisco Networking for a $25 gift card