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.
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. |
- |
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.