Example for Configuring Dual-link Cold Backup (Global Configuration Mode)
Service Requirements
An enterprise uses two APs to deploy WLAN area A to provide WLAN services. The enterprise requires that dual-link backup be used to improve data transmission reliability.
Networking Requirements
- AC networking mode: Layer 2 networking in bypass mode
- DHCP deployment mode: The switch functions as a DHCP server to assign IP addresses to APs and STAs.
- Service data forwarding mode: direct forwarding
Data Planning
Item |
Data |
---|---|
Management VLANs for APs |
VLAN 100 |
Service VLAN for STAs |
VLAN 101 |
DHCP server |
Switch functions as the DHCP server for the APs and STAs. STAs' gateway: 10.23.101.1/24 APs' gateway: 10.23.100.1/24 |
IP address pool for APs |
10.23.100.4-10.23.100.254/24 |
IP address pool for STAs |
10.23.101.2-10.23.101.254/24 |
AC's source interface |
VLANIF 100 |
Management IP address of AC1 |
VLANIF 100: 10.23.100.2/24 |
Management IP address of AC2 |
VLANIF 100: 10.23.100.3/24 |
AP group |
|
Regulatory domain profile |
|
SSID profile |
|
Security profile |
|
VAP profile |
|
AP system profile |
|
Configuration Roadmap
- Set up connections between AC1, AC2, and other network devices. Configure the switch as a DHCP server to assign IP addresses to APs and STAs.
- Configure AC1 as the active AC and configure basic WLAN services on AC1.
- Configure AC2 as the standby AC and configure basic WLAN services on AC2. Ensure that service configurations on AC1 and AC2 are the same.
- Configure dual-link backup on the active AC first and then on the standby AC. When dual-link backup is enabled, all APs are restarted. With dual-link backup enabled, the standby AC will replace the active AC to manage APs if the CAPWAP tunnel between the active AC and APs is disconnected.
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 switch.
# On the switch, create VLAN 100 and VLAN 101. VLAN 100 is used as the management VLAN and VLAN 101 is used as the service VLAN. Set the link type of GE0/0/1 and GE0/0/4 that connect the switch to the APs to trunk and the PVID of the two interfaces to 100, and configure the interfaces to allow packets in VLAN 100 and VLAN 101 to pass. Set the link type of GE0/0/2 and GE0/0/3 on the switch to trunk, and configure the interfaces to allow packets in VLAN 100 to pass.
<HUAWEI> system-view [HUAWEI] sysname Switch [Switch] vlan batch 100 101 [Switch] interface gigabitethernet 0/0/1 [Switch-GigabitEthernet0/0/1] port link-type trunk [Switch-GigabitEthernet0/0/1] port trunk pvid vlan 100 [Switch-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 101 [Switch-GigabitEthernet0/0/1] port-isolate enable [Switch-GigabitEthernet0/0/1] quit [Switch] interface gigabitethernet 0/0/4 [Switch-GigabitEthernet0/0/4] port link-type trunk [Switch-GigabitEthernet0/0/4] port trunk pvid vlan 100 [Switch-GigabitEthernet0/0/4] port trunk allow-pass vlan 100 to 101 [Switch-GigabitEthernet0/0/4] port-isolate enable [Switch-GigabitEthernet0/0/4] quit [Switch] interface gigabitethernet 0/0/2 [Switch-GigabitEthernet0/0/2] port link-type trunk [Switch-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 [Switch-GigabitEthernet0/0/2] quit [Switch] interface gigabitethernet 0/0/3 [Switch-GigabitEthernet0/0/3] port link-type trunk [Switch-GigabitEthernet0/0/3] port trunk allow-pass vlan 100 [Switch-GigabitEthernet0/0/3] quit
Configure the DHCP function on the switch to assign IP addresses to APs and 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.
# Configure VLANIF 100 to use the interface address pool to assign IP addresses to APs.
[Switch] dhcp enable [Switch] interface vlanif 100 [Switch-Vlanif100] ip address 10.23.100.1 255.255.255.0 [Switch-Vlanif100] dhcp select interface [Switch-Vlanif100] dhcp server excluded-ip-address 10.23.100.2 10.23.100.3 [Switch-Vlanif100] quit
# Configure VLANIF 101 to use the interface address pool to assign IP addresses to STAs.
[Switch] interface vlanif 101 [Switch-Vlanif101] ip address 10.23.101.1 255.255.255.0 [Switch-Vlanif101] dhcp select interface [Switch-Vlanif101] quit
- Configure AC1.
- Add APs on AC1.
- Configure WLAN services on AC1.
# Click Create. The Basic Information page is displayed.
# Configure the SSID name, forwarding mode, and service VLAN ID.
Click Next. The Security Authentication page is displayed.
# Set Security settings to Key (applicable to personnel networks) and set the key.
# Click Next. The Access Control page is displayed.
# Set Binding the AP group to ap-group1.
Click Finish.
- Configure AC2.
The configuration is similar to that on AC1. The difference is that the IP address of VLANIF 100 is 10.23.100.3/24.
- Add APs on AC2.
The configuration is similar to that on AC1.
- Configure WLAN services on AC2.
The configuration is similar to that on AC1.
- Configure IP addresses for primary ACs and the backup AC on AC_1.
- Configure IP addresses for primary ACs and the backup AC on AC_1.
The configuration is similar to that on AC1.
- Configure dual-link backup on AC1 and AC2.
By default, dual-link backup is disabled. Enabling dual-link backup will restart all APs. After the APs are restarted, the dual-link backup function takes effect.
If dual-link backup is already enabled, performing the configuration does not restart APs. Choose
on the active AC to restart the APs and make the dual-link backup function take effect. - Verify the configuration.
# The WLAN with the SSID wlan-net is available for STAs connected to AP1 and AP2, and the STAs can connect to the WLAN and go online properly.
# Simulate a master AC fault by restarting the master AC to verify the backup configuration. Restart AC1. When an AP detects a fault on the link connected to AC1, AC2 takes the active role, ensuring service stability.Before restarting the AC, click Save in the upper right corner of the web page to save the configuration file on the AC to prevent configuration loss after the restart.
# During the restart of AC1, the AP goes online on AC2. On AC2, choose
. It is found that the AP status changes from standby to normal.# After AC1 recovers from the restart, an active/standby switchback is triggered. The AP automatically goes online on AC1.