packet-policy

Function

The packet-policy command configures an ACL-based DCN policy.

The undo packet-priority command deletes an ACL-based DCN policy.

By default, no ACL-based DCN policies are configured.

Format

packet-policy { acl-name acl-name | basic-number | adv-number }

undo packet-policy [ acl-name acl-name | basic-number | adv-number ]

Parameters

Parameter Description Value
acl-name acl-name

Specifies the name of an ACL.

The value is a string of 1 to 64 case-sensitive characters, spaces not supported.

basic-number

Specifies the number of a basic ACL.

The value is an integer ranging from 2000 to 2999.

adv-number

Specifies the number of an advanced ACL.

The value is an integer ranging from 3000 to 3999.

Views

DCN view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dcn write

Usage Guidelines

Usage Scenario

To configure an ACL-based DCN policy to filter DCN packets, run the packet-policy command. The DCN packets that fail to match the ACL rule are discarded, improving DCN network security.

Prerequisites

  • A basic ACL has been created using the acl (basic ACL) command, and a rule has been configured for the ACL using the rule command in the basic ACL view.
  • An advanced ACL has been created using the acl (advanced ACL) command, and a rule has been configured for the ACL using the rule command in the advanced ACL view.

In VS mode, this command is supported only by the admin VS.

Example

# Configure an advanced ACL 3008-based DCN policy.
<HUAWEI> system-view
[~HUAWEI] acl 3008
[*HUAWEI-acl4-advance-3008] quit
[*HUAWEI] dcn
[*HUAWEI-dcn] packet-policy 3008
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >