18.7 Example for Configuring 802.1x Authentication
Networking Requirements
As shown in Figure 18-7, an enterprise connects the AC to the aggregation switch in bypass mode to manage the AP in centralized manner and provide a WLAN with the SSID huawei so that users can access the network anywhere at any time. The AC functions as the DHCP server to assign IP addresses to the AP and STA.
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, and the WPA2 security policy is used to provide the more secure CCMP encryption mode.
Data Preparation
| Item | Data |
|---|---|
| Management VLAN for the AP | VLAN 100 |
| Service VLAN for STAs | VLAN 101 |
| DHCP server | The AC functions as the DHCP server for the AP and STAs. |
| IP address pool for the AP | 192.168.100.2 to 192.168.100.254/24 |
| IP address pool for STAs | 192.168.101.3 to 192.168.101.254/24 DNS: 8.8.8.8 Address that cannot be assigned: 192.168.101.2 of Router |
| AC ID/Country code | 0/CN |
| AC's source interface | VLANIF 100 |
| WLAN radio profile | Name: radio WMM profile: wmm |
| WLAN service set | Name: huawei SSID: huawei WLAN ESS interface: WLAN-ESS1 Security profile: security Traffic profile: traffic Data forwarding mode: tunnel forwarding |
AP's gateway | VLANIF 100: 192.168.100.1 |
STA's gateway | VLANIF 101: 192.168.101.1 |
STA user name and password |
|
RADIUS server |
|
Configuration Roadmap
- Use the configuration wizard to configure the AP to go online on the AC. Configure a management VLAN and a service VLAN.
- 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 AC forwards the packet to the router after receiving the packet from the STA.
- Configure a RADIUS authentication scheme, reference the scheme in an AAA domain, and enable 802.1x authentication.
- Use the configuration wizard to configure the WLAN service and deliver the WLAN service to the AP.
Procedure
- Configure the switches and router.
# Add GE0/0/1 and GE0/0/2 on the access switch to VLAN 100 (the default VLAN of GE0/0/1).
# On the aggregation switch, add GE0/0/1 and GE0/0/2 to the management VLAN 100, and add GE0/0/2 and GE0/0/3 to the service VLAN 101.
# Assign an IP address 192.168.101.2 to GE0/0/1 on Router and configure the router as the default gateway for the AC.
# Configure a RADIUS server, configure a user name and password, and set the shared key to huawei123.
- Configure the AP to go online on the AC.
- Configure DNS.
# Choose and click
next to Vlanif101 in IP Pool List to configure the DNS server address for the STA.
- Configure a static route.
# Choose to create a static route.

- Configure RADIUS authentication.
# Choose to create an authentication scheme.

# Click the RADIUS Setting tab page to create a server template and set the shared key to the same as that configured on the RADIUS server.

# Configure an authentication server.

# Click the Domain Management tab page to create a domain, and then bind the authentication scheme and RADIUS server template to the domain.

- Enable 802.1x authentication globally.
# Choose to enable 802.1x authentication, and click Apply.

- Configure the WLAN service.
- Verify the configuration.































