It is time to talk about 802.1x. What is 802.1x’s answer is simply an IEEE standard ! That provides connection point oriented network access control. 802.1x is a part of the 802.1 standard. 802.1x provides identity authentication to the devices that want to set a LAN or WLAN.
Authentication operation steps are below :
Initialization : On detection of a new supplicant, the port on the switch (authenticator) is enabled and set to the “unauthorized” state. In this state, only 802.1X traffic is allowed; other traffic, such as the Internet Protocol (and with that TCP and UDP), is dropped.
Initiation : To initiate authentication the authenticator will periodically transmit EAP-Request Identity frames to a special Layer 2 address on the local network segment. The supplicant listens on this address, and on receipt of the EAP-Request Identity frame it responds with an EAP-Response Identity frame containing an identifier for the supplicant such as a User ID. The authenticator then encapsulates this Identity response in a RADIUS Access-Request packet and forwards it on to the authentication server. The supplicant may also initiate or restart authentication by sending an EAPOL-Start frame to the authenticator, which will then reply with an EAP-Request Identity frame.
Negotiation : (Technically EAP negotiation) The authentication server sends a reply (encapsulated in a RADIUS Access-Challenge packet) to the authenticator, containing an EAP Request specifying the EAP Method (The type of EAP based authentication it wishes the supplicant to perform). The authenticator encapsulates the EAP Request in an EAPOL frame and transmits it to the supplicant. At this point the supplicant can start using the requested EAP Method, or do an NAK (“Negative Acknowledgement”) and respond with the EAP Methods it is willing to perform.
Authentication : If the authentication server and supplicant agree on an EAP Method, EAP Requests and Responses are sent between the supplicant and the authentication server (translated by the authenticator) until the authentication server responds with either an EAP-Success message (encapsulated in a RADIUS Access-Accept packet), or an EAP-Failure message (encapsulated in a RADIUS Access-Reject packet). If authentication is successful, the authenticator sets the port to the “authorized” state and normal traffic is allowed, if it is unsuccessful the port remains in the “unauthorized” state. When the supplicant logs off, it sends an EAPOL-logoff message to the authenticator, the authenticator then sets the port to the “unauthorized” state, once again blocking all non-EAP traffic.
802.1x CONFIGURATION
SWITCH_A(conf)#aaa new model SWITCH_A(conf)#aaa authentication dot1x default group radius0 SWITCH_A(conf)#dot1x system auth control SWITCH_A(conf-if)#int range f0/1-24 SWITCH_A(conf)#dot1x port-control auto