![H3C S5120-SI Series Operation Manual Download Page 377](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174377.webp)
1-24
[Switch-radius-2000] primary authentication 10.11.1.1 1812
[Switch-radius-2000] primary accounting 10.11.1.1 1813
[Switch-radius-2000] key authentication abc
[Switch-radius-2000] key accounting abc
[Switch-radius-2000] user-name-format without-domain
[Switch-radius-2000] quit
# Configure authentication domain
system
and specify to use RADIUS scheme 2000 for users of the
domain.
[Switch] domain system
[Switch-isp-system] authentication default radius-scheme 2000
[Switch-isp-system] authorization default radius-scheme 2000
[Switch-isp-system] accounting default radius-scheme 2000
[Switch-isp-system] quit
# Enable 802.1X globally.
[Switch] dot1x
# Enable 802.1X for port GigabitEthernet 1/0/2.
[Switch] interface gigabitethernet 1/0/2
[Switch-GigabitEthernet1/0/2] dot1x
# Set the port access control method to
portbased
.
[Switch-GigabitEthernet1/0/2] dot1x port-method portbased
# Set the port authorization mode to
auto
.
[Switch-GigabitEthernet1/0/2] dot1x port-control auto
[Switch-GigabitEthernet1/0/2] quit
# Create VLAN 10.
[Switch] vlan 10
[Switch-vlan10] quit
# Specify port GigabitEthernet 1/0/2 to use VLAN 10 as its guest VLAN.
[Switch] dot1x guest-vlan 10 interface gigabitethernet 1/0/2
You can use the
display current-configuration
or
display interface gigabitethernet 1/0/2
command
to view your configuration. You can also use the
display vlan 10
command to verify whether the
configured guest VLAN functions normally when the device sends authentication triggering packets
(EAP-Request/Identity) for more than the specified number of times in the following cases:
z
When no users log in.
z
When a user goes offline.
After a user passes the authentication successfully, you can use the
display interface gigabitethernet
1/0/2
command to verity that port GigabitEthernet 1/0/2 has been added to the assigned VLAN 5.
ACL Assignment Configuration Example
Network requirements
As shown in
Figure 1-14
, a host is connected to port GigabitEthernet 1/0/1 of the device and must pass
802.1X authentication to access the Internet.