default-user-name-template

Function

The default-user-name-template command binds a user name template to a Broadband Access Server (BAS) interface.

The undo default-user-name-template command cancels the binding of user name templates.

By default, no user name template is bound to a BAS interface. That is, a BAS interface uses the global user name template.

This command is supported only on the NetEngine 8000 F1A.

Format

default-user-name-template template-name

undo default-user-name-template

Parameters

Parameter Description Value
template-name

Specifies a user name template.

The value is a string of 1 to 31 case-sensitive characters without spaces.

Views

BAS interface view (GE), BAS interface view (VE), BAS interface view (trunk)

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bras-control write

Usage Guidelines

Usage Scenario

To use a user name template to generate a user name for a user on a BAS interface, bind the user name template to the BAS interface.

Prerequisites

Before configuring this command, you must create corresponding user name templates in the AAA view through the default-user-name template command.

Configuration Impact

If the default-user-name-template command is run more than once, the latest configuration overrides the previous one. The configuration takes effect only for users who are activated after the command is run.

Precautions

This command is supported only on the admin VS.

If a user name template is bound to a BAS interface using the default-user-name-template command and the user name generation mode is configured using the default-user-name include command in the AAA view, the user name template bound to the BAS interface takes effect. If using a user name template to generate a user name fails, the user name generation mode configured in the AAA view is still not used. Instead, allow the system to automatically generate a user name.

Example

# Bind the user name template kouki to the GE 0/1/1 BAS interface.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] default-user-name template kouki include sysname
[~HUAWEI-aaa] commit
[~HUAWEI-aaa] quit
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] commit
[~HUAWEI-GigabitEthernet0/1/1] bas
[~HUAWEI-GigabitEthernet0/1/1-bas] default-user-name-template kouki
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >