mac
Commands for QoS
252
18.23 service-policy input
Command: service-policy input <policy-map-name>
no service-policy input <policy-map-name>
Function: Applies a policy map to the specified port; the no command deletes the
specified policy map applied to the port.
Parameters: input <policy-map-name> applies the specified policy map to the ingress
direction of switch port.
Default: No policy map is bound to port and VLAN interface by default.
Command mode: Port Configuration Mode.
Usage Guide: Only one policy map can be applied to each direction of each port or
VLAN interface. It is not recommended to use policy map on VLAN and VLAN’s port at
the same time. Egress policy map is not supported yet.
Example:
Bind policy p1 to ingress Ethernet port1/1.
Switch(config)#interface ethernet 1/1
Switch(Config-If-Ethernet1/1)#service-policy input p1
Bind policy p1 to ingress redirection of v1 interface.
Switch(config)#interface vlan 1
Switch(Config-If-vlan1)#service-policy input p1
18.24 service-policy input vlan
Command: service-policy input <policy-map-name> vlan <vlan-list>
no service-policy input <policy-map-name> vlan < vlan-list>
Function: Applies a policy map to the specified VLAN interface; the no command
deletes the specified policy map applied to the VLAN interface.
Parameters: input <policy-map-name> applies the specified policy map to the ingress
direction of switch VLAN interface.
Default: No policy map is bound to VLAN interface by default.
Command mode: Global Configuration Mode.
Usage Guide: Only one policy map can be applied to each direction of each port or
VLAN interface. It is not recommended to use policy map on VLAN and VLAN’s port at
the same time. Egress policy map is not supported yet.
Example:
Bind policy p1 to ingress of VLAN interface v2, v3, v4, v6.
Switch(config)# service-policy input p1 vlan 2-4;6










