11 mls qos cos, 12 service-policy – Accton Technology ES4710BD User Manual
Page 346
345
E
ES4710BD 10 Slots L2/L3/L4 Chassis Switch
Example: Configuring Ethernet port 1/1 to trust CoS value, i.e., classifying the packets according to
CoS value, DSCP value should not be changed.
Switch(Config)#interface ethernet 1/1
Switch(Config-Ethernet1/1)#mls qos trust cos pass-through-dscp
16.2.2.11 mls qos cos
Command: mls qos cos {
no mls qos cos
Function: Configures the default CoS value of the port; the “no mls qos cos” command restores the
default setting.
Parameters: < default-cos> is the default CoS value for the port, the valid range is 0 to 7.
Default: The default CoS value is 0.
Command mode: Interface Mode
Usage Guide:
Example: Setting the default CoS value of Ethernet port 1/1 to 5, i.e., packets coming in through
this port will be assigned a default CoS value of 5 if no CoS value present.
Switch(Config)#interface ethernet 1/1
Switch(Config-Ethernet1/1)#mls qos cos 5
16.2.2.12 service-policy
Command: service-policy {input <policy-map-name> | output <policy-map-name>}
no service-policy {input <policy-map-name> | output <policy-map-name>}
Function: Applies a policy map to the specified port; the “no service-policy {input
<policy-map-name> | output <policy-map-name>}” command deletes the specified
policy map applied to the port.
Parameters: input <policy-map-name> applies the specified policy map to the ingress of switch
port; output <policy-map-name> applies the specified policy map to the egress of
switch port.
Default: No policy map is bound to ports by default.
Command mode: Interface Mode
Usage Guide: Configuring port trust status and applying policy map on the port are two conflicting
operations; the later configuration will override the earlier configuration. Only one
policy map can be applied to each direction of each port. Egress policy map is not
supported yet.
Example: Binding policy p1 to ingress of Ethernet port 1/1.
Switch(Config)#interface ethernet 1/1
Switch(Config-Ethernet1/1)# service-policy input p1