No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
DAA Configuration Commands

DAA Configuration Commands

Command Support

Only X series cards support the DAA function.

acl tariff-level

Function

The acl tariff-level command configures a tariff level for traffic.

The undo acl tariff-level command deletes the tariff level.

By default, no tariff level is configured.

Format

acl acl-number tariff-level tariff-level

undo acl acl-number tariff-level

Parameters

Parameter

Description

Value

acl-number

Specifies the number of an ACL.

The value is an integer that ranges from 3000 to 3999.

tariff-level

Specifies the tariff level.

The value is an integer that ranges from 1 to 6.

Views

Traffic group view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

On a network where users need to pay for the network access service, such as a campus network, users are not charged when they access internal network resources, and are charged when they access the Internet resources. Therefore, the device must be able to know whether the user traffic goes to the internal network or Internet according to the destination IP addresses of the traffic.

After distinguishing the traffic, the device uses the tariff level specified for the traffic and the corresponding accounting policy to offer differentiated services. This command is used to specify the tariff levels for different traffic.

Prerequisites

An IPv4 ACL must have been created using the acl (system view) or acl name command.

Precautions

  • In the ACL rule, the destination address (the destination parameter) is mandatory, and the source address (the source parameter) is optional. Configuring both the source and destination addresses can precisely specify the traffic on which accounting will be performed.

  • If there is an ACL rule with both the source and destination addresses configured and the destination address is the same as that in another ACL rule, you are advised to match this ACL rule with a tariff level (tariff-level) with a small value during configuration. For example, most users accessing destination address A on the network use the same tariff corresponding to ACL 3000, and a small number of users with source address B and accessing destination address A use another tariff corresponding to ACL 3001. In this case, the tariff level corresponding to ACL 3001 should have a smaller value than the tariff level corresponding to ACL 3000.

  • If the any parameter is specified, the device does not check the source and destination addresses of packets, and considers that all packets match the ACL rule. The device then executes the corresponding action.

Example

# Configure tariff level 1 for the traffic matching ACL 3000.

<HUAWEI> system-view
[HUAWEI] acl number 3000
[HUAWEI-acl-adv-3000] rule 5 permit ip source any destination 10.0.0.1 0.0.0.255 
[HUAWEI-acl-adv-3000] quit
[HUAWEI] traffic-group p1
[HUAWEI-traffic-group-p1] acl 3000 tariff-level 1
Related Topics

display traffic-group

Function

The display traffic-group command displays information about traffic groups.

Format

display traffic-group { all | name group-name }

Parameters

Parameter

Description

Value

all

Displays information about all traffic groups.

-

name group-name

Displays detailed information about a specified traffic group.

The traffic group name must already exist.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display traffic-group command displays information about traffic groups.

Example

# Display information about all traffic groups.

<HUAWEI> display traffic-group all
  ----------------------------------------------------------------------------  
  ID   Traffic-group-name                Rule-num   Tariff-level-num  Status    
  ----------------------------------------------------------------------------  
  1    abc                               2          1                 enable    
  2    huawei                            1          1                 disable   
  ----------------------------------------------------------------------------  
  Total: 2  
Table 13-127  Description of the display traffic-group all command output

Item

Description

ID

Traffic group ID.

Traffic-group-name

Name of the traffic group.

To configure a traffic group, run the traffic-group command.

Rule-num

Number of ACL rules in a traffic group.

Tariff-level-num

Number of tariff levels in a traffic group.

Status

Status of a traffic group:
  • enable: Traffic group is enabled.
  • disable: Traffic group is disabled.

To apply a traffic group, run the traffic-group enable command.

Total

Number of traffic groups.

# Display details about the unused traffic group huawei.

<HUAWEI> display traffic-group name huawei
  ---------------------------------------------------------------------------- 
  Acl-id                Tariff-level                            
  ---------------------------------------------------------------------------- 
  3000                      1           
  ----------------------------------------------------------------------------   
  Total: 1 

# Display details about the used traffic group abc.

<HUAWEI> display traffic-group name abc
Current Configuration:                                                          
  ----------------------------------------------------------------------------  
  Acl-id                Tariff-level                                            
  ----------------------------------------------------------------------------  
  3001                      1                                                   
  3002                      1                                                   
  ----------------------------------------------------------------------------  
  Total: 2                                                                      
Effective Configuration:                                                        
  ----------------------------------------------------------------------------  
  Acl-id                Tariff-level                                            
  ----------------------------------------------------------------------------  
  3001                      1                                                   
  ----------------------------------------------------------------------------  
  Total: 1  
Table 13-128  Description of the display traffic-group name command output

Item

Description

Acl-id

ACL rule that identifies traffic.

To specify an ACL rule, run the acl tariff-level command.

Tariff-level

Tariff level of traffic.

