< Home

static-user username format-include

Function

The static-user username format-include command sets the user name for a static user in authentication.

The undo static-user username format-include command restores the default user name for the static user.

By default, the name of a static user consists of system-name and ip-address. For example, if the access device name is huawei and user IP address is 1.1.1.1, the static user name is huawei1.1.1.1.

Format

static-user username format-include { ip-address | mac-address | system-name }

undo static-user username format-include

Parameters

Parameter

Description

Value

ip-address

Specifies the user IP address as the static user name.

-

mac-address

Specifies the user MAC address as the static user name.

-

system-name

Specifies the access device name as the static user name.

To configure the device name, run the sysname command.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When a static user triggers authentication through an ARP packet, you can run the static-user username format-include command to set the user name for the static user. The access device then sends the user name to the authentication server.

If the user name of a static user contains a device name whose length exceeds 16 bytes, the system uses only the first 16 bytes of the device name.

This function takes effect only for users who go online after this function is successfully configured.

Example

# Set the user IP address as the static user name for authentication.

<HUAWEI> system-view
[HUAWEI] static-user username format-include ip-address 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >