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.
static-user username format-include { ip-address | mac-address | system-name }
undo static-user username format-include
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. |
- |
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.