Example for Configuring Local EAP Authentication
Service Requirements
The local EAP server can be used to authenticate 802.1X users if no external authentication server is deployed.
Networking Requirements
- AC networking mode: Layer 2 bypass mode
- DHCP deployment mode: The AC functions as the DHCP server to assign IP addresses to APs, and SwitchB functions as the DHCP server to assign IP addresses to STAs.
- Service data forwarding mode: direct forwarding
- Authentication mode: Built-in EAP authentication
- Security policy: WPA-WPA2+802.1X+AES
Data Planning
Item |
Data |
---|---|
Management VLAN for APs |
VLAN100 |
Service VLAN for STAs |
VLAN101 |
DHCP server |
The AC functions as the DHCP server to assign IP addresses to APs, and SwitchB functions as the DHCP server to assign IP addresses to STAs. |
IP address pool for APs |
10.23.100.2-10.23.100.254/24 |
IP address pool for the STAs |
10.23.101.2-10.23.101.254/24 |
AC's source interface |
VLANIF 100: 10.23.100.1/24 |
AP group |
|
Regulatory domain profile |
|
SSID profile |
|
Security profile |
|
Local EAP authentication |
EAP server template: wlan-net Local user name and password:
|
Certificates and keys |
|
Authentication scheme |
|
802.1X access profile |
|
Authentication profile |
|
VAP profile |
|
Configuration Roadmap
- Configure network interworking of the AC, APs, and other network devices.
- Select Config Wizard to configure system parameters for the AC.
- Select Config Wizard to configure the APs to go online on the AC.
- Configure WLAN services and built-in EAP authentication on the AC using the WLAN configuration wizard.
- Configure local users.
- Complete service verification.
Configuration Notes
- No ACK mechanism is provided for multicast packet transmission on air interfaces. In addition, wireless links are unstable. To ensure stable transmission of multicast packets, they are usually sent at low rates. If a large number of such multicast packets are sent from the network side, the air interfaces may be congested. You are advised to configure multicast packet suppression to reduce impact of a large number of low-rate multicast packets on the wireless network. Exercise caution when configuring the rate limit; otherwise, the multicast services may be affected.
- In direct forwarding mode, you are advised to configure multicast packet suppression on switch interfaces connected to APs.
- In tunnel forwarding mode, you are advised to configure multicast packet suppression in traffic profiles of the AC.
Configure port isolation on the interfaces of the device directly connected to APs. If port isolation is not configured and direct forwarding is used, a large number of unnecessary broadcast packets may be generated in the VLAN, blocking the network and degrading user experience.
In tunnel forwarding mode, the management VLAN and service VLAN cannot be the same. Only packets from the management VLAN are transmitted between the AC and APs. Packets from the service VLAN are not allowed between the AC and APs.
Procedure
- Configure the network devices.# Add GE0/0/1 and GE0/0/2 on SwitchA (access switch) to VLAN 100 and VLAN 101.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] vlan batch 100 101 [SwitchA] interface gigabitethernet 0/0/1 [SwitchA-GigabitEthernet0/0/1] port link-type trunk [SwitchA-GigabitEthernet0/0/1] port trunk pvid vlan 100 [SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 101 [SwitchA-GigabitEthernet0/0/1] port-isolate enable [SwitchA-GigabitEthernet0/0/1] quit [SwitchA] interface gigabitethernet 0/0/2 [SwitchA-GigabitEthernet0/0/2] port link-type trunk [SwitchA-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 101 [SwitchA-GigabitEthernet0/0/2] quit
# Add GE0/0/1 on SwitchB (aggregation switch) to VLAN 100 and VLAN 101, GE0/0/2 to VLAN 100 and VLAN 101, and GE0/0/4 to VLAN104. Create VLANIF 104, and configure a default route with the next hop of the address of Router.<HUAWEI> system-view [HUAWEI] sysname SwitchB [SwitchB] vlan batch 100 101 104 [SwitchB] interface gigabitethernet 0/0/1 [SwitchB-GigabitEthernet0/0/1] port link-type trunk [SwitchB-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 101 [SwitchB-GigabitEthernet0/0/1] quit [SwitchB] interface gigabitethernet 0/0/2 [SwitchB-GigabitEthernet0/0/2] port link-type trunk [SwitchB-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 101 [SwitchB-GigabitEthernet0/0/2] quit [SwitchB] interface gigabitethernet 0/0/4 [SwitchB-GigabitEthernet0/0/4] port link-type trunk [SwitchB-GigabitEthernet0/0/4] port trunk pvid vlan 104 [SwitchB-GigabitEthernet0/0/4] port trunk allow-pass vlan 104 [SwitchB-GigabitEthernet0/0/4] quit [SwitchB] interface vlanif 104 [SwitchB-Vlanif104] ip address 10.23.104.1 24 [SwitchB-Vlanif104] quit [SwitchB] ip route-static 0.0.0.0 0.0.0.0 10.23.104.2
# Configure the IP address of GE0/0/1 on Router and a static route to the network segment for STAs.<Huawei> system-view [Huawei] sysname Router [Router] interface gigabitethernet 0/0/1 [Router-GigabitEthernet0/0/1] ip address 10.23.104.2 24 [Router-GigabitEthernet0/0/1] quit [Router] ip route-static 10.23.101.0 24 10.23.104.1
- Configure a DHCP server to assign IP addresses to STAs.# On SwitchB, configure the VLANIF 101 to assign IP addresses to STAs.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.
[SwitchB] dhcp enable [SwitchB] interface vlanif 101 [SwitchB-Vlanif101] ip address 10.23.101.1 24 [SwitchB-Vlanif101] dhcp select interface [SwitchB-Vlanif101] quit
- Configure system parameters for the AC.
- Configure APs to go online.
- Configure WLAN services.
- Configure local users.
# Choose
. The local user configuration page is displayed.# Click Create. The Create User page is displayed.
# Configure the user name and password for a local user, and set Access mode to 802.1X. You can manually add or batch import local users. This example describes how to manually add local users.
# Click OK.
- Verify the configuration.
After a STA is associated with a WLAN SSID and logs in with the correct user name and password, the user can access the network service normally.
The Windows 10 operating system is used as an example to describe how to set EAP access parameters.- Right-click the network icon in the Taskbar and select Open Network & Internet settings. Choose Wi-Fi > Manage known networks.
- Click Add a new network. In the dialog box that is displayed, set Network name, Security type to WPA2-Enterprise AES, EAP method to Protected EAP (PEAP), and Authentication method to Smart Card or other certificate.