1-15To do… Use the command… Remarksinterface interface-typeinterface-numberdot1xspecifiedportsIn port viewquitports.In systemviewdot1x port-control{ authorized-force |unauthorized-force | auto }[ interface interface-list ]interface interface-typeinterface-numberdot1x port-control{ authorized-force |unauthorized-force | auto }Set portaccesscontrol modefor specifiedports In port viewquitOptionalBy default, an 802.1x-enabled portoperates in the auto mode.In systemviewdot1x port-method{ macbased | portbased }[ interface interface-list ]interface interface-typeinterface-numberdot1x port-method{ macbased | portbased }Set portaccessmethod forspecifiedports In port viewquitOptionalThe default port access method isMAC-address-based (that is, themacbased keyword is used bydefault).Set authentication methodfor 802.1x usersdot1xauthentication-method{ chap | pap | eap }OptionalBy default, a switch performsCHAP authentication in EAPterminating mode.Enable online userhandshaking dot1x handshake enableOptionalBy default, online userhandshaking is enabled.Enter Ethernet port view interface interface-typeinterface-number —Enable the handshakepacket protection function dot1x handshake secureOptionalBy default, the handshake packetprotection function is disabled.