4.2.10 Example for Configuring the WLAN Service on a Small-Scale Network (IPv6 Network)
Specifications
-
Applicable ACs: AC6605 and AC6005
- Applicable APs: all APs
- Applicable software version: V200R005C00
Networking Requirements
As shown in Figure 4-11, the AP is directly connected to the AC. An enterprise branch needs to deploy WLAN services for mobile office so that branch users can access the enterprise internal network from anywhere at any time. Wireless terminals use IPv6 addresses to connect to the wireless network.
- A WLAN named test is available.
- Branch users are assigned IP addresses on 4000::/64.
Configuration Roadmap
The configuration roadmap is as follows:
- Configure the AP, AC, and upstream device to implement Layer 2 interconnection.
- Configure the AC as a DHCPv6 server to assign IP addresses to STAs and the AP from an IP address pool.
- Configure AC system parameters, including the country code, AC ID, carrier ID, and source interface used by the AC to communicate with the AP.
- Set the AP authentication mode and add the AP to an AP region.
- Configure a VAP and deliver VAP parameters to the AP so that STAs can access the WLAN.
- Configure a WMM profile and radio profile on the AP, retain the default settings of the WMM profile and radio profile, bind the WMM profile to the radio profile to enable STAs to communicate with the AP.
- Configure a WLAN-ESS interface so that radio packets can be sent to the WLAN service module after reaching the AC.
- Configure a security profile and traffic profile on the AP, retain the default settings of the security profile and traffic profile, configure a service set, bind the WLAN-ESS interface, security profile, and traffic profile to apply security policies and QoS policies to STAs.
- Configure a VAP and deliver VAP parameters to the AP so that STAs can access the Internet through the WLAN.
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 on WLAN-ESS interfaces 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 betweeen the AC and APs. Packets from the service VLAN are not allowed between the AC and APs.
Procedure
- Configure the AC so that the AP and AC can transmit CAPWAP packets.
# Configure the AC: add interface GE0/0/1 to management VLAN 100.
<AC6605> system-view [AC6605] sysname AC [AC] vlan batch 100 101 [AC] interface gigabitethernet 0/0/1 [AC-GigabitEthernet0/0/1] port link-type trunk [AC-GigabitEthernet0/0/1] port trunk pvid vlan 100 [AC-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 [AC-GigabitEthernet0/0/1] quit
- Configure the AC to communicate with the upstream device.
NOTE:
Configure AC uplink interfaces to transparently transmit packets of service VLANs as required and communicate with the upstream device.
# Add AC uplink interface GE0/0/2 to service VLAN 101.
[AC] interface gigabitethernet 0/0/2 [AC-GigabitEthernet0/0/2] port link-type trunk [AC-GigabitEthernet0/0/2] port trunk allow-pass vlan 101 [AC-GigabitEthernet0/0/2] quit
- Configure the AC as a DHCPv6 server to allocate IP addresses to STAs and the AP.
# Enable the DHCPv6 server function on the interfaces, and configure the DHCP server to allocate IP addresses to APs from the IP address pool on VLANIF 100, and allocate IP addresses to STAs from the IP address pool on VLANIF 101.
[AC] ipv6 [AC] dhcp enable [AC] dhcpv6 pool ap_pool [AC-dhcpv6-pool-ap_pool] address prefix 3000::/64 [AC-dhcpv6-pool-ap_pool] quit [AC] dhcpv6 pool sta_pool [AC-dhcpv6-pool-sta_pool] address prefix 4000::/64 [AC-dhcpv6-pool-sta_pool] quit [AC] interface vlanif 100 [AC-Vlanif100] ipv6 enable [AC-Vlanif100] ipv6 address 3000::1/64 [AC-Vlanif100] undo ipv6 nd ra halt [AC-Vlanif100] ipv6 nd autoconfig managed-address-flag [AC-Vlanif100] ipv6 nd autoconfig other-flag [AC-Vlanif100] dhcpv6 server ap_pool [AC-Vlanif100] quit [AC] interface vlanif 101 [AC-Vlanif101] ipv6 enable [AC-Vlanif101] ipv6 address 4000::1/64 [AC-Vlanif101] undo ipv6 nd ra halt [AC-Vlanif101] ipv6 nd autoconfig managed-address-flag [AC-Vlanif101] ipv6 nd autoconfig other-flag [AC-Vlanif101] dhcpv6 server sta_pool [AC-Vlanif101] quit
- Configure AC system parameters.
# Configure the country code.
[AC] wlan ac-global country-code cn Warning: Modify the country code may delete configuration on those AP which use the global country code and reset them, continue?[Y/N]:y# Configure the AC ID and carrier ID.
[AC] wlan ac-global ac id 1 carrier id other Warning: Modify the carrier ID or AC ID may cause all of the AP offline, continu e?[Y/N]:y# Configure the source interface.
[AC] wlan [AC-wlan-view] wlan ipv6 enable [AC-wlan-view] wlan ac source interface vlanif 100
- Manage the AP on the AC.
# Check the AP type ID after obtaining the MAC address of the AP.
[AC-wlan-view] display ap-type all All AP types information: ------------------------------------------------------------------------------ ID Type ------------------------------------------------------------------------------ 17 AP6010SN-GN 19 AP6010DN-AGN 21 AP6310SN-GN 23 AP6510DN-AGN 25 AP6610DN-AGN 27 AP7110SN-GN 28 AP7110DN-AGN 29 AP5010SN-GN 30 AP5010DN-AGN 31 AP3010DN-AGN 33 AP6510DN-AGN-US 34 AP6610DN-AGN-US 35 AP5030DN 36 AP5130DN 38 AP2010DN ------------------------------------------------------------------------------ Total number: 15# Add the AP offline based on the AP type ID. Assume that the AP type is AP6010DN-AGN, and the MAC address of the AP is 60de-4476-e360.
[AC-wlan-view] ap-auth-mode mac-auth [AC-wlan-view] ap id 0 type-id 19 mac 60de-4476-e360 [AC-wlan-ap-0] quit
NOTE:
The default AP authentication mode is MAC address authentication. If the default settings are retained, you do not need to run the ap-auth-mode mac-auth command.
# Configure an AP region and add the AP to the AP region.
[AC-wlan-view] ap-region id 10 [AC-wlan-ap-region-10] quit [AC-wlan-view] ap id 0 [AC-wlan-ap-0] region-id 10 [AC-wlan-ap-0] quit
# After powering on the AP, run the display ap all command on the AC to check the AP running status. The command output shows that the AP status is normal.
[AC-wlan-view] display ap all All AP information: Normal[1],Fault[0],Commit-failed[0],Committing[0],Config[0],Download[0] Config-failed[0],Standby[0],Type-not-match[0],Ver-mismatch[0] ------------------------------------------------------------------------------ AP AP AP Profile AP AP /Region ID Type MAC ID State Sysname ------------------------------------------------------------------------------ 0 AP6010DN-AGN 60de-4476-e360 0/10 normal ap-0 ------------------------------------------------------------------------------ Total number: 1,printed: 1 - Configure WLAN service parameters.
# Create a WMM profile named wmm.
[AC-wlan-view] wmm-profile name wmm id 1 [AC-wlan-wmm-prof-wmm] quit
# Create a radio profile named radio and bind the WMM profile wmm to the radio profile.
[AC-wlan-view] radio-profile name radio id 1 [AC-wlan-radio-prof-radio] wmm-profile name wmm [AC-wlan-radio-prof-radio] quit [AC-wlan-view] quit
# Create WLAN-ESS interface 1.
[AC] interface wlan-ess 1 [AC-Wlan-Ess1] port hybrid pvid vlan 101 [AC-Wlan-Ess1] port hybrid untagged vlan 101 [AC-Wlan-Ess1] quit
# Create a security profile named security.
[AC] wlan [AC-wlan-view] security-profile name security id 1 [AC-wlan-sec-prof-security] quit
# Create a traffic profile named traffic.
[AC-wlan-view] traffic-profile name traffic id 1 [AC-wlan-traffic-prof-traffic] quit
# Create a service set named test and bind the WLAN-ESS interface, security profile, and traffic profile to the service set.
[AC-wlan-view] service-set name test id 1 [AC-wlan-service-set-test] ssid test [AC-wlan-service-set-test] wlan-ess 1 [AC-wlan-service-set-test] security-profile name security [AC-wlan-service-set-test] traffic-profile name traffic [AC-wlan-service-set-test] service-vlan 101 [AC-wlan-service-set-test] forward-mode tunnel [AC-wlan-service-set-test] quit
- Configure a VAP and deliver VAP parameters to the AP.
# Configure a VAP.
[AC-wlan-view] ap 0 radio 0 [AC-wlan-radio-0/0] radio-profile name radio [AC-wlan-radio-0/0] service-set name test [AC-wlan-radio-0/0] quit
# Commit the configuration.
[AC-wlan-view] commit ap 0 Warning: Committing configuration may cause service interruption, continue?[Y/N] :y - Verify the configuration.
After the configuration is complete, run the display vap ap 0 radio 0 command. The command output shows that the VAP has been created.
[AC-wlan-view] display vap ap 0 radio 0 All VAP Information(Total-1): SS: Service-set BP: Bridge-profile MP: Mesh-profile ---------------------------------------------------------------------- AP ID Radio ID SS ID BP ID MP ID WLAN ID BSSID Type ---------------------------------------------------------------------- 0 0 1 - - 1 60DE-4476-E360 service ---------------------------------------------------------------------- Total: 1STAs discover the WLAN with SSID test and attempt to associate with the WLAN. You can run the display station assoc-info command on the AC. The command output shows that the STAs associate with the WLAN test.
[AC-wlan-view] display station assoc-info ap 0 radio 0 ------------------------------------------------------------------------------ STA MAC AP ID RADIO ID SS ID SSID ------------------------------------------------------------------------------ 9021-55dc-3e17 0 0 1 test ------------------------------------------------------------------------------ Total stations: 1




