Contents

Introduction

Prerequisites

Requirements

Components Used

Conventions

Background Information

PEAP Overview

PEAP Phase One: TLS-Encrypted Channel

PEAP Phase Two: EAP-Authenticated Communication

Configure

Network Diagram

Configurations

Configure the Microsoft Windows 2008 Server as a Domain Controller

Install and Configure DHCP Services on the Microsoft Windows 2008 Server

Install and Configure the Microsoft Windows 2008 Server as a CA Server

Connect Clients to the Domain

Install the Network Policy Server on the Microsoft Windows 2008 Server

Install a Certificate

Configure the Network Policy Server Service for PEAP-MS-CHAP v2 Authentication

Add Users to the Active Directory

Configure the Wireless LAN Controller and LAPs

Configure the WLC for RADIUS Authentication

Configure a WLAN for the Clients

Configure the Wireless Clients for PEAP-MS-CHAP v2 Authentication

Verify

Troubleshoot

Related Information

Introduction

This document describes how to configure the PEAP with MS-CHAP authentication with the Microsoft NPS as the RADIUS server.

Prerequisites

Requirements

Cisco recommends that you have knowledge of these topics:

- Knowledge of basic Windows 2008 installation

- Knowledge of Cisco controller installation

Ensure that these requirements have been met before you attempt this configuration:

- Install the Microsoft Windows Server 2008 on each of the servers in the test lab.

- Update all service packs.

- Install the controllers and lightweight access points (LAPs).

- Configure the latest software updates.

For initial installation and configuration information for the Cisco 5508 Series Wireless Controllers, refer to the Cisco 5500 Series Wireless Controller Installation Guide.

Note: This document is intended to give the readers an example on the configuration required on a Microsoft server for PEAP-MS-CHAP authentication. The Microsoft Windows server configuration presented in this document has been tested in the lab and found to work as expected. If you have trouble with the configuration, contact Microsoft for help. The Cisco Technical Assistance Center (TAC) does not support Microsoft Windows server configuration.

Microsoft Windows 2008 installation and configuration guides can be found on Microsoft Tech Net.

Components Used

The information in this document is based on these software and hardware versions:

- Cisco 5508 Wireless Controller that runs firmware Version 7.4

- Cisco Aironet 3602 Access Point (AP) with Lightweight Access Point Protocol (LWAPP)

- Windows 2008 Enterprise Server with NPS, Certificate Authority (CA), dynamic host control protocol (DHCP), and Domain Name System (DNS) services installed

- Microsoft Windows 7 client PC

- Cisco Catalyst 3560 Series Switch

The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.

Conventions

Refer to the Cisco Technical Tips Conventions for more information on document conventions.

Background Information

This document provides a sample configuration for the Protected Extensible Authentication Protocol (PEAP) with Microsoft Challenge Handshake Authentication Protocol (MS-CHAP) version 2 authentication in a Cisco Unified Wireless network with the Microsoft Network Policy Server (NPS) as the RADIUS server.

PEAP Overview

PEAP uses Transport Level Security (TLS) to create an encrypted channel between an authenticated PEAP client, such as a wireless laptop, and a PEAP authenticator, such as Microsoft NPS or any RADIUS server. PEAP does not specify an authentication method, but provides additional security for other Extensible Authentication Protocols (EAPs), such as EAP-MS-CHAP v2, that can operate through the TLS-encrypted channel provided by PEAP. The PEAP authentication process consists of two main phases.

PEAP Phase One: TLS-Encrypted Channel

The wireless client associates with the AP. An IEEE 802.11-based association provides an open system or shared key authentication before a secure association is created between the client and the access point. After the IEEE 802.11-based association is successfully established between the client and the access point, the TLS session is negotiated with the AP. After authentication is successfully completed between the wireless client and NPS, the TLS session is negotiated between the client and NPS. The key that is derived within this negotiation is used to encrypt all subsequent communication.

PEAP Phase Two: EAP-Authenticated Communication

EAP communication, which includes EAP negotiation, occurs inside the TLS channel created by PEAP within the first stage of the PEAP authentication process. The NPS authenticates the wireless client with EAP-MS-CHAP v2. The LAP and the controller only forward messages between the wireless client and RADIUS server. The Wireless LAN Controller (WLC) and the LAP cannot decrypt these messages because it is not the TLS end point.

The RADIUS message sequence for a successful authentication attempt (where the user has supplied valid password-based credentials with PEAP-MS-CHAP v2)  is:

