< Home

display traffic policy

Function

The display traffic policy command displays the traffic policy configuration on the device.

Format

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 ].

Parameters

Parameter

Description

Value

interface [ interface-type interface-number [.subinterface-number ] ]

Displays the traffic policy configuration on a specified interface.
  • interface-type specifies the interface type.
  • interface-number [.subinterface-number ] specifies the interface or sub-interface number.

-

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.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# Display the configuration of the traffic policy applied to GE0/0/1 .
<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                                                          
Table 1 Description of the display traffic policy command output

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.

# Display the traffic policy in the SSID profile named test on the S5730-HI.
<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
Table 2 Description of the display traffic policy command output

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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >