The if-match ipv6 route-source prefix-list command configures a filtering rule that is based on IPv6 addresses of the source devices from which routes are received.
The undo if-match ipv6 route-source prefix-list command cancels the configuration.
By default, no filtering rule based on IPv6 addresses of the source devices from which routes are received 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 source 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] ip ipv6-prefix p1 permit :: 0 greater-equal 32 less-equal 64 [*HUAWEI] route-policy policy permit node 10 [*HUAWEI-route-policy] if-match ipv6 address prefix-list p1 [*HUAWEI-route-policy] if-match ipv6 route-source prefix-list p1