next-hop (object tracking)

Last Updated : Oct 26, 2015 |

Specifies the next hop for the RTR probes, bypassing normal routing. Use no next-hop to disable setting of the next hop.

Note:

Run the type command to define the RTR operation’s probing method and the IP address of the remote device before using this command.

The next-hop command is disabled by default.

The interface-keepalive bypass-logic command is automatically appended to the RTR configuration if you specify the next hop for the RTR probes, and automatically removed from the configuration if you specify no next-hop.

When applying tracking to a static route, a PBR next hop, or the DHCP client default route, specify the same next hop for the object tracker’s RTR.

Syntax

[no] next-hop interface {interface-name [mac-address mac-address] | ip ip-address}

Parameters

Parameter

Description

Possible Values

Default Value

interface-name

The next hop interface

mac-address

The MAC address of the interface. Applies to Ethernet interfaces only:

  • FastEthernet not running PPPoE

  • VLAN

ip-address

The next hop IP address

User level

read-write

Context

rtr, rtr type

Examples

To specify the next hop for interface FastEthernet 10/3 is MAC address 00:04:d0:af:12:04:

Gxxx-001(config-rtr icmp 1)# next-hop FastEthernet 10/3 interface-name 
00:04:d0:af:12:04 mac-address