The if-match ip next-hop command configures a rule for matching routes based on the next hop for a tunnel selector.
The undo if-match ip next-hop command deletes the setting.
By default, route filtering based on the next hop is not configured.
Parameter | Description | Value |
---|---|---|
ip-prefix ip-prefix-name |
Specifies the name of an IP address prefix list that is used for route filtering. |
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
The if-match ip next-hop command can be run in the tunnel-selector view in the following scenarios:
Prerequisites
A tunnel selector has been created using the tunnel-selector command.
An IP prefix list has been configured using the ip ip-prefix command based on the next hops of routes.Follow-up Procedure
Run the apply tunnel-policy command in the tunnel-selector view to apply a tunnel policy to the matched routes.