Zyxel OLT2412 [150/326] Command description

Zyxel OLT2412 [150/326] Command description
Chapter 21 Policy Rule
OLT2412 User’s Guide
150
21.3 Policy Command Examples
This example creates a policy (highPriority) for the traffic flow identified via classifier VLAN3 (see
the classifier example in Chapter 20 on page 145). This policy replaces the IEEE 802.1 priority field
with the IP ToS priority field (value 7) for VLAN3 packets.
policy <name> classifier
<classifier-list> <[vlan <vlan-
id>][egress-port <port-
num>][mirror-port <port-
num>][priority <0-7>][dscp <0-
63>][tos <0-7>][bandwidth
<bandwidth>][outgoing-packet-
format
<tagged|untagged>][forward-
action <drop|forward>][queue-
action <prio-set|prio-
queue|prio-replace-
tos>][outgoing-
mirror][outgoing-
eport][outgoing-set-
vlan][metering][out-of-profile-
action <[drop] [forward] [set-
drop-precedence]>][inactive]>
Configures a policy with the specified name.
name: 32 alphanumeric characters
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
mirror-port: mirror 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).
Specifies the actions for this policy:
queue-action: tells the OLT 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).
outgoing-mirror - sends the packet to the mirror port.
outgoing-eport - sends the packet 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:
- 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.
no policy <name>
Deletes the policy.
no policy <name> inactive
Enables a policy.
Table 78 Policy Commands (continued)
COMMAND DESCRIPTION
OLT2412(config)# policy highPriority classifier VLAN3 tos 7 queue-action prio-replace-tos
OLT2412(config)# exit
OLT2412# show policy highPriority
Policy highPriority:
Classifiers:
VLAN3;
Parameters:
VLAN = 1; Priority = 0; DSCP = 0; TOS = 7;
Egress Port = xe-3-1;
Mirror Port = xe-3-1;
Bandwidth = 0; Out-of-profile DSCP = 0;
Action:
Replace the 802.1 priority field with the IP TOS value;

Содержание