Removing an IPv6 Static Route
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.
- (Optional) To view configured
routes and confirm exact parameters, enter the
show ipv6 routecommand to display the IPv6 route table. - (Optional) Enter the
show ipv6 static routecommand to narrow the output to static routes only. - Enter global configuration mode.
- Enter
nofollowed by theipv6 routecommand, including destination and next hop, as shown in the following example. (You do not need to include cost metric, distance, or tag parameters.)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