[Device] dot1x
# Enable 802.1X on port Ten-GigabitEthernet 1/0/1.
[Device] interface ten-gigabitethernet 1/0/1
[Device-Ten-GigabitEthernet1/0/1] dot1x
[Device-Ten-GigabitEthernet1/0/1] quit
# Enable MAC-based access control on the port. (Optional. MAC-based access control is the
default setting.)
[Device] interface ten-gigabitethernet 1/0/1
[Device-Ten-GigabitEthernet1/0/1] dot1x port-method macbased
# Specify aabbcc.net as the mandatory domain.
[Device-Ten-GigabitEthernet1/0/1] dot1x mandatory-domain aabbcc.net
Verifying the configuration
Use the display dot1x interface ten-gigabitethernet 1/0/1 command to verify the 802.1X configuration.
After an 802.1X user gets online by entering correct username and password, you can use the display
dot1x sessions command to view the user connection information.
77