235
Example:
Creating and deleting a policy map named “p1”.
Switch(Config)#policy-map p1
Switch(Config-PolicyMap)#exit
Switch(Config)#no policy-map p1
8.3.14 queue mode
Command:
queue mode {strict|wrr}
Function:
Configure the queue out mode.
Parameter:
strict configure queue out method to strict priority-queue method; wrr
restores the default wrr queue out method.
Default:
wrr out queue mode
Command mode:
Interface Mode
Usage Guide:
When priority-queue queue out mode is used, packets are no longer sent
with WRR weighted algorithm, but send packets queue after queue.
Example:
Set the queue out mode to strict priority-queue.
Switch(Config-Ethernet )# queue mode strict.
8.3.15 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:
Bind policy p1 to ingress Ethernet port 0/0/1.
Switch(Config)#interface Ethernet 0/0/1
Switch(Config-Ethernet0/0/1)# service-policy input p1