Field
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/1/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/1/6
[Sysname-Ten-GigabitEthernet1/1/6] 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.
Use undo mac-authentication domain to restore the default.
Syntax
mac-authentication domain domain-name
Description
MAC address of the online user.
User status:
•
authenticated—The user has passed MAC authentication.
•
unauthenticated—The user failed MAC authentication.
102