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-remark (interface view)

traffic-remark (interface view)

Function

The traffic-remark command configures ACL-based priority re-marking on an interface.

The undo traffic-remark command cancels the ACL-based priority re-marking configuration on an interface.

By default, ACL-based priority re-marking is not configured on an interface.

Format

traffic-remark { inbound | outbound } acl { acl-number | name acl-name } { 8021p 8021p-value | dscp dscp-value }

undo traffic-remark { inbound | outbound } acl { acl-number | name acl-name }

Parameters

Parameter

Description

Value

inbound

Configures ACL-based priority re-marking in the inbound direction.

-

outbound

Configures ACL-based priority re-marking in the outbound direction.

-

acl acl-number

Specifies the number of an ACL.

The value is an integer that ranges from 2000 to 4999 and 6000 to 6999 for IPv4 ACLs.
  • 2000 to 2999: basic ACLs
  • 3000 to 3999: advanced ACLs
  • 4000 to 4999: Layer 2 ACLs
  • 6000 to 6999: user ACLs

name acl-name

Re-marks packet priorities based on a specified named ACL. acl-name indicates an ACL name.

The ACL name must exist.

8021p 8021p-value

Re-marks the 802.1p priority of packets.

The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority.

dscp dscp-value

Re-marks the DSCP priorities of packets.

The value is an integer that ranges from 0 to 63. A larger value indicates a higher priority.

Views

VLANIF interface view, FE interface view, GE interface view, MultiGE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To re-mark packet priorities based on ACLs to provide differentiated services, you can run the traffic-remark command to configure ACL-based priority re-marking.

Prerequisites

A named ACL has been created using the acl name command.

Precautions

The AD9431DN-24X does not support ACL-based priority re-marking for wireless packets in the VLANIF interface view.

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

A maximum of eight ACLs can be configured for re-marking packet priorities in the same direction. The ACLs take effect following the configuration sequence. To improve ACL match efficiency, you are advised to configure rules with a high match probability first. When configuring each ACL, set a rule ID with a high match probability to a smaller value to reduce the number of matching times, reducing resource waste. To change the packet priority re-marking sequence, delete the related configuration and run the traffic-remark command to reconfigure ACL-based priority re-marking.

When the traffic-remark command and the traffic-filter (Interface view) command are used simultaneously and the same ACL rule is associated:

  • If the deny action is configured in the ACL rule, the traffic-remark command does not take effect.
  • If the permit action is configured in the ACL rule, the command that is executed first takes effect.

Example

# Configure ACL-based priority re-marking on VLANIF 100 to re-mark the 802.1p priority of packets with the source IP address of 192.168.0.2/32 to 6.

<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] interface vlanif 100
[Huawei-Vlanif100] traffic-remark inbound acl 3000 8021p 6
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 207064

Downloads: 122

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