The if-match ip-prefix command sets a filtering rule that is based on the IP prefix list.
The undo if-match ip-prefix command cancels the configuration.
By default, no filtering rule based on the IP prefix list is set.
Usage Scenario
After an IP prefix list is configured as a filtering rule of a route-policy on a device, the device uses the IP prefix list to match routes, and permits or denies the routes that match the IP prefix list.
The ip ip-prefix command must be used to configure an IP prefix so that the filtering rule configured using the if-match ip-prefix command can take effect. For example:Prerequisites
An ip-prefix list has been configured using the ip ip-prefix command and a route-policy has been configured using the route-policy command.
Configuration Impact
When you filter routes based on the IP prefixes, the routes that match the filtering rule are permitted and the routes that do not match the filtering rule are denied.
Precautions
The if-match ip-prefix and if-match acl commands are mutually exclusive. If you run the if-match acl command after running the if-match ip-prefix command, the configuration of the if-match acl command overrides the configuration of the if-match ip-prefix command.