The ip ip-prefix command configures an IP prefix list or one entry in the IP prefix list.
An IP prefix list can be used as a filter or as filtering conditions of a route-policy when it is used with the if-match command.
Each entry in an IP prefix list can be used as a filtering rule. When a route to be filtered matches an entry, whether the route matches the IP prefix list is determined by the matching mode. A route to be filtered matches an entry or entries based on the following rules:
•Sequential matching: The route has to match the entries in the IP prefix list in ascending order of their index-number values. Therefore, specifying index-number in a required sequence is recommended.
•One-time matching: If a route matches one entry, the route matches the IP prefix list and will not be matched against the next entry.
•Matching failure by default: If a route fails to match any of the entries, it fails to match the IP prefix list.