accounting-service-policy

Function

The accounting-service-policy command applies a DAA traffic policy globally.

The undo accounting-service-policy command restores the default configuration.

By default, no DAA traffic policy is applied globally.

This command is supported only on the NetEngine 8000 F1A.

Format

accounting-service-policy policy-name

undo accounting-service-policy

Parameters

Parameter Description Value
policy-name

Specifies the name of a DAA traffic policy.

The value is a string of 1 to 127 characters. The value is a string of case-insensitive characters, spaces not supported.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vas write

Usage Guidelines

Usage Scenario

To apply a DAA traffic policy globally, run the accounting-service-policy command.

Prerequisites

A DAA traffic policy has been configured, and a traffic classifier and traffic behavior have been bound to the policy.

Precautions

This command is supported only on the admin VS.

The accounting-service-policy and classifier behavior <behavior-name> [ precedence <precedence-value> ] commands are mutually exclusive.

Example

# Set the tariff level to level 1 for users in user group u1 when accessing network 10.0.0.0 with a 16-digit subnet mask , and apply a DAA traffic policy named p1 globally.
<HUAWEI> system-view
<HUAWEI> user-group u1
[~HUAWEI] acl 6000
[*HUAWEI-ucl-6000] rule permit ip source user-group u1 destination ip-address 10.0.0.0 0.0.255.255
[*HUAWEI-ucl-6000] quit
[*HUAWEI] traffic classifier c1
[*HUAWEI-classifier-c1] if-match acl 6000
[*HUAWEI-classifier-c1] quit
[*HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] tariff-level 1
[*HUAWEI-behavior-b1] quit
[*HUAWEI] traffic policy p1
[*HUAWEI-trafficpolicy-p1] classifier c1 behavior b1
[*HUAWEI-trafficpolicy-p1] commit
[~HUAWEI-trafficpolicy-p1] quit
[~HUAWEI] accounting-service-policy p1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >