set next-hop (policy)

Use this command to set one or more next hop IP addresses for packets matching an access list in a configured route-map.

Syntax

set next-hop {next-hop1}[next-hop2....next-hop5]
no set next-hop {next-hop1}[next-hop2....next-hop5]

Parameters

next-hop Specifies a next hop IP address. Up to five addresses can be specified per command line.

Defaults

None.

Mode

Policy-based routing configuration.

Usage

Up to a maximum of 128 unique next hops can be configured per policy route-map, 5 per command line, using multiple command lines. On the S- and K-Series, the total number of next hops includes both standard next hops configured using this command and default next hops configured using the command.

The “no” form of this command deletes the specified next hop IP address(es).

Example

This example shows how to set IP address 10.2.3.4 as the next hop for packets matching ACL 1:

System(rw-config)->route-map policy 101 permit 20
System(rw-config-route-map-pbr)->match ip address 1
System(rw-config-route-map-pbr)->set next-hop 10.2.3.4