< Home

apply ipv6 next-hop

Function

The apply ipv6 next-hop command configures an IPv6 next hop address for a BGP route through 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 through a route-policy.

Format

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

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

Parameters

Parameter Description Value
ipv6-address Specifies the IPv6 next hop address. -
peer-address Specifies the peer address as the next hop. -

Views

Route-policy view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

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

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

  • IBGP

    For an IBGP peer, the configured inbound and outbound policies can take effect. If the next hop address configured in the policy is unreachable, the IBGP peer still adds the route to the BGP routing table, but the route is not valid.

  • EBGP

    For an EBGP peer, when the policy is used to modify the next hop address of a route, the inbound policy is configured. If the outbound policy is configured, the route is discarded because its next hop is unreachable.

Prerequisites

The apply ipv6 next-hop command can be used only after the route-policy command is used.

Configuration Impact

After a BGP route matches a route-policy, you can change the IPv6 next hop address of the BGP route.

Precautions

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

Example

# Set 3ffe:506::1 as the next hop address.

<sysname> system-view
[sysname] route-policy policy permit node 10
[sysname-route-policy] apply ipv6 next-hop 3ffe:506::1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >