7-6
Default Level
2: System level
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:
z
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.
z
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
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...