Example for Configuring MAC Address Authentication
Service Requirements
The WLAN authentication client cannot be installed on wireless devices providing public services, such as wireless printers and phones, so use MAC address authentication. The RADIUS server authenticates wireless devices using their MAC addresses. No authentication is required when STAs access the WLAN, facilitating the use of WLAN services.
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 Excluded IP address: 10.23.101.2 (IP address of the router) |
SSID profile |
|
Security profile |
|
MAC access profile |
|
Authentication profile |
|
VAP profile |
|
STA's gateway |
VLANIF 101: 10.23.101.1 |
RADIUS server |
|
Configuration Roadmap
- Use the WLAN configuration wizard to configure WLAN services. Configure MAC address and RADIUS authentication and set parameters of the RADIUS server.
- 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.
- Configure MAC authentication.
- Verify the configuration.
- The WLAN with the SSID wlan-net is available.
- The STA can associate with the WLAN and obtain an IP address 10.23.101.x/24 and its gateway address is 10.23.101.1.
- Choose User, you can see that STAs go online properly and obtain IP addresses. . In