The apply ipv6 next-hop command sets the action for changing an IPv6 next hop address of a BGP route in a route-policy.
The undo apply ipv6 next-hop command restores the default setting.
By default, the action for changing the IPv6 next hop addresses of BGP routes are not configured in a route-policy.
Product |
Support |
---|---|
S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S |
Supported. |
S2720-EI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S6720-LI, and S6720S-LI |
Not supported. |
apply ipv6 next-hop { peer-address | ipv6-address }
undo apply ipv6 next-hop { peer-address | ipv6-address }
Parameter | Description | Value |
---|---|---|
ipv6-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 | Specifies the peer address as the next hop. | - |
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.