17 service-policy input, 18 service-policy input vlan, Service – PLANET WGSW-50040 User Manual

Page 193: Policy input, Policy input vlan

Advertising
background image

10.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.

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 port 1/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

10.18 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.

Advertising