3com S7906E Guide De Référence

Page de 2327
 
1-6 
Parameters 
fixed: Uses the MAC authentication username type of fixed username. 
account name: Specifies the fixed username. The name argument is a case-insensitive string of 1 to 55 
characters and defaults to mac. 
password { cipher | simple } password: Specifies the password for the fixed username. Specify the 
cipher keyword to display the password in cipher text or the simple keyword to display the password in 
plain text. In the former case, the password can be either a string of 1 to 63 characters in plain text or a 
string of 24 or 88 characters in cipher text. In the latter case, the password must be a string of 1 to 63 
characters in plain text. 
mac-address: Uses the source MAC address of a user as the username for authentication.  
with-hyphen: Indicates that the MAC address must include “-“, like xx-xx-xx-xx-xx-xx. The letters in the 
address must be in lower case. 
without-hyphen: Indicates that the MAC address must not include “-“, like xxxxxxxxxxxx. The letters in 
the address must be in lower case. 
Description 
Use the mac-authentication user-name-format command to configure the MAC authentication 
username type and, if the type of fixed username is used, the username and password for MAC 
authentication. 
Use the undo mac-authentication user-name-format command to restore the default. 
By default, each user’s source MAC address is used as the username and password for MAC 
authentication, with “-“ in the MAC address. 
Note that: 
When the type of MAC address is used, each user’s source MAC address is used as both the 
username and password for MAC authentication. 
In cipher display mode, a password in plain text with no more than 16 characters will be encrypted 
into a password in cipher text with 24 characters, and a password in plain text with 16 to 63 
characters will be encrypted into a password in cipher text with 88 characters. For a password with 
24 characters, if it can be decrypted by the system, it will be treated as a cipher-text one; otherwise, 
it will be treated as a plain-text one.  
Related commands: display mac-authentication
Examples 
# Configure the username for MAC authentication as abc, and the password displayed in plain text as 
xyz
<Sysname> system-view 
[Sysname] mac-authentication user-name-format fixed account abc password simple xyz 
reset mac-authentication statistics 
Syntax 
reset mac-authentication statistics [ interface interface-list ]