< Home

traffic-filter (traffic profile view) (upgrade-compatible command)

Function

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

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

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

Format

traffic-filter { inbound | outbound } acl { acl-number1 | acl-number2 | name acl-name }

undo traffic-filter { inbound | outbound }

Parameters

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 and from 6000 to 6031.
  • 3000 to 3031: advanced ACLs
  • 6000 to 6031: user ACLs

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.

Views

Traffic profile view

Default Level

3: Management 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 IPv4 packets matching the rule.
  • If the action in the ACL rule is permit, the device allows IPv4 packets matching the rule to pass through.
  • If no rule is matched, IPv4 packets are allowed to pass through.

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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >