78To do… Use the command… Remarksview dot1xConfiguring 802.1X parameters for a portFollow these steps to configure 802.1X parameters for a port:To do… Use the command… Remarks1. Enter system view system-view —2. Enter Ethernet interface view interface interface-type interface-number —3. Specify the port authorizationmode for the portdot1x port-control {authorized-force | auto |unauthorized-force }Optionalauto by default4. Specify the port access controlmethod for the portdot1x port-method {macbased | portbased }Optionalmacbased by default5. Set the maximum number ofusers for the port dot1x max-user user-number Optional1024 by default• Enabling 802.1X on a port is mutually exclusive with adding the port to an aggregation group.• In EAP relay authentication mode, the switch encapsulates the 802.1X user information in the EAPattributes of RADIUS packets and sends the packets to the RADIUS server for authentication. In this case,you can configure the user-name-format command but it does not take effect. For information aboutthe user-name-format command, see AAA in the Security Command Reference.• If the username of a client contains the version number or one or more blank spaces, you can neitherretrieve information nor disconnect the client by using the username. However, you can use items such asIP address and connection index number to do so.Configuring the online user handshake functionThe online user handshake function allows the switch to send handshake messages to online usersto check whether the users are still online at the interval specified by the dot1x timerhandshake-period command. If the switch does not receive any response from an online userafter the switch has sent the handshake packet for the maximum number of times, which is set bythe dot1x retry command, the switch will set the user state to offline.Follow these steps to configure the online user handshake function:To do… Use the command… Remarks1. Enter system view system-view —2. Enter Ethernet interface view interface interface-type interface-number —