accounting-start-delay

Function

The accounting-start-delay command enables a device to send an accounting-start packet about a dual-stack user after a specified delay.

The undo accounting-start-delay command restores the default configuration.

By default, a device sends an accounting-start packet about a dual-stack user immediately after the user obtains the first IP address.

This command is supported only on the NetEngine 8000 F1A.

Format

accounting-start-delay delay-time online user-type { ppp | ipoe | l2tp | static } *

accounting-start-delay delay-time offline [ user-type { ppp | ipoe | l2tp | static } * ]

undo accounting-start-delay

undo accounting-start-delay delay-time online user-type { ppp | ipoe | l2tp | static } *

undo accounting-start-delay delay-time offline [ user-type { ppp | ipoe | l2tp | static } * ]

Parameters

Parameter Description Value
delay-time

Specifies a delay in sending accounting-start packets.

The value is an integer ranging from 1 to 300, in seconds.

user-type

Specifies a user type.

-

ppp

Specifies a PPP user.

-

ipoe

Specifies an IPoE user.

-

l2tp

Specifies an L2TP user.

-

static

Specifies a static user.

-

Views

AAA domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
aaa-access write

Usage Guidelines

Usage Scenario

A dual-stack PPP, IPoE, L2TP, or static user may be assigned two IP addresses. By default, a device sends an accounting-start packet immediately after a dual-stack user obtains the first IP address. The device then sends a real-time accounting packet after the dual-stack user obtains the other IP address. If you do not want the device to send accounting packets repeatedly, run the accounting-start-delay command to delay the sending of accounting-start packets, allowing the device to send only one accounting-start packet after both IP addresses are assigned to a user.

After the command is run, traffic is blocked when only one stack's address is obtained. After all dual-stack addresses are obtained, the traffic is unblocked, and accounting-start packets carrying dual-stack addresses are sent.

If the user-type parameter is not specified, the accounting-start-delay <delay-time> offline command takes effect only for PPPoE and PPPoLNS users. If a user does not obtain both IP addresses before the specified delay expires, the user is forcibly logged out.

If the user-type parameter is specified, the device takes an action based on the offline or online configuration for the specified type of user who does not obtain both IP addresses before the specified delay expires. If offline is specified, the device forcibly logs out the user after the specified delay expires. If online is specified, the user stays online and the device sends an accounting-start packet after the specified delay expires.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Configure a device to send an accounting-start packet about a dual-stack PPPOE user after a delay of 10s. If the dual-stack user does not obtain all assigned IP addresses before the specified delay expires, the device forcibly logs out the user.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] domain domain1
[*HUAWEI-aaa-domain-domain1] commit
[~HUAWEI-aaa-domain-domain1] accounting-start-delay 10 offline
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >