108
Displaying and maintaining MAC authentication
To do…
Command…
Remarks
Display MAC authentication
information
display mac-authentication
[
interface
interface-list
] [
|
{
begin
|
exclude
|
include
}
regular-
expression
]
Available in any view
Clear MAC authentication
statistics
reset mac-authentication statistics
[
interface
interface-list
]
Available in user view
MAC authentication configuration examples
Local MAC authentication configuration example
Network requirements
In the network in
, perform local MAC authentication on port GigabitEthernet 1/0/1 to control
Internet access. Make sure of the following:
•
All users belong to domain
aabbcc.net
.
•
Local users use their MAC address as the username and password for MAC authentication. The
MAC addresses are separated by hyphens and in lower case.
•
The access device detects whether a user has gone offline every 180 seconds. When a user fails
authentication, the device does not authenticate the user within 180 seconds.
Figure 40
Local MAC authentication
Configuration procedure
1.
Configure local MAC authentication
# Add a local user account, set both the username and password to 00-e0-fc-12-34-56, the MAC
address of the user host, and enable LAN access service for the account.
<Router> system-view
[Router] local-user 00-e0-fc-12-34-56
[Router-luser-00-e0-fc-12-34-56] password simple 00-e0-fc-12-34-56
[Router-luser-00-e0-fc-12-34-56] service-type lan-access
[Router-luser-00-e0-fc-12-34-56] quit
# Configure ISP domain
aabbcc.net
to perform local authentication for LAN access users.
[Router] domain aabbcc.net
[Router-isp-aabbcc.net] authentication lan-access local
[Router-isp-aabbcc.net] quit