10 set, 11 service-policy, Service – PLANET XGS3-24040 User Manual

Page 228: Policy

Advertising
background image

14-94

14.10 set

Command:

set {ip dscp <new-dscp> | ip precedence <new-precedence>| ipv6 dscp <new-dscp> | ipv6

flowlabel <new-flowlabel> | ip nexthop <ip-address> | cos <new-cos>}

no set {ip dscp <new-dscp> | ip precedence <new-precedence> | ipv6 dscp <new-dscp> |

ipv6 flowlabel <new-flowlabel> | ip nexthop <ip-address> | 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. ip nexthop <ip-address> next hop IP address, set the route of nexthop for PBR. 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.

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.

Advertising