The if-match ip next-hop acl command configures a filtering rule that is based on next-hop IP addresses.
The undo if-match ip next-hop acl command cancels the configuration.
By default, no filtering rule based on next-hop IP addresses is configured.
Parameter | Description | Value |
---|---|---|
acl-number |
Specifies the number of a basic ACL. |
The value is an integer that ranges from 2000 to 2999. |
acl-name |
Specifies the name of a named basic ACL. |
The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive). |
acl |
Specifies the ACL for route filtering. |
- |
Usage Scenario
The if-match ip command is widely applied. The filtering rule configured using this command takes effect only after an IP prefix or an ACL is configured. For example:
Prerequisites
A route-policy has been configured using the route-policy command.
An ACL has been configured using the acl command.Configuration Impact
When you filter routes based on the next hop addresses, 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.0.0, by default, the system considers the mask length as 0 and matches the route.
If the next hop address or source address of a route to be filtered is not 0.0.0.0, by default, the system considers the mask length as 32 and matches the route. For a named ACL, when the rule command is used to configure a filtering rule, only the source address range specified in source and the time period specified in time-range take effect on the filtering rule.