1. The NPS sends an identity request message to the client: EAP-Request/Identity.

2. The client responds with an identity response message: EAP-Response/Identity.

3. The NPS sends an MS-CHAP v2 challenge message: EAP-Request/EAP-Type=EAP MS-CHAP-V2 (Challenge).

4. The client responds with an MS-CHAP v2 challenge and response: EAP-Response/EAP-Type=EAP-MS-CHAP-V2 (Response).

5. The NPS sends back an MS-CHAP v2 success packet when the server has successfully authenticated the client: EAP-Request/EAP-Type=EAP-MS-CHAP-V2 (Success).

6. The client responds with an MS-CHAP v2 success packet when the client has successfully authenticated the server: EAP-Response/EAP-Type=EAP-MS-CHAP-V2 (Success).

7. The NPS sends an EAP-type-length-value (TLV) that indicates successful authentication.

8. The client responds with an EAP-TLV status success message.

9. The server completes authentication and sends an EAP-Success message in plain text. If VLANs are deployed for client isolation, the VLAN attributes are included in this message.

Configure

In this section, you are presented with the information to configure PEAP-MS-CHAP v2.

Note: Use the Command Lookup Tool to obtain more information on the commands used in this section. Only registered Cisco users can access internal Cisco tools and information.

Network Diagram

This configuration uses this network setup:

Network Diagram

In this setup, a Microsoft Windows 2008 server performs these roles:

- Domain controller for the domain

- DHCP/DNS server

- CA server

- NPS – to authenticate the wireless users

- Active Directory – to maintain the user database

The server connects to the wired network through a Layer 2 switch as shown. The WLC and the registered LAP also connect to the network through the Layer 2 switch.

The wireless clients use Wi-Fi Protected Access 2 (WPA2) - PEAP-MS-CHAP v2 authentication to connect to the wireless network.

Configurations

The objective of this example is to configure the Microsoft 2008 server, Wireless LAN Controller, and Light Weight AP to authenticate the wireless clients with PEAP-MS-CHAP v2 authentication. There are three major steps in this process:

1. Configure the Microsoft Windows 2008 Server.

2. Configure the WLC and the Light Weight APs.

3. Configure the wireless clients.

Configure the Microsoft Windows 2008 Server

In this example, a complete configuration of  the Microsoft Windows 2008 server includes these steps:

1. Configure the server as a domain controller.

2. Install and configure DHCP services.

3. install and configure the server as a CA server.

4. Connect clients to the domain.

5. Install the NPS.

6. Install a certificate.

7. Configure the NPS for PEAP authentication.

8. Add users to the Active Directory.

Configure the Microsoft Windows 2008 Server as a Domain Controller

Complete these steps in order to configure the Microsoft Windows 2008 server as a domain controller:

1. Click Start > Server Manager.

2. Click Roles > Add Roles.

3. Click Next.

4. Select the service Active Directory Domain Services, and click Next.

5. Review the Introduction to Active Directory Domain Services, and click Next.

6. Click Install to begin the installation process.

The installation proceeds and completes.

7. Click Close this wizard and launch the Active Directory Domain Services Installation Wizard (dcpromo.exe) to continue installation and configuration of the Active Directory.

8. Click Next to run the Active Directory Domain Services Installation Wizard.

9. Review the information on Operating System Compatibility, and click Next.

10. Click Create a new domain in a new forest > Next in order to create a new domain.

11. Enter the full DNS name for the new domain, and click Next.

12. Select the forest functional level for your domain, and click Next.

13. Select the domain functional level for your domain, and click Next.

14. Ensure DNS server is selected, and click Next.

15. Click Yes for the installation wizard to create a new zone in DNS for the domain.

16. Select the folders Active Directory must use for its files, and click Next.

17. Enter the Administrator Password, and click Next.

18. Review your selections, and click Next.

The installation proceeds.

19. Click Finish to close the wizard.

20. Restart the server for the changes to take effect.

Install and Configure DHCP Services on the Microsoft Windows 2008 Server

The DHCP service on the Microsoft 2008 server is used to provide IP addresses to the wireless clients. Complete these steps in order to install and configure DHCP services:

1. Click Start > Server Manager.

2. Click Roles > Add Roles.

3. Click Next.

4. Select the service DHCP Server, and click Next.

5. Review the Introduction to DHCP Server, and click Next.

6. Select the interface that the DHCP server must monitor for requests, and click Next.

7. Configure the default DNS settings the DHCP server must provide to clients, and click Next.

8. Configure WINS if the network supports WINS.

