ip route next-hop-enable-default

Enables a device to use the default route (0.0.0.0/0) to resolve a static route.
Syntax
ip route next-hop-enable-default
no ip route next-hop-enable-default
Command Default

Device does not use the default route to resolve static route.

Modes

Global configuration mode

Usage Guidelines

This command can be independently applied on a per-VRF basis.

This command works independently with the ip route next-hop-recursion and ip route next-hop commands. If the default route is a protocol route, that protocol needs to be enabled to resolve static routes using the ip route next-hop command in order for static routes to resolve by this default route. If the default route itself is a static route, you must configure the ip route next-hop-recursion command to resolve other static routes by this default route.

The no form of the command disables the device to use the default route to resolve a static route.

Examples

The following example enables static route resolve by default route

device(config)# ip route next-hop-enable-default