Example for Configuring 802.1X Authentication
Service Requirements
Due to openness of the WLAN, there are security risks. To meet requirements for high security, 802.1X authentication is used and the RADIUS server authenticates identities of STAs.
Networking Requirements
- DHCP deployment mode: The AP functions as a DHCP server to assign IP addresses to STAs.
Data Planning
Item |
Data |
---|---|
Service VLAN for STAs |
VLAN 101 |
DHCP server |
The AP functions as a DHCP server to assign IP addresses to STAs. |
IP address pool for STAs |
10.23.101.3-10.23.101.254/24 DNS: 8.8.8.8 Address that cannot be assigned: 10.23.101.2 (IP address of the router) |
SSID profile |
|
Security profile |
|
Authentication profile |
|
VAP profile |
|
STA's gateway |
VLANIF101: 10.23.101.1 |
STA user name and password |
|
RADIUS server |
|
Configuration Roadmap
- Use the WLAN configuration wizard to configure WLAN services. Configure 802.1X and RADIUS authentication and set RADIUS server parameters.
- Configure a DNS server address in the DHCP address pool of the service VLAN to provide the DNS service for the STA.
- Configure a static route so that the AP forwards the packet to the router after receiving the packet from the STA.
- Connect STAs to the WLAN to verify the configuration.
Procedure
- Configure the switches and router.
# Add GE0/0/1 and GE0/0/3 on the aggregation switch to VLAN 101.
# Assign an IP address 10.23.101.2/24 to GE1/0/0 on Router and configure the router as the default gateway for the AP.
# Configure a RADIUS server, configure a user name and password, and set the shared key to huawei123.
- Configure WLAN services.
- Configure DNS.Configure the DNS server as required. The common methods are as follows:
- In interface address pool scenarios, run the dhcp server dns-list ip-address &<1-8> command in the VLANIF interface view.
- In global address pool scenarios, run the dns-list ip-address &<1-8> command in the IP address pool view.
- Configure a static route.
- Verify the configuration.
- The WLAN with SSID wlan-net is available for STAs connected to the AP.
- The wireless PC obtains an IP address after it associates with the WLAN.
- Use the 802.1X authentication client on a STA and enter the correct user name and password. The STA is authenticated and can access the WLAN. You must configure the client for PEAP authentication.
Configuration on the Windows XP operating system:
- On the Association tab page of the Wireless network properties dialog box, add SSID wlan-net, set the authentication mode to WPA2, and encryption algorithm to AES.
- On the Authentication tab page, set EAP type to PEAP and click Properties. In the Protected EAP Properties dialog box, deselect Validate server certificate and click Configure. In the displayed dialog box, deselect Automatically use my Windows logon name and password and click OK.
Configuration on the Windows 7 operating system:
- Access the Manage wireless networks page, click Add, and select Manually create a network profile. Add SSID wlan-net. Set the authentication mode to WPA2-Enterprise, and encryption algorithm to AES. Click Next.
- Click Change connection settings. On the Wireless Network Properties page that is displayed, select the Security tab page and click Settings. In the Protected EAP Properties dialog box, deselect Validate server certificate and click Configure. In the displayed dialog box, deselect Automatically use my Windows logon name and password and click OK.
- On the Wireless Network Properties page, click Advanced settings. On the Advanced settings page that is displayed, select Specify authentication mode, set the identity authentication mode to User authentication, and click OK.
After wireless users connect to the network, run the display access-user access-type dot1x command on the AP to view users in 802.1X authentication mode. The user huawei has gone online successfully.
<HUAWEI> display access-user access-type dot1x ------------------------------------------------------------------------------ UserID Username IP address MAC Status ------------------------------------------------------------------------------ 460 huawei 10.23.101.254 8000-6e74-e78a Success ------------------------------------------------------------------------------ Total: 1, printed: 1