Examples
# Configure a shared account for MAC authentication users, and set the username to abc and
password to plaintext string of xyz.
<Sysname> system-view
[Sysname] mac-authentication user-name-format fixed account abc password simple xyz
# Use MAC-based user accounts for MAC authentication users. Each MAC address must be in the
hexadecimal notation with hyphens, and letters are in upper case.
<Sysname> system-view
[Sysname] mac-authentication user-name-format mac-address with-hyphen uppercase
Related commands
display mac-authentication
reset mac-authentication critical vlan
Use reset mac-authentication critical vlan to remove users from the MAC authentication critical
VLAN on a port.
Syntax
reset mac-authentication critical vlan interface interface-type interface-number [ mac-address
mac-address ]
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
mac-address mac-address: Specifies a user by its MAC address. If you do not specify this option,
the command removes all users from the MAC authentication critical VLAN on the port.
Examples
# Remove the user with MAC address 1-1-1 from the MAC authentication critical VLAN on
Ten-GigabitEthernet 1/0/1.
<Sysname> reset mac-authentication critical vlan interface ten-gigabitethernet 1/0/1
mac-address 1-1-1
Related commands
display mac-authentication
mac-authentication critical vlan
reset mac-authentication critical vsi
Use reset mac-authentication critical vsi to remove users from the MAC authentication critical VSI
on a port.
Syntax
reset mac-authentication critical vsi interface interface-type interface-number [ mac-address
mac-address ]
228