211
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] mac-authentication
Related commands
display mac-authentication
mac-authentication access-user log enable
Use
mac-authentication access-user log enable
to enable logging for MAC authentication users.
Use
undo mac-authentication access-user log enable
to disable logging for MAC authentication
users.
Syntax
mac-authentication access-user log enable
[
failed-login
|
logoff
|
successful-login
] *
undo mac-authentication access-user log enable
[
failed-login
|
logoff
|
successful-login
] *
Default
Logging for MAC authentication users is disabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
failed-login
: Specifies logs generated for login failures of MAC authentication users.
logoff
: Specifies logs generated for logoffs of MAC authentication users.
successful-login
: Specifies logs generated for successful logins of MAC authentication users.
Usage guidelines
As a best practice, disable this feature to prevent excessive output of logs for MAC authentication
users.
If you do not specify any parameters, this command enables all logging functions for MAC
authentication users.
Examples
# Enable logging for login failures of MAC authentication users.
<Sysname> system-view
[Sysname] mac-authentication access-user log enable failed-login
Related commands
info-center source maca logfile deny
(
Network Management and Monitoring Command
Reference
)
mac-authentication carry user-ip
Use
mac-authentication carry user-ip
to include user IP addresses in MAC authentication
requests sent to an IMC server.
Use
undo mac-authentication carry user-ip
to restore the default.