17 service-policy input, Service, Policy input – PLANET WGSW-52040 User Manual

Page 371

Advertising
background image

20-140

Creating and deleting a policy map named “p1”.

Switch(config)#policy-map p1

Switch(Config-PolicyMap-p1)#exit

Switch(config)#no policy-map p1

20.17 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 or

deletes all the policy maps applied on the ingress direction of the port .

Parameters:

input <policy-map-name> applies the specified policy map to the ingress direction of switch port.

no command will delete all the policy maps applied on the ingress direction of the port if there is not the specified

policy map name.

Default:

No policy map is bound to port 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

Advertising