Example: Setting Up 802.1X for Single Supplicant or Multiple Supplicant Configurations on an EX Series Switch
802.1x Port-Based Network Access Control (PNAC) authentication on EX Series switches provides three types of authentication to meet the access needs of your enterprise LAN:
- Authenticate the first host (supplicant) on an authenticator port, and allow all others also connecting to have access.
- Authenticate only one supplicant on an authenticator port at one time.
- Authenticate multiple supplicants on an authenticator port. Multiple supplicant mode is used in VoIP configurations.
This example configures an EX4200 switch to use IEEE 802.1X to authenticate supplicants that use three different administrative modes:
Requirements
This example uses the following hardware and software components:
- JUNOS Release 9.0 or later for EX Series switches
- One EX Series switch acting as an authenticator port access entity (PAE). The ports on the authenticator PAE form a control gate that blocks all traffic to and from supplicants until they are authenticated.
- One RADIUS authentication server that supports 802.1X. The authentication server acts as the backend database and contains credential information for hosts (supplicants) that have permission to connect to the network.
Before you configure the ports for 802.1X authentication, be sure you have:
- Installed your EX Series switch.
- Performed the initial switch configuration. See Connecting and Configuring an EX Series Switch (J-Web Procedure).
- Performed basic bridging and VLAN configuration on the switch. See Example: Setting Up Basic Bridging and a VLAN for an EX Series Switch.
- Configured users on the authentication server.
Overview and Topology
As shown in Figure 1, the topology contains an EX4200 access switch connected to the authentication server on port ge-0/0/10. Interfaces ge-0/0/8, ge-0/0/9, and ge-0/0/11 will be configured for three different administrative modes.
Figure 1: Topology for Configuring Supplicant Modes
Table 1: Components of the Supplicant Mode Configuration Topology
To configure the administrative modes to support supplicants in different areas of the Enterprise network:
- Configure access port ge-0/0/8 for single supplicant mode authentication.
- Configure access port ge-0/0/9 for single secure supplicant mode authentication.
- Configure access port ge-0/0/11 for multiple supplicant mode authentication.
Single supplicant mode authenticates only the first supplicant that connects to an authenticator port. All other supplicants connecting to the authenticator port after the first supplicant has connected successfully, whether they are 802.1X-enabled or not, are permitted free access to the port without further authentication. If the first authenticated supplicant logs out, all other supplicants are locked out until a supplicant authenticates.
Single-secure supplicant mode authenticates only one supplicant to connect to an authenticator port. No other supplicant can connect to the authenticator port until the first supplicant logs out.
Multiple supplicant mode authenticates multiple supplicants individually on one authenticator port. If you configure a maximum number of devices that can be connected to a port through port security, the lesser of the configured values is used to determine the maximum number of supplicants allowed per port.
Configuration of 802.1X to Support Multiple Supplicant Modes
To configure 802.1X authentication to support multiple supplicants, perform these tasks:
CLI Quick Configuration
To quickly configure the ports with different 802.1X authentication modes, copy the following commands and paste them into the switch terminal window:
[edit]
set protocols
dot1x authenticator interface ge-0/0/8 supplicant single
set protocols dot1x authenticator
interface ge-0/0/9 supplicant single-secure
set protocols dot1x authenticator
interface ge-0/0/11 supplicant multiple
Step-by-Step Procedure
Configure the administrative mode on the interfaces:
- Configure the supplicant mode as single on interface ge-0/0/8:
[edit protocols]
user@switch# set dot1x authenticator interface ge-0/0/8 supplicant single - Configure the supplicant mode as single secure
on interface ge-0/0/9:
[edit protocols]
user@switch# set dot1x authenticator interface ge-0/0/9 supplicant single-secure - Configure multiple supplicant mode on interface ge-0/0/11:
[edit protocols]
user@switch# set dot1x authenticator interface ge-0/0/11 supplicant multiple
Results
Check the results of the configuration:
- [edit]
- user@access-switch> show configuration
- protocols {
-
- dot1x {
-
- authenticator {
-
- interface {
-
- ge-0/0/8.0 {
-
- supplicant single;
- )
-
- ge-0/0/9.0 {
-
- supplicant single-secure;
- )
-
- ge-0/0/11.0 {
-
- supplicant multiple;
- )
- }
- }
- }
- }
Verification
To confirm that the configuration is working properly, perform these tasks:
Verifying the 802.1X Configuration
Purpose
Verify the 802.1X configuration on interfaces ge-0/0/8, ge-0/0/9, and ge-0/0/5.
Action
Verify the 802.1X configuration with the operational mode command show dot1x interface:
user@switch> show dot1x interface ge-0/0/8.0
detail
ge-0/0/8.0 Role: Authenticator Administrative state: Auto Supplicant mode: Single Number of retries: 3 Quiet period: 60 seconds Transmit period: 30 seconds Reauthentication: Enabled Reauthentication interval: 3600 seconds Supplicant timeout: 30 seconds Supplicant: user100, 00:00:00:00:22:22 Operational state: Authenticated Reauthentication due in 506 seconds
user@switch> show dot1x interface ge-0/0/9.0
detail
ge-0/0/9.0 Role: Authenticator Administrative state: Auto Supplicant mode: Single Secure Number of retries: 3 Quiet period: 60 seconds Transmit period: 30 seconds Reauthentication: Enabled Reauthentication interval: 3600 seconds Supplicant timeout: 30 seconds Supplicant timeout: 30 seconds Supplicant: user101, 00:13:00:00:28:22 Operational state: Authenticated Reauthentication due in 917 seconds
user@switch> show dot1x interface ge-0/0/11.0
detail
ge-0/0/11.0 Role: Authenticator Administrative state: Auto Supplicant mode: Multiple Number of retries: 3 Quiet period: 60 seconds Transmit period: 30 seconds Reauthentication: Enabled Reauthentication interval: 3600 seconds Supplicant timeout: 30 seconds Supplicant: user102, 00:10:12:e0:28:22 Operational state: Authenticated Reauthentication due in 1788 seconds
Meaning
The Supplicant mode output field displays the configured administrative mode for each interface. Interface ge-0/0/8.0 displays Single supplicant mode. Interface ge-0/0/9.0 displays Single Secure supplicant mode. Interface ge-0/0/11.0 displays Multiple supplicant mode.