Removing an IPv6 Static Route

Before configuring a static IPv6 route, you must enable the forwarding of IPv6 traffic on the Layer 3 switch using the ipv6 unicast-routing command and enable IPv6 on at least one interface by configuring an IPv6 address or explicitly enabling IPv6 on that interface.

The no form of the ipv6 route command must be entered with exact parameters to remove the command. If the route is configured in a non-default VRF, the no form of the ipv6 route command must be entered in VRF configuration mode.

Follow these steps to remove an IPv6 static route.

  1. (Optional) To view configured routes and confirm exact parameters, enter the show ipv6 route command to display the IPv6 route table.
    device# show ipv6 route
  2. (Optional) Enter the show ipv6 static route command to narrow the output to static routes only.
    device# show ipv6 static route
  3. Enter global configuration mode.
    device# configure terminal
    
  4. Enter no followed by the ipv6 route command, including destination and next hop, as shown in the following example. (You do not need to include cost metric, distance, or tag parameters.)
    
    device(config)# no ipv6 route 2224::1/128 fe80::205:33ff:fee6:a501 ve 2 
    
    
    This example removes the IPv6 route specified.

The following example removes an existing IPv6 static route from a non-default VRF.

device# configure terminal
device(config)# vrf corporate
device(config-vrf-corporate)# rd 20:10
device(config-vrf-corporate)# address-family ipv6
device(config-vrf-corporate-ipv6)# no ipv6 route 2002::/64 ethernet 1/1/1