beautypg.com

Changing the port priority of an interface, Configuring primap, Configuring uncolored primap – H3C Technologies H3C S12500 Series Switches User Manual

Page 44

background image

35

Changing the port priority of an interface

If an interface does not trust any packet priority, the device uses its port priority to look for the set of

priority parameters for the incoming packets. By changing port priority, you can prioritize traffic received

on different interfaces.
To change the port priority of an interface:

Step

Command

Remarks

1.

Enter system view. system-view N/A

2.

Enter interface
view or port group

view.

Enter interface view:
interface interface-type interface-number

Enter port group view:

port-group manual port-group-name

Use either command.
Settings in interface view (Ethernet or

WLAN-ESS) take effect on the current
interface. Settings in port group view

take effect on all ports in the port

group.

3.

Set the port
priority of the

interface.

qos priority { dot1p | dp | dscp | exp | lp }
priority-value

The default is 2 for local precedence

and 0 for drop precedence. The other
priorities do not have defaults.

Configuring primap

By configuring a primap behavior and associating it with a traffic class, you can re-assign priority

parameters for the traffic class according to the specified priority mapping table.

Configuring uncolored primap

Step Command

1.

Enter system view.

system-view

2.

Create a class and enter class view.

traffic classifier tcl-name [ operator { and | or } ]

3.

Configure match criteria.

if-match match-criteria

4.

Return to system view.

quit

5.

Create a traffic behavior and enter traffic
behavior view.

traffic behavior behavior-name

6.

Configure the action of assigning priority

values to packets using a specified priority
mapping table.

primap pre-defined dscp-dscp

7.

Return to system view.

quit

8.

Create a policy and enter policy view.

qos policy policy-name

9.

Associate the traffic behavior with the class. classifier tcl-name behavior behavior-name

10.

Return to system view.

quit