The hardware fast-forwarding filter basic acl command configures an ACL-based basic filtering condition of hardware fast forwarding.
The undo hardware fast-forwarding filter basic acl command cancels the configuration.
hardware fast-forwarding filter basic acl acl-number
undo hardware fast-forwarding filter basic acl
| Parameter | Description | Value |
|---|---|---|
acl-number |
Specifies the number of an advanced ACL. |
The value is an integer ranging from 3000 to 3999. |
In versions earlier than V600R007C20SPC200, all models support this command. For V600R007C20SPC200 and later versions, device batches are distinguished by BomID Version (which can be checked using the display version command). All models except the USG6680E and USG6712E/6716E whose BomID Version is 003 or later or whose device BOM numbers contain "-001" support this command.
By default, no ACL-based basic filtering condition of hardware fast forwarding is configured.
If the command is executed more than once, the latest configuration overrides the previous ones.
Creating an advanced ACL and referencing it in the basic filtering condition of hardware fast forwarding can control hardware fast forwarding for specific traffic. Hardware fast forwarding is implemented for the traffic that matching the ACL rule with the action of permit and is not implemented for the traffic matching the ACL rule with the action of deny. The traffic matching the ACL rule with the action of deny is still sent to the CPU for processing.
After configuring an ACL-based basic filtering condition of hardware fast forwarding, you need to run the hardware fast-forwarding filter basic enable acl command to enable ACL-based hardware fast forwarding. Otherwise, the ACL-based basic filtering condition of hardware fast forwarding does not take effect.
The number of rules in the referenced advanced ACL cannot be greater than 32. Otherwise, the filtering condition cannot be delivered.
The ACL created under the virtual system cannot be referenced. However, the ACL-based filtering conditions for fast forwarding take effect for the traffic of the entire device (including the root system and all virtual systems).
# Configure the device to implement hardware fast forwarding only for the GRE packets whose source IP address is 1.1.1.1/24.
<sysname> system-view [sysname] acl number 3333 [sysname-acl-adv-3333] rule permit gre source 1.1.1.1 0.0.0.255 [sysname-acl-adv-3333] quit [sysname] hardware fast-forwarding filter basic acl 3333
# Configure the device to implement hardware fast forwarding for IP packets, excluding UDP packets destined to ports 4500 and 500.
<sysname> system-view [sysname] acl number 3998 [sysname-acl-adv-3998] rule 1 deny udp destination-port eq 4500 [sysname-acl-adv-3998] rule 2 deny udp destination-port eq 500 [sysname-acl-adv-3998] rule 3 permit ip [sysname-acl-adv-3998] quit [sysname] hardware fast-forwarding filter basic acl 3998