traffic-policy global-acl

Function

The traffic-policy global-acl command configures a global traffic policy.

The undo traffic-policy global-acl command cancels a global traffic policy.

By default, no traffic policy is applied in the system view.

Format

traffic-policy policy-name { inbound | outbound } global-acl

undo traffic-policy policy-name { inbound | outbound } global-acl

Parameters

Parameter Description Value
policy-name

Specifies the name of a traffic policy.

The value is a string of 1 to 127 case-sensitive characters.

inbound

Indicates that the traffic policy is applied to incoming packets.

-

outbound

Indicates that the traffic policy is applied to outgoing packets.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

If multiple interfaces on a device receive one type of packets and these packets need to be scheduled using the same traffic policy, run the traffic-policy global-acl command to configure a global traffic policy. The traffic policy takes effect for all interfaces, improving configuration efficiency.

Precautions

When both a global traffic policy and an interface-based traffic policy are configured, packets are preferentially matched against the rules in the global traffic policy and then those in the interface-based traffic policy.

If the if-match service-class { ef af1 af2 af3 af4 be cs6 cs7 } command is configured in a traffic policy and the traffic policy is globally applied, the if-match service-class command configuration does not take effect.

The traffic policy cannot be globally applied if the sampling mode is configured, or the ipv6 redirect actions is configured, or the two-level ACLs is configured.

In VS mode, this command applies only to the admin VS and cannot be configured in other VSs. This command takes effect on all VSs.

Example

# Configure a global traffic policy named test for incoming packets.
<HUAWEI> system-view
[~HUAWEI] traffic policy test
[*HUAWEI-trafficpolicy-test] quit
[*HUAWEI] traffic-policy test inbound global-acl
Warning: After this operation is performed, the global acl traffic policy becomes effective. Continue? [Y/N]:Y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >