Example for Configuring Radio Calibration for APs
Networking Requirements
As shown in Figure 3-5, a WLAN containing three APs (AP1, AP2, and AP3) is deployed on the campus network. The three APs interfere with each other, so the WLAN network performance is low.
Users expect that three APs can automatically adjust their channels and power to reduce interference and achieve optimal WLAN performance.
Configuration Roadmap
- Configure basic WLAN services to ensure that users can access the Internet through WLAN.
- Configure radio calibration for APs to enable the APs to adjust channels and power so that the APs work at optimal performance.
Procedure
- Configure AP1 to communicate with the upstream device.
Configure AP1's uplink interface to transparently transmit packets of service VLANs and communicate with the upstream network device.
# Add AP1's uplink interface Eth2/0/0 to VLAN 101.
<Huawei> system-view [Huawei] sysname AP1 [AP1] vlan batch 101 [AP1] interface ethernet 2/0/0 [AP1-Ethernet2/0/0] port link-type trunk [AP1-Ethernet2/0/0] port trunk allow-pass vlan 101 [AP1-Ethernet2/0/0] quit
# Configure a default route with the next hop address 192.168.0.2 on AP1.
[AP1] ip route-static 0.0.0.0 0 192.168.0.2
- Configure AP1 as a DHCP server to allocate IP addresses to STAs.
# Configure the DHCP server to allocate IP addresses to STAs from the IP address pool on VLANIF 101.
[AP1] dhcp enable [AP1] interface vlanif 101 [AP1-Vlanif101] ip address 192.168.0.1 24 [AP1-Vlanif101] dhcp select interface [AP1-Vlanif101] dhcp server excluded-ip-address 192.168.0.2 [AP1-Vlanif101] quit
- Configure system parameters for AP1.
# Configure the country code for AP1.
[AP1] wlan global country-code cn
- Configure WLAN service parameters.
# Create a WMM profile named wmm.
[AP1] wlan [AP1-wlan-view] wmm-profile name wmm id 1 [AP1-wlan-wmm-prof-wmm] quit
# Create a radio profile named radio, set the radio type to 802.11an, and bind the WMM profile wmm to the radio profile.
[AP1-wlan-view] radio-profile name radio id 1 [AP1-wlan-radio-prof-radio] wmm-profile name wmm [AP1-wlan-radio-prof-radio] quit [AP1-wlan-view] quit
# Create the WLAN-BSS interface 1.
[AP1] interface wlan-bss 1 [AP1-Wlan-Bss1] port hybrid tagged vlan 101 [AP1-Wlan-Bss1] quit
# Create a security profile named security.
[AP1] wlan [AP1-wlan-view] security-profile name security id 1 [AP1-wlan-sec-prof-security] quit
# Create a traffic profile named traffic.
[AP1-wlan-view] traffic-profile name traffic id 1 [AP1-wlan-traffic-prof-traffic] quit
# Create a service set named test and bind the WLAN-BSS interface, security profile, and traffic profile to the service set.
[AP1-wlan-view] service-set name test id 1 [AP1-wlan-service-set-test] ssid test [AP1-wlan-service-set-test] wlan-bss 1 [AP1-wlan-service-set-test] security-profile name security [AP1-wlan-service-set-test] traffic-profile name traffic [AP1-wlan-service-set-test] quit [AP1-wlan-view] quit
- Configure a VAP.
[AP1] interface wlan-radio 0/0/0 [AP1-Wlan-Radio0/0/0] radio-profile name radio [AP1-Wlan-Radio0/0/0] service-set name test [AP1-Wlan-Radio0/0/0] quit
- Configure radio calibration.
# Set the radio calibration mode to schedule, configure the device to start radio calibration at 3:00 a.m. every day.
[AP1-wlan-view] calibrate enable schedule time 03:00:00
# Enable radio calibration in the radio profile view. By default, radio calibration is enabled in the radio profile view. The configuration procedures are not provided here.
- Verify the configuration.
#STAs discover the WLAN with the SSID test and attempt to associate with the WLAN. You can run the display station assoc-info interface wlan-radio0/0/0 service-set 1 command on AP1. The command output shows that the STAs associate with the WLAN test.
[AP1-wlan-view] display station assoc-info interface wlan-radio0/0/0 service-set 1 AP/Rf/WLAN: AP ID/Radio ID/WLAN ID Rx/Tx: link receive rate/link transmit rate(Mbps) ------------------------------------------------------------------------------ STA MAC AP/Rf/WLAN Rx/Tx Mode RSSI IP address SSID ------------------------------------------------------------------------------ 00e0-fc08-9abf 1/0/1 4/41 11n -73 192.168.0.254 test ------------------------------------------------------------------------------ Total stations: 1
#You can run the display statistics calibrate interface wlan-radio0/0/0 command on AP1 to check radio calibration statistics on AP1.
[AP1-wlan-view] display statistics calibrate interface wlan-radio0/0/0 ----------------------------------------------------------------------- Signal environment deterioration :1 Power calibration :1 Channel calibration :0 -----------------------------------------------------------------------
The procedure for configuring radio calibration on AP2 and AP3 is similar to that on AP1 and is not provided here.
Configuration Files
Configuration file of AP1
# sysname AP1 # vlan batch 101 # dhcp enable # interface Vlanif101 ip address 192.168.0.1 255.255.255.0 dhcp select interface dhcp server excluded-ip-address 192.168.0.2 # interface Ethernet2/0/0 port link-type trunk port trunk allow-pass vlan 101 # interface Wlan-Bss1 port hybrid tagged vlan 101 # ip route-static 0.0.0.0 0 192.168.0.2 # wlan wmm-profile name wmm id 1 traffic-profile name traffic id 1 security-profile name security id 1 service-set name test id 1 Wlan-Bss 1 ssid test traffic-profile id 1 security-profile id 1 calibrate enable schedule time 03:00:00 radio-profile name radio id 1 wmm-profile id 1 # interface Wlan-Radio0/0/0 radio-profile id 1 service-set id 1 wlan 1 # return
Configuration file of AP2
# sysname AP2 # vlan batch 101 # dhcp enable # interface Vlanif101 ip address 192.168.1.1 255.255.255.0 dhcp select interface dhcp server excluded-ip-address 192.168.1.2 # interface Ethernet2/0/0 port link-type trunk port trunk allow-pass vlan 101 # interface Wlan-Bss1 port hybrid tagged vlan 101 # ip route-static 0.0.0.0 0 192.168.1.2 # wlan wmm-profile name wmm id 1 traffic-profile name traffic id 1 security-profile name security id 1 service-set name test id 1 Wlan-Bss 1 ssid test traffic-profile id 1 security-profile id 1 calibrate enable schedule time 03:00:00 radio-profile name radio id 1 wmm-profile id 1 # interface Wlan-Radio0/0/0 radio-profile id 1 service-set id 1 wlan 1 # return
- Configuration file of AP3
# sysname AP3 # vlan batch 101 # dhcp enable # interface Vlanif101 ip address 192.168.3.1 255.255.255.0 dhcp select interface dhcp server excluded-ip-address 192.168.3.2 # interface Ethernet2/0/0 port link-type trunk port trunk allow-pass vlan 101 # interface Wlan-Bss1 port hybrid tagged vlan 101 # ip route-static 0.0.0.0 0 192.168.3.2 # wlan wmm-profile name wmm id 1 traffic-profile name traffic id 1 security-profile name security id 1 service-set name test id 1 Wlan-Bss 1 ssid test traffic-profile id 1 security-profile id 1 calibrate enable schedule time 03:00:00 radio-profile name radio id 1 wmm-profile id 1 # interface Wlan-Radio0/0/0 radio-profile id 1 service-set id 1 wlan 1 # return