The if-match ip-prefix command configures a tunnel selector to use an IP prefix list as a route filtering rule.
The undo if-match ip-prefix command restores the default configuration.
By default, a tunnel selector does not use any IP prefix list as a route filtering rule.
Parameter | Description | Value |
---|---|---|
ip-prefix-name | Specifies the name of an IP prefix list. | The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
To enable a device to match routes against a specified IP prefix list and determine whether to permit or deny the routes based on matching results, run the if-match ip-prefix command to configure a tunnel selector to use the IP prefix list as a route filtering rule.
The if-match ip-prefix command must be used with the ip ip-prefix command. For example:
If the if-match ip-prefix aa and ip ip-prefix aa permit 1.1.1.1 32 commands are both configured, BGP routes with IP prefix 1.1.1.1/32 will be permitted.
Prerequisites
A tunnel selector has been configured using the tunnel-selector command.
The IPv4 prefix list has been created by running the ip ip-prefix command.
Precautions
Routes are filtered by IP prefix. Only routes matching the specified IP prefix list are permitted.