mac

210
Default: Not assigning by default.
Command Mode: Policy Class-map Mode
Usage Guide: Only the classified traffic which matches the matching standard will be
assigned with the new values.
Example: Set the IP Precedence of the packets matching c1 class rule to 3.
Switch(config)#policy-map p1
Switch(Config-PolicyMap-p1)#class c1
Switch(Config-PolicyMap-p1-Class-c1)#set ip precedence 3
Switch(Config-PolicyMap-p1-Class-c1)#exit
Switch(Config-PolicyMap-p1)#exit
7.22 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 VLANs 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
7.23 service-policy input vlan
Command: service-policy input <policy-map-name> vlan <vlan-list>
no service-policy input <policy-map-name> vlan < vlan-list>