The if-match ip group-address command configures a filtering rule that is based on multicast group addresses.
The undo if-match ip group-address command cancels the configuration.
By default, no filtering rule based on multicast group 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). |
ip-prefix ip-prefix-name |
Specifies the name of the 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. |
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 or an IP prefix has been configured using the ip ip-prefix command.Configuration Impact
When you filter routes based on the multicast group address, the routes that match the filtering rule are permitted and the route that do not match the filtering rule are denied.
Precautions
The if-match ip group-address command takes effect only when a policy is applied to the BGP-MDT address family.
<HUAWEI> system-view [~HUAWEI] ip ip-prefix p1 permit 10.0.192.0 8 greater-equal 17 less-equal 18 [*HUAWEI] route-policy policy permit node 10 [*HUAWEI-route-policy] if-match ip group-address ip-prefix p1