set ipv6 next-hop

Sets the IPv6 address of the next hop in a route-map instance.

Syntax

set ipv6 next-hop { ipv6-address | peer-address }
set ipv6 [ global | vrf vrf-name ] next-hop ipv6-address
no set ipv6 next-hop ipv6-address

Parameters

ipv6-address
IPv6 address of the next hop.
global
Specifies that the next specified hop address is to be resolved from the global routing table.
vrf vrf-name
Specifies from which VRF routing table the specified next hop address will be resolved.
ipv6-address
Specifies, in IPv6 address format, the next hop to which to route the packet. The next hop need not be directly connected or reachable.
peer-address
Specifies, when configured, that the next hop is set to the neighbor peering address.

Modes

Route-map configuration mode

Usage Guidelines

When the peer-address keyword is used when defining an inbound route map of a BGP peer, then the next hop of the matching route will be set to the neighbor peer address. Similarly, when the peer-address keyword is used when defining an outbound route map of a BGP peer, then the next hop of the outbound route map will be configured with the peer address of the local router.

The no form of this command removes the configuration.

Examples

The following example configures IPv6 address as the next hop to which the traffic that matches a match statement in the route map must be routed.

device(config)# route-map test-route permit 99
device(config-route-map-test-route/permit/99)# set ipv6 next-hop 2001:db8:0:0:0:ff00:42:8329

The following example shows the configuration of the peer-address parameter when defining the next hop.

SLX (config)# route-map test-route permit 99
SLX (config-route-map-test-route/permit/99)# set ipv6 next-hop peer-address