16 set – PLANET WGSW-50040 User Manual

Page 192

Advertising
background image

Example:

Creating and deleting a policy map named “p1”.

Switch(config)#policy-map p1

Switch(Config-PolicyMap-p1)#exit

Switch(config)#no policy-map p1

10.16 set

Command:

set {ip dscp <new-dscp> | ip precedence <new-precedence> | internal priority <new-inp> |

drop precedence <new-dp> | cos <new-cos>}

no set {ip dscp | ip precedence | internal priority | drop precedence | cos}

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 <new-flowlabel> new IPv6 FL value.

cos <new 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.

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

Advertising