9. Click Add to use the wizard to create a DHCP Scope or click Next to create a DHCP scope later. Click Next to continue.

10. Enable or disable DHCPv6 support on the server, and click Next.

11. Configure IPv6 DNS settings if DHCPv6 was enabled in the preceding step. Click Next to continue.

12. Provide domain administrator credentials to authorize the DHCP server in Active Directory, and click Next.

13. Review the configuration on the confirmation page, and click Install to complete the install.

The installation proceeds.

14. Click Close to close the wizard.

The DHCP Server is now installed.

15. Click Start > Administrative Tools> DHCP to configure DHCP service.

16. Expand the DHCP server (shown in the previous image for this example), right-click IPv4, and choose New Scope to create a DHCP Scope.

17. Click Next to configure the new scope via the New Scope Wizard.

18. Provide a name for the new scope (Wireless Clients in this example), and click Next.

19. Enter the range of available IP addresses that can be used for DHCP leases. Click Next to continue.

20. Create an optional list of excluded addresses. Click Next to continue.

21. Configure the lease time, and click Next.

22. Click Yes, I want to configure these options now, and click Next.

23. Enter the IP address of the default gateway for this scope, click Add >  Next.

24. Configure the DNS domain name and DNS server to be used by the clients. Click Next to continue.

25. Enter WINS information for this scope if the network supports WINS. Click Next to continue.

26. To activate this scope, click Yes, I want to activate this scope now > Next.

27. Click Finish to complete and close the wizard.

Install and Configure the Microsoft Windows 2008 Server as a CA Server

PEAP with EAP-MS-CHAP v2 validates the RADIUS server based on the certificate present on the server. Additionally, the server certificate must be issued by a public CA that is trusted by the client computer (that is, the public CA certificate already exists in the Trusted Root Certification Authority folder on the client computer certificate store).

Complete these steps in order to configure the Microsoft Windows 2008 server as a CA server that issues the certificate to the NPS:

1. Click Start > Server Manager.

2. Click Roles > Add Roles.

3. Click Next.

4. Select the service Active Directory Certificate Services, and click Next.

5. Review the Introduction to Active Directory Certificate Services, and click Next.

6. Select the Certificate Authority, and click Next.

7. Select Enterprise, and click Next.

8. Select Root CA, and click Next.

9. Select Create a new private key,and click Next.

10. Click Next on Configure Cryptography for CA.

11. Click Next to accept the default Common name for this CA.

12. Select the length of time this CA certificate is valid, and click Next.

13. Click Next to accept the default Certificate database location.

14. Review the configuration, and click Install to start the Active Directory Certificate Services.

15. After the install is completed, click Close.

Connect Clients to the Domain

Complete these steps in order to connect the clients to the wired network and to download the domain specific information from the new domain:

1. Connect the clients to the wired network with a straight through Ethernet cable.

2. Boot up the client, and log in with the client username and password.

3. Click Start > Run, enter cmd, and click OK.

4. At the command prompt, enter ipconfig, and click Enter to verify that DHCP works correctly and that the client received an IP address from the DHCP server.

5. In order to join the client to the domain, click Start,right-click Computer, choose Properties, and choose Change Settings at the bottom right.

6. Click Change.

7. Click Domain, enter the domain name, wireless, for this example, and click OK.

8. Enter username administrator and the password specific to the domain to which the client joins. This is the administrator account in the Active Directory on the server.

9. Click OK, and click OK again.

10. Click Close > Restart Now to restart the computer.

11. Once the computer restarts, log in with: Username = Administrator; Password = <domain password>; Domain = wireless.

12. Click Start, right-click Computer, choose Properties, and choose Change Settings at the bottom right to verify that you are on the wireless domain.

13. The next step is to verify that the client received the CA certificate (trust) from the server.

14. Click Start, enter mmc, and press Enter.

15. Click File, and click Add/Remove snap-in.

16. Choose Certificates, and click Add.

17. Click Computer account, and click Next.

18. Click Local computer,and click Next.

19. Click OK.

20. Expand the Certificates (Local Computer) and Trusted Root Certification Authorities folders, and click Certificates. Find wireless domain CA cert in the list. In this example, the CA cert is called wireless-WIN-MVZ9Z2UMNMS-CA.

21. Repeat this procedure to add more clients to the domain.

Install the Network Policy Server on the Microsoft Windows 2008 Server

In this setup, the NPS is used as a RADIUS server to authenticate wireless clients with PEAP authentication. Complete these steps in order to install and configure NPS on the Microsoft WIndows 2008 server:

