ip route next-hop

Enables a device to use routes from a specified protocol to resolve a configured static route.
Syntax
ip route next-hop { bgp | ospf | rip }
no ip next-hop { bgp | ospf | rip }
Command Default

The device is not enabled to use routes from a specified protocol to resolve a configured static route.

Parameters
bgp
Configures the device to use iBGP and eBGP routes to resolve static routes.
ospf
Configures the device to use OSPF routes to resolve static routes.
rip
Configures the device to use RIP routes to resolve static routes.
Modes

Global configuration mode

Usage Guidelines

This command can be independently applied on a per-VRF basis. Connected routes are always used to resolve static routes.

The no form of the command disables the device to use routes from a specified protocol to resolve static routes.

Examples

The following example configures the device to use OSPF protocol to resolve static routes.

device(config)# ip route next-hop ospf