Field
Authentication attempts: successful 1,
failed 0
MAC Addr
Auth state
mac-authentication
Use mac-authentication to enable MAC authentication globally or on a specific port.
Use undo mac-authentication to disable MAC authentication globally or on a specific port.
Syntax
mac-authentication
undo mac-authentication
Default
MAC authentication is not enabled globally or on any port.
Views
System view, Ethernet interface view
Predefined user roles
network-admin
Usage guidelines
To use MAC authentication on a port, you must enable the function both globally and on the port.
Examples
# Enable MAC authentication globally.
<Sysname> system-view
[Sysname] mac-authentication
# Enable MAC authentication on port Ten-GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] mac-authentication
Related commands
display mac-authentication
mac-authentication domain
Use mac-authentication domain to specify a global authentication domain in system view or a
port-specific authentication domain in Ethernet interface view for MAC authentication users.
Description
MAC authentication statistics, including the number of successful and
unsuccessful authentication attempts.
MAC address of the online user.
User status:
•
authenticated—The user has passed MAC authentication.
•
unauthenticated—The user failed MAC authentication.
110