The mac-authen username command configures the user name format for MAC address authentication.
The undo mac-authen username restores the default user name format.
By default, the MAC address without hyphens (-) is used as the user name and password for MAC address authentication.
mac-authen username { fixed username [ password cipher password ] | macaddress [ format { with-hyphen | without-hyphen } [ password cipher password ] ] | dhcp-option option-code { circuit-id | remote-id } password cipher password }
undo mac-authen username [ fixed username [ password cipher password ] | macaddress [ format { with-hyphen | without-hyphen } [ password cipher password ] ] | dhcp-option option-code [ password cipher password ] ]
Parameter |
Description |
Value |
---|---|---|
fixed username |
Specifies the fixed user name for MAC address authentication. |
The value is a string of 1 to 64 case-sensitive that do not contain spaces and question marks (?). |
password cipher password |
Specifies the password displayed in cipher text for MAC
address authentication.
NOTE:
If fixed user names are configured in the VLANIF interface view, Eth-Trunk interface view or Port group view, the password must be set. If a MAC address is configured as the user name in the Port group view, the password cannot be set. |
The value is a case-sensitive string without question marks (?) or spaces. The password contains 1 to 128 characters in plain text or 48 to 188 characters in cipher text. NOTE:
To improve security, it is recommended that the password contains at least two types of lower-case letters, upper-case letters, numerals, and special characters, and contains at least 6 characters. |
macaddress |
Specifies that the user name in MAC address authentication is the MAC address. |
- |
format |
Specifies the format of the MAC address. |
- |
with-hyphen |
Specifies that the MAC address with hyphens is used as the user name, for example, 0005-e01c-02e3. |
- |
without-hyphen |
Specifies that the MAC address without hyphens is used as the user name, for example, 0005e01c02e3. |
- |
dhcp-option option-code |
Specifies the name of the MAC address authentication user
to a specified DHCP option.
NOTE:
In VLANIF interface view, the parameter does not support. |
The value is an integer. In the current version, the value is fixed as 82. |