---
title: "Prototyping RADIUS Policies Part 2: EAP-PEAP | IPTel"
description: "Part 2 of our RADIUS prototyping series: test EAP-PEAP authentication against your RADIUS server using wpa_supplicant and eapol_test."
---

[IPTel Blog: Cisco Networking, Wi-Fi and Security Insights](https://blog.iptel.com.au)

# [Prototyping RADIUS Policies Part 2: EAP-PEAP | IPTel](https://blog.iptel.com.au/prototyping-radius-server-policies-part-2)

 Written by [Mark McSherry](https://blog.iptel.com.au/author/mark-mcsherry) | 24 July 2026, 3:24:05 am Z

This is part 2 of my blog series on rapid prototyping without any real networking equipment.

In [part 1](https://blog.iptel.com.au/prototyping-radius-server-policies-part-1) I covered PAP and CHAP authentication and later on in [part 3](https://blog.iptel.com.au/prototyping-radius-server-policies-part-3) we will be covering EAP-TLS (X.509 certificate based) authentication.

There is a wealth of information on the internet about configuring Radius Servers (Cisco ISE or Aruba ClearPass) to perform a multitude of operations.

This blog series aims to help the network administrator in configuring their RADIUS Server policies.

Related reading

- [Prototyping RADIUS Server Policies: Part 1](https://blog.iptel.com.au/prototyping-radius-server-policies-part-1)
- Prototyping RADIUS Server Policies: Part 2 (this blog)
- [Prototyping RADIUS Server Policies: Part 3](https://blog.iptel.com.au/prototyping-radius-server-policies-part-3)

## Introduction

Let's get more creative and look at testing some EAP methods. The most common method found in enterprises is probably EAP-PEAP with MS-CHAPv2 inner authentication. Typical real-world use case examples include Windows/OSX/Android supplicants where the credentials are typically looked up in Active Directory or LDAP.

There is a great test utility from the wpa\_supplicant suite (a suite of tools to test EAP methods, and simulate a supplicant and/or wireless access points).

You can do amazing things with wpa\_supplicant when combined with a real wireless access point. But what if you just want to simulate the EAP authentication without all the nuts and bolts of a wireless infrastructure? Let's face it, our AAA server ultimately processes Radius packets which are the result of the interactions of the supplicant and NAD (authenticator). Keep reading to find out how to mimic a real EAP conversation to a Radius server.

## EAP Framework in wpa\_supplicant

As mentioned in the introduction, the wpa\_supplicant package contains the tools we need, and this suite is available in most Linux distributions - in the Red Hat/CentOS distribution it can be installed with yum:

```
yum install wpa_supplicant
```

In this blog we’re only interested in the utility called eapol\_test contained in the package.

Related reading

- [Troubleshooting with Catalyst Center](https://blog.iptel.com.au/troubleshooting-with-cisco-catalyst-center)
- [Cisco Catalyst Center Assurance](https://blog.iptel.com.au/blog/cisco-catalyst-center-assurance)
- [5 Ways Catalyst Center Solves your Challenges](https://info.iptel.com.au/cisco-dna)

## EAP-PEAP Example Using eapol\_test

There is a command line component as well as a configuration file. The configuration file (let's call it mschap.conf) should contain the following text - edit it appropriately - however the only things you should need to edit are the identity (MSCHAP username) and the password, which are the credentials stored in your AAA or AD.

The ca\_cert is a nice to have and it will be used during the TLS setup to validate the Radius Server certificate.

```
network={        ssid="example"        key_mgmt=WPA-EAP        eap=PEAP        identity="bob"        anonymous_identity="anonymous"        password="AbCd123"        phase2="auth=MSCHAPV2"        # Line below performs server certificate validation.        # It is optional - just comment it out if you have no certificate        ca_cert="/home/someuser/Downloads/MegaRootCert.cer"}
```

Now you can execute a PEAP authentication as follows:

```
eapol_test -c mschap.conf -s RadiusS3cret -a 192.168.21.101 -M '00:00:00:00:00:10' -N '6:d:2'
```

The Radius server in my example is Cisco ISE but it could be any Radius product that supports EAP. In my example the Radius server listens on 192.168.21.101.

We shall pretend to be a Wi-Fi client with MAC address (Calling-Station-Id) of 00:00:00:00:00:10.

The -N '6:d:2' is a handy argument to add additional Radius attributes to the request. The effect of the argument is to send a Service-Type=Framed attribute (see RFC2865 section 5.6). The value 6 is the radius attribute value that specifies 'Service-Type', and 2 is the decimal constant that defines 'Framed'.

The output of the command is quite verbose and mostly not needed. We generally look out for the last few lines of the command’s output, to reveal a success or failure.

```
MPPE keys OK: 1  mismatch: 0SUCCESS
```

Related reading

- [Zero Trust Architecture (ZTA) Introduction](https://blog.iptel.com.au/zero-trust-architecture)
- [Cisco Catalyst Center Beginners Guide](https://blog.iptel.com.au/cisco-catalyst-center-beginners-guide)

## EAP-PEAP Testing: FAQs

### What Is eapol\_test?

A test utility from the wpa\_supplicant project that acts as an 802.1X client and sends EAP authentication straight to a RADIUS server.

### Why Test EAP-PEAP with eapol\_test?

It lets you validate RADIUS and Cisco ISE policies without a switch, wireless controller or real client device.

### What Is EAP-PEAP?

PEAP builds a TLS tunnel to the RADIUS server, then authenticates the user inside it — typically with an MS-CHAPv2 username and password.

### What Do the Other Parts of the Series Cover?

Part 1 covers PAP and CHAP authentication, and Part 3 covers EAP-TLS certificate authentication.

## Prototyping RADIUS Server Policies: Summary

The ISE server and the eapol\_test utility enter into the usual EAP exchange and the result is true to the real world.

You can test your Radius server’s EAP policy logic without ever having to touch a real networking device! This is a real productivity boost. But be aware that there is no substitute for the real experience since the real devices may not always do the right thing.

Related reading

- [Cisco ISE: Top 5 Unique Features](https://blog.iptel.com.au/why-cisco-ise)
- [Cisco Catalyst Center Enablement](https://blog.iptel.com.au/cisco-catalyst-center-enablement)
- [Cisco SD-Access Lab: Part 1](https://blog.iptel.com.au/cisco-sd-access-lab-part-1)

 

As with all work you undertake on your RADIUS installation, take great care to have a backup and backout plan: this tends to be critical infrastructure, so take care when making any changes to a live network.

 

### Need Help With Network Security?

IPTel's [Cisco security](https://iptel.com.au/technologies/security-and-cisco-ise) engineers can review your environment, or start with our [free Security Assessment](https://score.iptel.com.au/security-assessment). If that would be useful, [get in touch with the IPTel team](https://iptel.com.au/contact-us) or email [sales@iptel.com.au](mailto:sales@iptel.com.au).

[View full post](https://blog.iptel.com.au/prototyping-radius-server-policies-part-2)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Mark McSherry"
  },
  "dateModified" : "2026-10-21T11:16:29.459Z",
  "datePublished" : "2026-07-24T03:24:05Z",
  "headline" : "Prototyping RADIUS Server Policies: Part 2",
  "image" : {
    "@type" : "ImageObject",
    "height" : 800,
    "url" : "https://6831594.fs1.hubspotusercontent-ap1.net/hubfs/6831594/Blogs/Prototyping%20RADIUS%20Server%20Policies/Prototyping%20RADIUS%20Server%20Policies%20Part%202%20%28Instagram%29-feature.jpg",
    "width" : 800
  },
  "mainEntityOfPage" : "https://blog.iptel.com.au/prototyping-radius-server-policies-part-2",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60.0,
      "url" : "https://cdn2.hubspot.net/hubfs/6831594/IP%20-%20CMYK_HiRes.jpg",
      "width" : 85.096954
    },
    "name" : "Blog"
  }
}
```