traffic-remark (traffic profile view)
Format
traffic-remark { inbound | outbound } { ipv4 | ipv6 | l2 } acl { acl-number | name acl-name } { dot11e dot11e-value | dscp dscp-value }
traffic-remark { inbound | outbound } ipv4 acl { acl-number | name acl-name } l2 acl { acl-number | name acl-name } { dot11e dot11e-value | dscp dscp-value }
undo traffic-remark { inbound | outbound } { ipv4 | ipv6 | l2 } acl { acl-number | name acl-name }
undo traffic-remark { inbound | outbound } ipv4 acl { acl-number | name acl-name } l2 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. |
- |
ipv4 |
Configures priority re-marking for IPv4 packets. |
- |
ipv6 |
Configures priority re-marking for IPv6 packets. |
- |
l2 |
Configures priority re-marking for Layer 2 packets. |
- |
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, from 3000 to 3031 for IPv6 ACLs, and from 4000
to 4031 for Layer 2 ACLs.
|
name acl-name |
Re-marks packet priorities 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 mapping acl-name is 3000 to 3031, 4000 to 4031, and 6000 to 6031. |
dot11e dot11e-value |
Re-marks the 802.11e 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. |
Usage Guidelines
Usage Scenario
The user wants to re-mark packet priorities based on ACLs to provide differentiated services. The traffic-remark command can be used to configure ACL-based priority re-marking.
Prerequisites
The device has been enabled to process IPv6 services of STAs using the sta-ipv6-service enable command.
Precautions
The traffic-remark 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-based packet re-marking rules in the same direction. The sequence in which ACL rules takes effect follows the rule configuration sequence. To change the current packet re-marking rules, delete all the related configurations and reconfigure the ACL-based packet re-marking.
When the traffic-remark command and the traffic-filter (traffic profile 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
# Create the traffic profile p1 and configure ACL-based 802.11e priority re-marking for IPv4 packets in the inbound direction.
<AC6605> system-view [AC6605] acl 3000 [AC6605-acl-adv-3000] rule 5 permit ip source 192.168.0.2 0 [AC6605-acl-adv-3000] quit [AC6605] wlan [AC6605-wlan-view] traffic-profile name p1 [AC6605-wlan-traffic-prof-p1] traffic-remark inbound ipv4 acl 3000 dot11e 7