Removing a name or a static route
no form of the full
ip route
command removes the name. Use the
no form of the command a second time to remove the route.
- Enter configuration mode.
- Enter
no ip routefollowed by the full route designation.device# configure terminal device(config)# no ip route 10.22.22.22 255.255.255.255 10.1.1.1 name xyz
This example removes only the name of the route. - If necessary, repeat the
no ip routecommand with the full route designation.This example repeats the previous route. Because the route has no name, the command removes the designated static route.
The following example removes the name of the designated static route, removes the route, and saves the change to the IP routing table.
device# configure terminal device(config)# no ip route 10.22.22.22 255.255.255.255 10.1.1.1 name xyz device(config)# no ip route 10.22.22.22 255.255.255.255 10.1.1.1