1. Click Start > Server Manager.

2. Click Roles > Add Roles.

3. Click Next.

4. Select the service Network Policy and Access Services, and click Next.

5. Review the Introduction to Network Policy and Access Services, and click Next.

6. Select Network Policy Server,and click Next.

7. Review the confirmation, and click Install.

After the install is completed, a screen similar to this one is displayed.

8. Click Close.

Install a Certificate

Complete these steps in order to install the computer certificate for the NPS:

1. Click Start, enter mmc, and press Enter.

2. Click File > Add/Remove Snap-in.

3. Choose Certificates, and click Add.

4. Choose Computer account, and click Next.

5. Select Local Computer,and click Finish.

6. Click OK to return to the Microsoft Management Console (MMC).

7. Expand the Certificates (Local Computer) and Personal folders, and click Certificates.

8. Right-click in the white space beneath the CA certificate, and choose All Tasks > Request New Certificate.

9. Click Next.

10. Select Domain Controller, and click Enroll.

11. Click Finish once the certificate is installed.

The NPS certificate is now installed.

12. Ensure that the Intended Purpose of the certificate reads Client Authentication, Server Authentication.

Configure the Network Policy Server Service for PEAP-MS-CHAP v2 Authentication

Complete these steps in order to configure the NPS for authentication:

1. Click Start > Administrative Tools > Network Policy Server.

2. Right-click NPS (Local),and choose Register server in Active Directory.

3. Click OK.

4. Click OK.

5. Add the Wireless LAN Controller as an authentication, authorization, and accounting (AAA) client on the NPS.

6. Expand RADIUS Clients and Servers. Right-click RADIUS Clients, and choose New RADIUS Client.

7. Enter a Friendly name (WLC in this example), the management IP address of the WLC (192.168.162.248 in this example) and a shared secret. The same shared secret is used to configure the WLC.

8. Click OK to return to the previous screen.

9. Create a new Network Policy for wireless users. Expand Policies, right-click Network Policies,and choose New.

10. Enter a policy name for this rule (Wireless PEAP, in this example), and click Next.

11. To have this policy allow only wireless domain users, add these three conditions, and click Next:

- Windows Groups - Domain Users

- NAS Port Type - Wireless - IEEE 802.11

- Authentication Type - EAP

12. Click Access granted to grant connection attempts that match this policy, and click Next.

13. Disable all the authentication methods under Less secure authentication methods.

14. Click Add, select PEAP, and click OK to enable PEAP.

15. Select Microsoft: Protected EAP (PEAP), and click Edit. Ensure the previously created domain controller certificate is selected in the Certificate issued drop-down list, and click OK.

16. Click Next.

17. Click Next.

18. Click Next.

19. Click Finish.

Add Users to the Active Directory

In this example, the user database is maintained on the Active Directory. Complete these steps in order to add users to the Active Directory database:

1. Open Active Directory Users and Computers. Click Start > Administrative Tools > Active Directory Users and Computers.

2. In the Active Directory Users and Computers console tree, expand the domain, right-click Users > New, and choose User.

3. In the New Object – User dialog box, enter the name of the wireless user. This example uses the name Client1 in the First name field and Client1 in the User logon name field. Click Next.

4. In the New Object – User dialog box, enter a password of your choice in the Password and Confirm password fields. Ensure that the User must change password at next logon check box is not checked, and click Next.

5. In the New Object – User dialog box, click Finish.

6. Repeat steps 2 through 4 in order to create additional user accounts.

Configure the Wireless LAN Controller and LAPs

Configure the wireless devices (the Wireless LAN Controllers and LAPs) for this setup.

Configure the WLC for RADIUS Authentication

Configure the WLC to use the NPS as the authentication server. The WLC must be configured in order to forward the user credentials to an external RADIUS server. The external RADIUS server then validates the user credentials and provides access to the wireless clients.

Complete these steps in order to add the NPS as a RADIUS server in the Security > RADIUS Authentication page:

1. Choose Security > RADIUS > Authentication from the controller interface to display the RADIUS Authentication Servers page. Click New in order to define a RADIUS server.

2. Define the RADIUS server parameters. These parameters include the RADIUS Server IP Address, Shared Secret, Port Number, and Server Status. The Network User and Management check boxes determine if RADIUS-based authentication applies to management and network (wireless) users. This example uses the NPS as the RADIUS server with an IP address of 192.168.162.12. Click Apply.

Configure a WLAN for the Clients

