Configuring a Default Static Route

You can manually create a default static route that the router uses if there are no other default routes to a destination.

Because the default route is a static route, you must configure the ip route next-hop-enable-default command to resolve other static routes through the default route.

Perform these steps to configure a default route.
  1. Enter global configuration mode.
    device# configure terminal 
    
  2. Enable the default network route for static route resolution of routes to a particular destination.
    device(config)# ipv6 route next-hop-enable-default
    
    This example enables the default static route to resolve the next hop for IPv6 static routes.
    Note: The ip route next-hop-enable-default command can be independently applied on a per-VRF basis.
  3. (Optional) Configure the default route for recursive lookup of the next hop.
    device# configure terminal
    device(config)# ipv6 route next-hop-recursion
    
    This example allows three levels of recursion in looking up the next hop for any IPv6 static route. The default is 3. You may enter any value from 1 to 10.
  4. Enter the following destination route and network mask followed by a valid next-hop address.
    device(config)# ipv6 route ::/0 2001:DB8:0:ee44::1
    

The following example configures a default static route to global IPv6 address 2001:DB8:0:ee44::1. The route is able to resolve static routes using next-hop recursion to three levels (the default).

device# configure terminal
device(config)# ipv6 route next-hop-enable-default
device(config)# ipv6 route next-hop-recursion
device(config)# ipv6 route ::/0 2001:DB8:0:ee44::1