User's Manual

Table Of Contents
Configuration Guide of XGS-5240-Series
29-4
class <class-map-name> [insert-before
<class-map-name>]
no class <class-map-name>
Create a policy map to associate with a
class map and enter policy class map
mode, then different data streams can
apply different policies and be assigned a
new DSCP value. No command deletes the
specified policy class map.
set {ip dscp <new-dscp> | ip precedence
<new-precedence> | cos <new-co
s> |
c-vid <new-c-vid> | s-vid <new-s-vid> |
s-tpid <new-s-tpid>}
no set {ip dscp | ip precedence | cos |
c-vid | s-vid | s-tpid}
A
ssign a new DSCP, CoS and IP
Precedence value for the classified flow, no
command cancels the operation.
Single bucket mode:
policy <bits_per_second> <normal_bur
st_bytes> ({conform-action ACTION} |
exceed-action ACTION})
Dual bucket mode:
policy <bits_per_second> <normal_bur
st_bytes> [pir <peak_rate_bps>] | <ma
ximum_burst_bytes> [{conform-action
ACTION | exceed-action ACTION | viol
ate-action ACTION}]
ACTION definition:
drop | transmit | set-dscp-transmit <d
scp_value> | set-cos-transmit <cos_val
ue>
no policy
Configure a policy for the classified flow.
The non-
aggregation policy command
supports three colors. Analyze the working
mode of the token bucket, whether it is
single rate single bucket, single rate dual
bucket or
dual rate dual bucket, set
corresponding action to different color
packets. The no command will delete the
configuration. Only specific switch supports
single bucket mode.
accounting
no accounting
Set statistic function for the classified flow.
After enable this function under the policy
class map mode, add statistic function to
the flow of the policy class map. In single
bucket mode, packets
can only red or
green when passing policy. In the print
information, in-
profile means green and
out-
profile means red. In dual bucket
mode, there are three colors of packets