< Home

static-user username macaddress format

Function

The static-user username macaddress format command sets the user name for authenticating a static user to a MAC address.

The undo static-user username macaddress format command restores the default setting.

By default, the user name for authenticating a static user is not set to a MAC address.

Format

static-user username macaddress format { with-hyphen [ normal ] [ colon ] | without-hyphen } [ uppercase ] [ password-with-macaddress ]

undo static-user username macaddress format

Parameters

Parameter

Description

Value

with-hyphen [ normal ] [ colon ] | without-hyphen

Specifies the format of a MAC address.
  • with-hyphen: indicates that the MAC address contains hyphens (-), for example, 0005-e01c-02e3.
  • with-hyphen normal: indicates that the MAC address contains hyphens (-), for example, 00-05-e0-1c-02-e3.
  • with-hyphen colon: indicates that the MAC address contains colons (:), for example, 0005:e01c:02e3.
  • with-hyphen normal colon: indicates that the MAC address contains colons (:), for example, 00:05:e0:1c:02:e3.
  • without-hyphen: indicates that the MAC address does not contain hyphens (-) or colons (:), for example, 0005e01c02e3.

-

uppercase

Configures a MAC address in uppercase format as the user name for authentication.

If this parameter is not specified, a MAC address in lowercase format is used.

-

password-with-macaddress

Configures a MAC address as the password.

If this parameter is not specified, the password configured in the static-user password cipher password command is used.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

In network deployment, static IP addresses are assigned to dumb terminals such as printers, that is, their users are configured as static users. To authenticate a static user, you can run this command to set the user name and password for authentication to a MAC address. This command takes priority over the static-user username format-include { ip-address | mac-address | system-name } command and static-user password cipher password command.

Example

# Set the MAC address with hyphens (-) as the user name and password for authenticating a static user.

<HUAWEI> system-view
[HUAWEI] static-user username macaddress format with-hyphen password-with-macaddress
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >