A blacklist is a group of users with particular characteristics. The device discards packets from users in the blacklist. You can apply an ACL to a blacklist. In addition, for S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI, packets matching the IPv4 blacklist are sent to the CPU first, and then discarded. To reduce impact of malicious packets on the CPU usage, you can configure the switch to discard the packets directly without sending them to the CPU.
The system view is displayed.
The attack defense policy view is displayed.
Run the blacklist blacklist-id acl acl-number1 command to create an IPv4 blacklist.
The ACL referenced by the IPv4 blacklist can be a basic ACL, an advanced ACL, or a Layer 2 ACL. For details about ACL configuration, see ACL Configuration.
By default, no IPv4 blacklist is configured.
Run the blacklist blacklist-id acl ipv6 acl-number2 command to create an IPv6 blacklist.
Only advanced ACLs can be applied to the IPv6 blacklist. For details about ACL configuration, see ACL Configuration.
By default, no IPv6 blacklist is configured.
Run the blacklist blacklist-id acl acl-number3 hard-drop command to create the blacklist that discards the packets matching ACL rules in the forwarding chip.
The ACL referenced in this command must be an advanced ACL, and this command applies to only IPv4 packets. For details about ACL configuration, see ACL Configuration.
By default, the blacklist that discards the packets matching ACL rules in the forwarding chip is not configured.