Configure 802.1X settings for a port

You can configure 802.1X port access control settings for one or more ports.

To configure 802.1X settings for a port:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select Security > Port Authentication > Advanced > Port Authentication.


    The previous figure shows part of the page only.

  3. Select one or more interfaces by taking one of the following actions:
    • To configure a single interface, select the check box associated with the interface, or type the interface number in the Go To Interface field and click the Go button.

    • To configure multiple interfaces with the same settings, select the check box associated with each interface.

    • To configure all interfaces with the same settings, select the check box in the heading row.

  4. From the Control Mode menu, select an option:
    • Auto: The authenticator port access entity (PAE) sets the controlled port mode to reflect the outcome of the authentication exchanges between the supplicant, authenticator, and the authentication server. This is the default setting.

    • Force Authorized: The authenticator PAE unconditionally sets the controlled port to authorized.

    • Force Unauthorized: The authenticator PAE unconditionally sets the controlled port to unauthorized.

  5. From the Host Mode menu, select an option to specify the number of clients and the type of clients that can be authenticated and authorized on the port:
    • Single-Host: One data client only can be authenticated on the port. After authentication succeeds, access is granted to this client only but not to other clients. Only when this client logs off can another client be authenticated and authorized on the port and granted access to the port.

    • Multi-Host: Initially, one data client only can be authenticated on the port. After authentication succeeds, access is granted to all clients connected to the port.

      As an example, use this option when a WiFi access point is connected to an access-controlled port of a NAS. After the access point is authenticated by the NAS, the port is authorized for traffic from not just the access point but also from all the WiFi clients connected to the access point.

    • Multi-Domain: One data client and one voice client can be authenticated on the port. After authentication succeeds, the data and voice clients are granted access.

      As an example, use this option when an IP phone is connected to a NAS port and a laptop is connected to the hub port of the IP phone. Both devices must be authenticated to access the network services behind the NAS. The voice and data domains are segregated. (The RADIUS server attribute Cisco-AVPair = device-traffic-class=voice is used to identify a voice client.)

    • Multi-Auth: One voice client and multiple data clients can be authenticated on the port. After authentication succeeds, access is granted to all clients.

      As an example, use this option when a network of laptops and an IP phone are connected to a NAS port via a hub.

    • Multi-Domain-Multi-Host: Initially, one voice client and one data client can be authenticated on the port. After the data client is authenticated, access is granted to all clients connected to the port and they are considered data clients.

      As an example, use this option when an IP phone is connected to a NAS port and a virtual machine (VM) controller is connected to the hub port of the IP phone. The VM controller hosts multiple VMs. Both the VM controller and the IP phone must be authenticated to access the network services behind the NAS. The voice and data domains are segregated. After the VM controller is authenticated, traffic is allowed from all VMs hosted by the VM controller. Note that if the data client is authenticated first, the voice client can be authenticated only using 802.1x.

  6. From the MAB menu, select to enable or disable MAC-based authentication bypass (MAB) for 802.1x unaware clients.

    MAB functions only if the port control mode is MAC-based. The default selection is Disable.

  7. From the MAB Auth Type menu, select a MAB authentication option:
    • EAP-MD5: The MD5 hash of the MAC address is sent as the password in the EAP message (Radius Attribute 79) to the authentication server.

    • PAP: The MAC address of the client is sent as the password, similar to the format of Attribute 1, in clear text as part of the User-Password message (Radius Attribute 2).

    • CHAP: A randomly generated 16-octet challenge is sent as the CHAP-Challenge message (Radius Attribute 60) along with the CHAP-Password message (Radius Attribute 3). The CHAP ID is a unique number that is used to identify the session. The MAC address of the client is retrieved and formatted using the configured Attribute 1 format. Then, this information is used as a secret to derive the information for the CHAP-Password message. The information for the CHAP-Password message is calculated as MD5 (with the CHAP-ID, secret, and CHAP-Challenge).

  8. In the Quiet Period field, enter the period in seconds during which the interface does not attempt to acquire a supplicant after an earlier authentication exchange failed.

    Enter a value in the range from 0 to 65535. A quiet period of 0 means that the interface does not acquire a supplicant at all. The default is 60 seconds.

  9. In the Transmit Period field, enter the period in seconds after which the interface sends an EAPOL EAP Request/Identity frame to the supplicant.

    Enter a value in the range from 0 to 65535. The default is 30 seconds.

  10. In the GuestVLAN ID field, enter the ID of the guest VLAN.

    Enter a value in the range from 0 to 4093. The default is 0.

  11. In the Unauthenticated VLAN ID field, enter the ID for the unauthenticated VLAN ID

    A user is allowed three attempts to enter the correct credentials. Otherwise, the client is placed in the unauthenticated VLAN. Enter a value in the range from 0 to 4093. The default is 0.

  12. In the Max ReAuth Requests field, enter the maximum number of reauthentication requests that are allowed.

    Enter a value in the range from 1 to 20. The default value is 2.

  13. In the Supplicant Timeout field, enter the period in second after which the interface times out the supplicant.

    Enter a value in the range from 0 to 65535. The default is 30 seconds.

  14. In the Server Timeout field, enter the period after which the interface times out the authentication server.

    Enter a value in the range from 0 to 65535. The default is 30 seconds.

  15. In the Maximum Requests field, enter the maximum number of times that the interface sends an EAPOL EAP request/identity to the supplicant before timing out the supplicant.

    Enter a value in the range from 1 to 10. The default is 2.

  16. From the PAE Capabilities menu, select Authenticator or Supplicant to specify the function of the port access entity (PAE).

    The default is Authenticator.

  17. From the Periodic Reauthentication menu, select to enable or disable the periodic reauthentication option of the supplicant.

    The default is Disable.

  18. If you enable the periodic reauthentication option, in the Reauthentication Period field, enter the period in seconds after which the supplicant must be reauthenticated.

    Enter a value in the range from 0 to 65535. The default is 3600 seconds.

  19. From the User Privileges menu, select admin or guest to limit the type of users that can be granted access.

    By default, both admin and guest users can be granted access.

  20. In the Max Users field, enter the maximum number of supplicants that the interface can support.

    The default is 48.

  21. In the Authentication Order columns, enter the order in which authentication must occur for up to three methods:
    • Method 1: The default selection is DOT1X. The other options are MAB, and CAPTIVE PORTAL. You cannot disable Method 1.

    • Method 2: The default selection is MAB. The other options are None, DOT1X, and CAPTIVE PORTAL. Disable Method 2 by selecting None.

    • Method 3: The default selection is CAPTIVE PORTAL. The other options are None, DOT1X, and MAB. Disable Method 3 by selecting None.

    As an example, if a client tries 802.1X authentication (based on the user and client credentials) and authentication fails, the interface proceeds with MAB authentication. If that method fails too, the interface proceeds with captive portal authentication. If that method fails too, the client cannot be authenticated.

  22. Click the Apply button.

    Your settings are saved.

  23. To save the settings to the running configuration, click the Save icon.