apply ipv6 next-hop

Function

The apply ipv6 next-hop command configures an IPv6 next hop address for a BGP route using a route-policy.

The undo apply ipv6 next-hop command cancels the configuration.

By default, IPv6 next hop addresses of BGP routes are not configured using a route-policy.

Format

apply ipv6 next-hop { address | peer-address | blackhole }

undo apply ipv6 next-hop { address | peer-address | blackhole }

Parameters

Parameter Description Value
address

Specifies the IPv6 next hop address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

peer-address

If the apply ipv6 next-hop peer-address command is run in a route-policy that is used as an export route-policy on a device, the device sets the next hop address of a route to be advertised to a peer to its own IPv6 address.

If the command is run in a route-policy that is used as an import route-policy, the device sets the next hop address of a filtered route that has been received from the peer to the peer's IPv6 address.

-

blackhole

Adds a black-hole flag to a route.

-

Views

Route-policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

To configure an IPv6 next hop address for a BGP route, run the apply ipv6 next-hop command.

In BGP, the next hop address of a route can be set using a route-policy in the following situations:

Prerequisites

A route-policy has been configured using the route-policy command.

Configuration Impact

After a BGP route matches a route-policy, the IPv6 next hop address of the BGP route is changed.

Precautions

When a route-policy is specified in the import-route and network commands, the apply ipv6 next-hop clause in the route-policy does not take effect.

Example

# Set 2001:db8:2001::1 as the next hop address.
<HUAWEI> system-view
[~HUAWEI] route-policy policy permit node 10
[*HUAWEI-route-policy] apply ipv6 next-hop 2001:db8:2001::1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >