196
mac-authentication
Use
mac-authentication
to enable MAC authentication globally or on a port.
Use
undo mac-authentication
to disable MAC authentication globally or on a 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 feature both globally and on the port.
Examples
# Enable MAC authentication globally.
<Sysname> system-view
[Sysname] mac-authentication
# Enable MAC authentication on port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mac-authentication
Related commands
display mac-authentication
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.
Syntax
mac-authentication carry user-ip
undo mac-authentication carry user-ip
Default
A MAC authentication request does not include the user IP address.
Views
Ethernet interface view
Predefined user roles
network-admin