The if-match ipv6 next-hop prefix-list command configures a filtering rule that is based on next-hop addresses of IPv6 routes.
The undo if-match ipv6 next-hop prefix-list command cancels the configuration.
By default, no filtering rule based on next-hop addresses of IPv6 routes is configured.
Usage Scenario
The filtering rule (based on the destination addresses, next hop addresses, or source addresses of IPv6 routes) configured using this command takes effect only after an IPv6 prefix or an ACL is configured.
Prerequisites
A route-policy has been configured using the route-policy command.
An IPv6 prefix has been configured using the ip ipv6-prefix command.Configuration Impact
When you filter routes based on the next hop addresses of IPv6 routes, the routes that match the filtering rule are permitted and the route that do not match the filtering rule are denied.
Precautions
If the next hop address or source address of a route to be filtered is 0::0, by default, the system matches the route and considers its mask length as 0.
If the next hop address or source address of a route to be filtered is not 0::0, by default, the system matches the route and considers its mask length as 128.<HUAWEI> system-view [~HUAWEI] route-policy policy permit node 10 [*HUAWEI-route-policy] if-match ipv6 address prefix-list p1 [*HUAWEI-route-policy] if-match ipv6 next-hop prefix-list p1 [*HUAWEI-route-policy] if-match ipv6 route-source prefix-list p1