The display traffic policy command displays the traffic policy configuration on the device.
display traffic policy { interface [ interface-type interface-number [.subinterface-number ] ] | vlan [ vlan-id ] | ssid-profile [ ssid-profile-name ] | global } [ inbound | outbound ]
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support sub-interfaces.
Only the S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H support ssid-profile [ ssid-profile-name ].
Parameter |
Description |
Value |
---|---|---|
interface [ interface-type interface-number [.subinterface-number ] ] |
Displays the traffic policy configuration on a specified interface.
|
- |
vlan [ vlan-id ] |
Displays the traffic policy configuration in a specified VLAN. |
The value is an integer that ranges from 1 to 4094. |
ssid-profile [ ssid-profile-name ] |
Displays the traffic policy configuration in a specified SSID profile. |
The value must be the name of an existing SSID profile. |
global |
Displays the traffic policy configuration in the system. |
- |
inbound |
Displays the traffic policy configuration in the inbound direction. |
- |
outbound |
Displays the traffic policy configuration in the outbound direction. |
- |
Usage Scenario
The display traffic policy command displays the configuration of a specified traffic policy or all traffic policies. The command output helps you check the traffic policy configuration and locate faults.
<HUAWEI> display traffic policy interface gigabitethernet 0/0/1 Interface: GigabitEthernet0/0/1 Direction: Inbound Policy: p1 Classifier: c1 Operator: AND Rule(s) : if-match acl 5500 if-match 8021p 6 if-match acl 3001 Behavior: b1 Statistic enable Committed Access Rate: CIR 1000 (Kbps), CBS 125000 (Byte) PIR 1000 (Kbps), PBS 125000 (Byte) Green Action : pass Yellow Action : pass Red Action : discard
Item |
Description |
---|---|
Interface |
Interface to which the traffic policy is applied. |
Direction |
Direction to which a traffic policy is applied. To apply a traffic policy, run the traffic-policy (interface view) command. |
Policy |
Traffic policy name. To create a traffic policy, run the traffic policy command. |
Classifier |
Traffic classifier in a traffic policy. To create a traffic classifier, run the traffic classifier command. |
Operator |
Relationship between rules in the traffic classifier. To configure the relationship between rules in a traffic classifier, run the traffic classifier command. |
Rule(s) |
Rule in a traffic classifier. |
Behavior |
Traffic behavior bound to the traffic classifier. To create a traffic behavior, run the traffic behavior command. |
Committed Access Rate |
CAR. To configure CAR, run the car (traffic behavior view) command. |
CIR 100 (Kbps), CBS 9000 (Byte) PIR 40000 (Kbps), PBS 200000 (Byte) |
Parameters in the QoS CAR profile, including the CIR, PIR, CBS, and PBS. To configure CAR parameters, run the car (traffic behavior view) command. |
Green Action |
Action taken for green packets. To configure an action taken for green packets, run the car (traffic behavior view) command. |
Yellow Action |
Action taken for yellow packets. To configure an action taken for yellow packets, run the car (traffic behavior view) command. |
Red Action |
Action taken for red packets. To configure an action taken for red packets, run the car (traffic behavior view) command. |
<HUAWEI> display traffic policy ssid-profile test inbound
Ssid-profile: test
Direction: Inbound
Policy: 1
Classifier: 1
Operator: AND
Rule(s) :
if-match vlan-id 100
Behavior: 1
Permit
Item |
Description |
---|---|
Ssid-profile |
SSID profile to which the traffic policy is applied. |
Direction |
Direction to which a traffic policy is applied. To apply a traffic policy, run the traffic-policy (SSID profile view) command. |
Policy |
Traffic policy name. To create a traffic policy, run the traffic policy command. |
Classifier |
Traffic classifier in a traffic policy. To create a traffic classifier, run the traffic classifier command. |
Operator |
Relationship between rules in the traffic classifier. To configure the relationship between rules in a traffic classifier, run the traffic classifier command. |
Rule(s) |
Rule in a traffic classifier. |
Behavior |
Traffic behavior bound to the traffic classifier. To create a traffic behavior, run the traffic behavior command. |
Permit |
Allows packets matching the rule in the traffic classifier to pass. To allow or disallow packets matching the rule in the traffic classifier to pass, run the deny | permit command. |