Class-based marking 是与MQC提供一个额外的工具,它允许静态分类标记的数据包。
它可以用来标记入站或出站数据包。
它可以结合任何其它出方向的QoS 特性。
它可以结合任何其它进方向基于类的管制
先在接口上配置CEF,才能保证基于类的数据包标记的功能都可以使用。
MQC marking options
数据包可以打上以下标志之一:
IP precedence
IP DSCP
QoS group
MPLS experimental bits
IEEE 802.1Q or ISL CoS/priority bits
Frame Relay DE bit
ATM CLP bit
配置分类标记
案例配置
class-map Well-known-services
match access-group 100
!
class-map Unknown-services
match not class-map Well-known-services
!
policy-map set-DSCP
class Well-known-services
set DSCP AF21
class Unknown-services
set DSCP 0
!
access-list 100 permit tcp any any lt 1024
access-list 100 permit tcp any lt 1024 any
!
Interface ethernet 0/0
service-policy input set-DSCP
Class-based marking can mark i***nbound or outbound packets.***
Packets can be marked by IP precedence, IP DSCP, QoS group, MPLS experimental bits, and so on.
Class-based marking requires three configuration steps: class map, policy map, service policy.
Use set cos cos-value to set (mark) the L2 cos value of an outgoing packet.
Use set ip precedence ip-precedence-value to set (mark) the precedence value in the IP header.
Use set ip dscp ip-dscp-value to set (mark) packets of a class with a DSCP value.
In order to use class-based marking, CEF must be enabled.
Use show policy-map to display the configuration of a service policy map created using the policy-map command.
Use show policy-map interface to display all service policies applied to the specified interface.