10 set, 11 service-policy, Service – PLANET XGS3-24040 User Manual
Page 228: Policy
14-94
14.10 set
Command:
set {ip dscp
flowlabel
no set {ip dscp
ipv6 flowlabel
Function:
Assign a new DSCP, IP Precedence for the classified traffic; the “no” form of this command delete
assigning the new values.
Parameter:
ip dscp <new-dscp> new DSCP value; ip precedence <new-precedence> new IPv4 Precedence;
ipv6 dscp <new-dscp> new IPv6 DSCP value; ipv6 flowlabel
value. ip nexthop
cos> new COS value.
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.
Note: ipv6 flowlabel configuration is not supported by this switch.
Example:
Set the IP DSCP of the packets matching the 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
14.11 service-policy
Command:
service-policy input <policy-map-name>
no service-policy input <policy-map-name>
Function:
Applies a policy map to the specified port or VLAN interface; the no command deletes the specified
policy map applied to the port or VLAN interface.