To configure a tariff level, run the acl tariff-level command.

Current Configuration

Current configuration.

Effective Configuration

Effective configuration.

Total

Number of ACL rules in a traffic group.

display traffic-group state

Function

The display traffic-group state command displays the traffic group status on each LPU.

Format

display traffic-group state

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After a traffic group is globally applied to the device using the traffic-group enable command, you can view the traffic group status on each LPU. The displayed information helps you check whether the traffic group is correctly used and also helps you locate faults.

Example

# Display use status of traffic groups.

<HUAWEI> display traffic-group state
  ----------------------------------------------------------------------------
  Slot-id                        State           
  ---------------------------------------------------------------------------- 
  5                              success         
  ---------------------------------------------------------------------------- 
  Total: 1
Table 13-129  Description of the display traffic-group state command output

Item

Description

Slot-id

Slot ID.

State

Traffic group status on each LPU:
  • success: indicates that the traffic group is successfully applied.
  • fail: indicates that the traffic group fails to be applied. For example, if internal ACL resources on a device are insufficient, the traffic group cannot be applied.
  • handling: indicates that the ACL is delivered when the LPU is processing the traffic group.
  • not support: indicates that the LPU does not support traffic group. Currently, traffic groups can be applied to only the X series cards.

To apply a traffic group, run the traffic-group enable command.

Related Topics

tariff-level

Function

The tariff-level command configures the QoS profile and accounting function for a tariff level.

The undo tariff-level command restores the default configuration.

By default, the QoS profile and accounting function are not configured for tariff levels.

Format

tariff-level tariff-level { qos-profile profile-name | accounting-on } *

undo tariff-level tariff-level [ qos-profile | accounting-on ]

Parameters

Parameter

Description

Value

tariff-level

Specifies the tariff level.

The value is an integer that ranges from 1 to 6.

qos-profile profile-name

Specifies the name of the QoS profile corresponding to the tariff level.

The QoS profile name must already exist.

accounting-on

Enables accounting for the tariff level.

-

Views

AAA domain view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After the tariff level is configured for classified traffic, you need to configure the QoS profile and accounting function for the tariff level to implement destination-based accounting. The QoS profile is used to collect traffic statistics based on destination addresses. After the accounting function is enabled, the device can send statistics to the RADIUS accounting server.

Prerequisites

The QoS profile has been created using the qos-profile command.

Example

# Configure the QoS profile huawei for tariff level 1 and enable the accounting function.

<HUAWEI> system-view
[HUAWEI] qos-profile name huawei
[HUAWEI-qos-huawei] statistic enable
[HUAWEI-qos-huawei] quit
[HUAWEI] aaa
[HUAWEI-aaa] domain huawei
[HUAWEI-aaa-domain-huawei] tariff-level 1 qos-profile huawei accounting-on

traffic-group

Function

The traffic-group command creates a traffic group and displays the traffic group view, or displays the view of an existing traffic group.

The undo traffic-group command deletes a traffic group.

By default, no traffic group exists on the device.

Format

traffic-group group-name

undo traffic-group group-name

Parameters

Parameter

Description

Value

group-name

Indicates the name of a traffic group.

The value is a string of 1 to 31 case-sensitive characters. It cannot be - or -- and cannot contain spaces or the following symbols: / \ : < > | @ ' % * " ?.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

By using the traffic group, the device can identify the traffic going to different destination addresses, apply different tariff levels for the traffic, and enforce different accounting policies.

Follow-up Procedure

  • After a traffic group is created, the traffic group view is displayed. Run the acl tariff-level command in the traffic group view to configure a tariff level.
  • Run the traffic-group enable command in the system view to make the traffic group effective.

Example

# Create the traffic group p1.

<HUAWEI> system-view
[HUAWEI] traffic-group p1
Related Topics

traffic-group enable

Function

The traffic-group enable command applies a traffic group to the device globally.

The undo traffic-group enable command restores the default configuration.

By default, no traffic group is applied to the device.

Format

traffic-group group-name enable

undo traffic-group group-name enable

Parameters

Parameter

Description

Value

group-name

Specifies the name of a traffic group that you want to apply to the device.

The traffic group name must already exist.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The traffic group takes effect for users only after it is globally applied to the device.

Prerequisites

The traffic group has been created using the traffic-group command.

Precautions

  • Only one traffic group can be applied to the device globally.

  • If you run this command multiple times, only the latest configuration takes effect.

  • If you modify a traffic group that has been applied, the modification takes effect only after the traffic group is applied to the device again by using this command.

Example

# Apply the traffic group p1 to the device globally.

<HUAWEI> system-view
[HUAWEI] traffic-group p1
[HUAWEI-traffic-group-p1] quit
[HUAWEI] traffic-group p1 enable
Related Topics
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 127901

Downloads: 88

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next