Remove an IPv6 Static Route in a Non-default VRF

Use the no form of the ipv6 route command to remove a static route.

Procedure

  1. (Optional) View configured routes and confirm parameters.
    device# show ipv6 route 2225::/32 vrf blue
    IPv6 Routing Table for VRF "blue"
    Total number of IPv6 routes: 10
    '*' denotes best ucast next-hop
    '[x/y]' denotes [preference/metric]
    
    2225::/32
        *via 1200:3::1:2, Eth 2/47, [1/1], 0m5s, static, tag 0
    
    device# show ipv6 route 2225::/32 vrf blue
    Total number of IP routes: 0
    device#
    
    
  2. Access VRF configuration mode.
    device# configure terminal
    device(config)# vrf blue
    device(config-vrf-blue)# address-family ipv6 unicast
    device(vrf-blue-ipv6-unicast)#
    
  3. Remove the static route, including the destination and next hop.
    device(vrf-blue-ipv6-unicast)# no ipv6 route 2225::/32 1200:3::1:2 
    
    
    You do not need to include cost metric, distance, or tag parameters.
  4. (Optional) Confirm that the route was removed.
    device# show ipv6 route 2225::/32 vrf blue
    Total number of IP routes: 0
    device#