Chapter 52 Policy Commands
Ethernet Switch CLI Reference Guide
222
policy <
name
> classifier
<
classifier-list
> <[vlan <
vlan-
id
>][egress-port <
port-
num
>][priority <0-7>][dscp <0-
63>][tos <0-7>][bandwidth
<
bandwidth
>][egress-mask <
port-
list
>][outgoing-packet-format
<tagged|untagged>][out-of-
profile-dscp <0-63>][forward-
action
<drop|forward|egressmask>][queu
e-action <prio-set|prio-
queue|prio-replace-
tos>][diffserv-action <diff-
set-tos|diff-replace-
priority|diff-set-
dscp>][outgoing-
mirror][outgoing-
eport][outgoing-non-unicast-
eport][outgoing-set-
vlan][metering][out-of-profile-
action <[change-dscp][drop][
forward] [set-drop-
precedence]>][inactive]>
Configures a policy with the specified name.
name
: 32 alphanumeric characters
C
13
Specifies which classifiers this policy applies to.
classifier-list
: names of classifiers separated by
commas.
Specifies the parameters related to the actions:
egress-port
: an outbound port number
priority
: IEEE 802.1p priority field
bandwidth
: bandwidth limit in Kbps, actions can be
assigned to packets which exceed the bandwidth limit (out-or-
profile).
out-of-profile-dscp
: sets a DSCP number, if you want
to replace or remark the DSCP number for out-of-profile
traffic.
Specifies the actions for this policy:
•
queue-action
: tells the Switch to:
- set the IEEE 802.1p priority you specified in the
priority
parameter (
prio-set
)
- sends the packet to priority queue (
prio-queue
)
- replace the IEEE 802.1p priority field with the tos
parameter value (
prio-replace-tos
).
•
diffserv-action
- chooses whether you want to set
the ToS field with the value you specified for the
tos
parameter (
diff-set-tos
), replaces the IP ToS with
IEEE 802.1p priority value (
diff-replace-priority
)
or sets the DSCP field with the dscp parameter value
(
diff-set-dscp
)
•
outgoing-mirror
- sends the packet to the mirror port.
•
outgoing-eport
- sends the packet to the egress port.
•
outgoing-non-unicast-eport
- sends the
broadcast, dlf or multicast packets (marked for dropping
or to be sent to the CPU) to the egress port.
•
metering
- enables bandwidth limitations on the traffic
flows.
•
out-of-profile-action
- specifies the actions to
take for packets that exceed the bandwidth limitations:
- replaces the DSCP field with the value in the
out-of-
profile-dscp
parameter (
change-dscp)
.
- discards the out of profile packets (
drop
).
- queues the packets that are marked for dropping
(
forward
).
- marks the out of profile traffic and drops it when network
is congested (
set-drop-precedence
).
inactive
- disables the policy rule.
Table 123
policy Command Summary
COMMAND
DESCRIPTION
M
P