Configure the service set identifier (SSID) (WLAN) to which the wireless clients connects. In this example, create the SSID, and name it PEAP.

Define the Layer 2 Authentication as WPA2 so that the clients perform EAP-based authentication (PEAP-MS-CHAP v2 in this example) and use the advanced encryption standard (AES) as the encryption mechanism. Leave all other values at their defaults.

Note: This document binds the WLAN with the management interfaces. When you have multiple VLANs in your network, you can create a separate VLAN and bind it to the SSID. For information on how to configure VLANs on WLCs, refer to VLANs on Wireless LAN Controllers Configuration Example.

Complete these steps in order to configure a WLAN on the WLC:

1. Click WLANs from the controller interface in order to display the WLANs page. This page lists the WLANs that exist on the controller.

2. Choose New in order to create a new WLAN. Enter the WLAN ID and the WLAN SSID for the WLAN, and click Apply.

3. To configure the SSID for 802.1x, complete these steps:

1. Click the General tab and enable the WLAN.

2. Click the  Security > Layer 2 tabs, set Layer 2 security to WPA + WPA2, check the WPA+WPA2 Parameters (for example,  WPA2 AES) check boxesas needed, and click 802.1x as the Authentication Key Management.

3. Click the Security > AAA Servers tabs, choose the IP address of the NPS from the Server 1 drop-down list, and click Apply.

Configure the Wireless Clients for PEAP-MS-CHAP v2 Authentication

Complete these steps to configure the wireless client with the Windows Zero Config Tool to connect to the PEAP WLAN.

1. Click the Network icon in the task bar. Click the PEAP SSID, and click Connect.

2. The client must now be connected to the network.

3. If the connection fails, try to reconnect to the WLAN. If the issue persists, refer to the Troubleshoot section.

Verify

There is currently no verification procedure available for this configuration.

Troubleshoot

If your client did not connect to the WLAN, this section provides information you can use to troubleshoot the configuration.

There are two tools that can be used to diagnose 802.1x authentication failures: the debug client command and the Event Viewer in Windows.

If you perform a client debug from the WLC it is not resource intensive and does not impact service. To start a debug session, open the command-line interface (CLI) of the WLC, and enter debug client mac address, where the mac address is the wireless mac address of the wireless client that is unable to connect. While this debug runs, try to connect the client; there must be output on the CLI of the WLC that looks similar to this example:

This is an example of an issue that could occur with a misconfiguration. Here, the WLC debug shows the WLC has moved into the authentication state, which means the WLC waits for a response from the NPS. This is usually due to an incorrect shared secret on either the WLC or the NPS. You can confirm this via the Windows Server Event Viewer. If you do not find a log, the request never made it to the NPS.

Another example that is found from the WLC debug is an access-reject. An access-reject shows that the NPS received and rejected the client credentials. This is an example of a client that receives an access-reject:

When you see an access-reject, check the logs on the Windows Server Event logs to determine why the NPS responded to the client with an access-reject.

A successful authentication has an access-accept in the client debug, as seen in this example:

If you want to troubleshoot access-rejects and response timeouts it requires access to the RADIUS server. The WLC acts as an authenticator that passes EAP messages between the client and the RADIUS server. A RADIUS server that responds with an access-reject or response timeout must be examined and diagnosed by the manufacturer of the RADIUS service.

Note: TAC does not provide technical support for third-party RADIUS servers; however, the logs on the RADIUS server generally explain why a client request was rejected or ignored.

In order to troubleshoot access-rejects and response timeouts from the NPS, examine the NPS logs in the Windows Event Viewer on the server.

1. Click Start > Administrator Tools > Event Viewer to start the Event Viewer and review the NPS logs.

2. Expand Custom Views > Server Roles > Network Policy and Access.

In this section of the Event View, there are logs of passed and failed authentications. Examine these logs to troubleshoot why a client is not passing authentication. Both passed and failed authentications show up as Informational. Scroll through the logs to find the username that has failed authentication and received an access-reject based on the WLC debugs.

This is an example of the NPS when it denies a user access:

When you review a deny statement in the Event Viewer, examine the Authentication Details section. In this example, you can see that the NPS denied the user access due to an incorrect username:

The Event View on the NPS also assists when you need to troubleshoot if the WLC does not receive a response back from the NPS.  This is usually caused by an incorrect shared secret between the NPS and the WLC.

In this example, the NPS discards the request from the WLC due to an incorrect shared secret:

Related Information

- Cisco Technical Support & Downloads