02-06-2019 03:44 AM - edited 03-03-2019 08:59 AM
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!
02-06-2019 05:07 AM
02-06-2019 05:19 AM
02-06-2019 06:02 AM
02-10-2019 10:28 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide