< 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

Indicates that the user IP address is used as the user name.

-

mac-address

Indicates that the user MAC address is used as the user name.

-

system-name

Indicates that the access device name is used as the user name. To set 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.

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 >