105
# After the user passes authentication, use the
display connection
command to display the online user
information.
<Device> display connection
Index=29 ,Username=aaa@2000
MAC=00e0-fc12-3456
IP=N/A
IPv6=N/A
Total 1 connection(s) matched.
ACL assignment configuration example
Network requirements
As shown in
, a host connects to the device’s port GigabitEthernet 1/0/1, and the device
performs RADIUS servers for authentication, authorization, and accounting.
Perform MAC authentication on port GigabitEthernet 1/0/1 to control Internet access. Ensure that an
authenticated user can access the Internet but the FTP server at 10.0.0.1.
Use MAC-based user accounts for MAC authentication users. The MAC addresses are hyphen separated
and in lower case.
Figure 39
Network diagram for ACL assignment
Internet
Switch
Host
192.168.1.10
GE1/0/1
FTP server
10.0.0.1
RADIUS servers
Auth:10.1.1.1
Acct:10.1.1.2
Configuration procedure
NOTE:
Check that the RADIUS server and the access device can reach each other.
1.
Configure the ACL assignment.
# Configure ACL 3000 to deny packets destined for 10.0.0.1.
<Sysname> system-view
[Sysname] acl number 3000
[Sysname-acl-adv-3000] rule 0 deny ip destination 10.0.0.1 0
[Sysname-acl-adv-3000] quit
2.
Configure RADIUS-based MAC authentication on the device.
# Configure the RADIUS scheme.
[Sysname] radius scheme 2000