The if-match prefix command configures an ACL to match RA messages against the IPv6 prefix in RA messages.
The undo if-match prefix command deletes the ACL used to match RA messages against the IPv6 prefix in RA messages.
By default, no ACL is configured to match RA messages against the IPv6 prefix in RA messages.
Parameter | Description | Value |
---|---|---|
acl acl-number |
Specifies the number of a basic ACL6. |
The value is an integer in the range from 2000 to 2999. |
Usage Scenario
After an ACL is configured in an IPv6 RA guard policy to match RA messages against the IPv6 prefix in RA messages, the interface to which the policy is applied checks whether the IPv6 prefix of the received RA messages is within the network segment configured in the ACL and forwards the RA messages only when the messages match the ACL. Otherwise, the interface discards the messages.
Precautions
# In the IPv6 RA guard policy p1, configure the switch to forward RA messages with the IPv6 prefix FC00:1::/64.
<HUAWEI> system-view [HUAWEI] acl ipv6 2000 [HUAWEI-acl6-basic-2000] rule 1 permit source fc00:1::/64 [HUAWEI-acl6-basic-2000] quit [HUAWEI] nd raguard policy p1 [HUAWEI-nd-raguard-policy-p1] if-match prefix acl 2000