The traffic-filter command configures ACL-based IPv4 packet filtering on an AP's wired interface.
The undo traffic-filter command cancels ACL-based IPv4 packet filtering configuration on an AP's wired interface.
By default, ACL-based IPv4 packet filtering is not configured on an AP's wired interface.
traffic-filter { inbound | outbound } acl { acl-number | name acl-name }
undo traffic-filter { inbound | outbound }
Parameter |
Description |
Value |
---|---|---|
inbound |
Configures ACL-based IPv4 packet filtering in the inbound direction. |
- |
outbound |
Configures ACL-based IPv4 packet filtering in the outbound direction. |
- |
acl |
Filters IPv4 packets based on a specified ACL. |
- |
acl-number |
Specifies an ACL number. |
The ACL must exist. The value is an integer that ranges from 3000 to 3031. |
name acl-name |
Filters IPv4 packets based on a named ACL. acl-name indicates the ACL name. |
The ACL name must exist. The value range is the same as that of the acl-number parameter. |
Usage scenario
Prerequisites
An ACL rule has been created by running the acl [ number ] acl-number [ match-order { auto | config } ] or acl name acl-name acl-number [ match-order { auto | config } ] command.
Precautions
The traffic-filter command can reference an ACL with no rule configured. You can configure a rule for the ACL after running this command.
You can configure IPv4 packet filtering based on only one ACL in one direction. If a referenced ACL needs to be replaced, configure a new ACL to overwrite the original one.