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.
- Enter global configuration mode.
- Enable the default network route for static route resolution of routes to a particular
destination.
This example enables the default static route to resolve the next hop for IPv6 static routes.
- (Optional) Configure the default
route for recursive lookup of the next hop. 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.
- Enter the following destination route and network mask followed by a valid next-hop
address.
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