No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
traffic-filter (traffic profile view)

traffic-filter (traffic profile view)

Function

The traffic-filter command configures ACL-based packet filtering in a traffic profile.

The undo traffic-filter command cancels configuration of ACL-based packet filtering in a traffic profile.

By default, ACL-based packet filtering is not configured in a traffic profile.

Format

traffic-filter { inbound | outbound } { ipv4 | l2 } acl { acl-number | name acl-name }

traffic-filter { inbound | outbound } ipv4 acl { acl-number | name acl-name } l2 acl { acl-number | name acl-name }

undo traffic-filter { inbound | outbound } { ipv4 | l2 } acl { acl-number | name acl-name }

undo traffic-filter { inbound | outbound } ipv4 acl { acl-number | name acl-name } l2 acl { acl-number | name acl-name }

Parameters

Parameter

Description

Value

inbound

Configures ACL-based packet filtering in the inbound direction.

-

outbound

Configures ACL-based packet filtering in the outbound direction.

-

ipv4

Configures ACL-based IPv4 packet filtering.

-

l2

Configures ACL-based Layer 2 packet filtering.

-

acl acl-number

Specifies the number of an ACL.

The value is an integer that ranges from 3000 to 3031 and from 6000 to 6031 for IPv4 ACLs and from 4000 to 4031 for Layer 2 ACLs.
  • 3000 to 3031: advanced ACLs
  • 6000 to 6031: user ACLs
  • 4000 to 4031: Layer 2 ACLs

name acl-name

Filters packets based on a specified named ACL. acl-name indicates an ACL name.

The value is a string of 1 to 32 case-sensitive characters without spaces and must begin with a letter.

The value range of acl-number corresponding to acl-name is 3000 to 3031, 4000 to 4031, and 6000 to 6031.

Views

Traffic profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the traffic-filter command is executed in the traffic profile view, the device filters packets matching a specified ACL rule:

  • If the action in the ACL rule is deny, the device discards packets matching the rule.
  • If the action in the ACL rule is permit, the device forwards packets matching the rule.
  • If no rule is matched, packets are allowed to pass through.

Prerequisites

An ACL rule has been created before this command is run.

Precautions

The traffic-filter command can reference a numbered ACL rule that is not configured. You can configure the referenced ACL rule after running this command.

You can only configure a maximum of eight ACL rules in the same direction. The sequence in which ACL rules takes effect follows the sequence in which the rules are configured. To change the current packet filtering rules, delete all the related configurations and reconfigure the ACL-based packet filtering.

Example

# Create the traffic profile p1 and configure packet filtering in the inbound direction based on the ACL that permits packets with the source IPv4 address 192.168.0.2/32.

<Huawei> system-view
[Huawei] acl 3000
[Huawei-acl-adv-3000] rule 5 permit ip source 192.168.0.2 0
[Huawei-acl-adv-3000] quit
[Huawei] wlan
[Huawei-wlan-view] traffic-profile name p1
[Huawei-wlan-traffic-prof-p1] traffic-filter inbound ipv4 acl 3000
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 194702

Downloads: 118

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next