Removing a name or a static route

When an IP route has a name, the 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.
  1. Enter configuration mode.
    device# configure terminal
    
  2. Enter no ip route followed 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.
  3. If necessary, repeat the no ip route command with the full route designation.
    device(config)# no ip route 10.22.22.22 255.255.255.255 10.1.1.1
    
    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