LAB 2: Configuring Layer 2 Direct Forwarding in Bypass Mode With Hand-in-Hand WDS Services
LAB 2: Configuring Layer 2 Direct Forwarding in Bypass Mode With Hand-in-Hand WDS Services
LAB 2: Configuring Layer 2 Direct Forwarding in Bypass Mode With Hand-in-Hand WDS Services
Service Requirements
Enterprise users can access the network through WLANs, which is the basic requirement of
mobile office. Considering the high costs of wired AP deployment, enterprises need to set up
wireless distribution system (WDS) links for wireless backhaul to provide service coverage,
ensuring that enterprise users can access the WLAN.
Networking Requirements
Item Data
Management VLAN for APs VLAN 100
Service VLAN for STAs VLAN 101
VLAN 102
DHCP server The AC functions as a DHCP server to assign
IP addresses to APs. Switch_A functions as a
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 STAs 10.23.101.3-10.23.101.254/24
10.23.102.3-10.23.102.254/24
AC's source interface address VLANIF 100
WDS mode Radio 1 on AP_1: root
Radio 1 on AP_2: leaf
Radio 0 on AP_2: root
Radio 1 on AP_3: leaf
Name: WIFI-ETUD
Item Data
Security policy: open
Name: WIFI-ETUD
Forwarding mode: direct forwarding
Service VLAN: VLAN 102
Referenced profiles: SSID profile
WIFI-ETUD and security profile
WIFI-ETUD
Name: wds-list2
AP MAC address: MAC address of
AP_3 (leaf)
Name: wds-leaf
WDS name: wlan-wds
WDS working mode: leaf
Tagged VLAN: VLAN 101
Referenced profile: security profile
wds-security
Item Data
AP group Name: ap-group1
Root APs, such as AP_1, are added to
the group.
Referenced profiles: WDS profile
wds-root, VAP profile wlan-net, and
regulatory domain profile default
Name: ap-group2
Root and leaf APs, such as AP_2, are
added to the group.
Referenced profiles: WDS profiles
wds-root and wds-leaf, VAP profile
wlan-net, and regulatory domain
profile default
Name: ap-group3
Leaf APs, such as AP_3, are added to
the group.
Referenced profiles: WDS profile
wds-leaf, VAP profile wlan-net, and
regulatory domain profile default
Configuration Roadmap
Procedure
<HUAWEI> system-view
[HUAWEI] sysname Switch_B
[Switch_B] vlan batch 100 to 102
[Switch_B] interface gigabitEthernet 0/0/1
[Switch_B-GigabitEthernet0/0/1] port link-type trunk
[Switch_B-GigabitEthernet0/0/1] port trunk pvid vlan 100
[Switch_B-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 102
[Switch_B-GigabitEthernet0/0/1] port-isolate enable
[Switch_B-GigabitEthernet0/0/1] quit
[Switch_B] interface gigabitEthernet 0/0/2
[Switch_B-GigabitEthernet0/0/2] port link-type trunk
[Switch_B-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 to 102
[Switch_B-GigabitEthernet0/0/2] quit
<HUAWEI> system-view
[HUAWEI] sysname Switch_A
[Switch_A] vlan batch 100 to 102
[Switch_A] interface gigabitEthernet 0/0/1
[Switch_A-GigabitEthernet0/0/1] port link-type trunk
[Switch_A-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 102
[Switch_A-GigabitEthernet0/0/1] quit
[Switch_A] interface gigabitEthernet 0/0/2
[Switch_A-GigabitEthernet0/0/2] port link-type trunk
[Switch_A-GigabitEthernet0/0/2] port trunk allow-pass vlan 100
[Switch_A-GigabitEthernet0/0/2] quit
[Switch_A] interface gigabitEthernet 0/0/3
[Switch_A-GigabitEthernet0/0/3] port link-type trunk
[Switch_A-GigabitEthernet0/0/3] port trunk allow-pass vlan 101 to 102
[Switch_A-GigabitEthernet0/0/3] quit
# Add GE1/0/0 on Router to VLAN 101. Create VLANIF 101 and set its IP address to
10.23.101.2/24.
<Huawei> system-view
[Huawei] sysname Router
[Router] vlan batch 101 to 102
[Router] interface gigabitethernet 0/0/1
[Router-GigabitEthernet1/0/0] port link-type trunk
[Router-GigabitEthernet1/0/0] port trunk allow-pass vlan 101 to 102
[Router-GigabitEthernet1/0/0] quit
[Router] interface vlanif 101
[Router-Vlanif101] ip address 10.23.101.2 24
[Router-Vlanif101] quit
[Router] interface vlanif 102
[Router-Vlanif101] ip address 10.23.102.2 24
[Router-Vlanif101] quit
<AC6605> system-view
[AC6605] sysname AC
[AC] vlan batch 100
[AC] interface gigabitEthernet 0/0/1
[AC-GigabitEthernet0/0/1] port link-type trunk
[AC-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[AC-GigabitEthernet0/0/1] quit
# Enable DHCP on the AC to assign IP addresses to the APs from the interface
address pool.
4. Configure an AP to go online.
# Create AP groups ap-group1, ap-group2, and ap-group3.
[AC] wlan
[AC-wlan-view] ap-group name ap-group1
[AC-wlan-ap-group-ap-group1] quit
[AC-wlan-view] ap-group name ap-group2
[AC-wlan-ap-group-ap-group2] quit
[AC-wlan-view] ap-group name ap-group3
[AC-wlan-ap-group-ap-group3] quit
# Create a regulatory domain profile, configure the AC country code in the profile,
and apply the profile to the AP group.
# Add (AP_1, AP_4), AP_2, and AP_3 to AP group ap-group1, ap-group2, and ap-
group3, respectively.
NOTE:
In this example, the AP4050DN is used and has two radios: radio 0 and radio 1.
[AC] wlan
[AC-wlan-view] ap auth-mode mac-auth
[AC-wlan-view] ap-id 1 ap-mac @MAC-AP1
[AC-wlan-ap-1] ap-name AP_1
[AC-wlan-ap-1] ap-group ap-group1
Warning: This operation may cause AP reset. If the country code
changes, it will clear channel, power and antenna gain configuration
s of the radio, Whether to continue? [Y/N]:y
[AC-wlan-ap-1] quit
# Create security profile WIFI-ENS and set the security policy in the profile.
# Create SSID profile wlan-net and set the SSID name to WIFI-ENS.
# Create VAP profile WIFI-ENS, set the data forwarding mode and service VLAN, and
apply the security profile and SSID profile to the VAP profile.
# Create security profile WIFI-ETUD and set the security policy in the profile.
# Create SSID profile wlan-net and set the SSID name to WIFI-ETUD.
# Create VAP profile WIFI-ETUD, set the data forwarding mode and service VLAN,
and apply the security profile and SSID profile to the VAP profile.
# Bind the VAP profile to the AP groups. In this example, radio 1 on AP_1 and AP_3
is used for WDS backhaul, and radio 0 for wireless service coverage. Apply VAP
profile WIFI- to radio 0 of the AP_1 and AP_3.
# Set key radio parameters for the WDS nodes. In this example, AP_1 and AP_3 use
radio 1, and AP_2 uses radio 0 and radio 1. Configure radio 0 of AP_2 to work on the
5 GHz frequency band. To reduce channel interference, configure radio 0 and radio 1
of AP_2 to work on different channels. Radio 1 and radio 0 are used to establish WDS
links with AP_1 and AP_3 respectively. The coverage distance parameter specifies
the radio coverage distance, which is 3 by default, in 100 m. In this example, 4 is used.
Set this parameter based on actual situations.
NOTE:
On a WDS network, radios used to create WDS links must work on the same channel.
[AC-wlan-view] ap-id 2
[AC-wlan-ap-2] radio 0
[AC-wlan-radio-2/0] frequency 5g
Warning: Modifying the frequency band will delete the channel, power,
and antenn
a gain configurations of the current radio on the AP and reboot the
AP. Continue
?[Y/N]:y
[AC-wlan-radio-2/0] quit
[AC-wlan-ap-2] quit
[AC-wlan-view] ap-id 1
[AC-wlan-ap-1] radio 1
[AC-wlan-radio-1/1] channel 20mhz 64
Warning: This action may cause service interruption. Continue?[Y/N]y
[AC-wlan-radio-1/1] quit
[AC-wlan-ap-1] quit
[AC-wlan-view] ap-id 2
[AC-wlan-ap-2] radio 0
[AC-wlan-radio-2/0] channel 20mhz 64
Warning: This action may cause service interruption. Continue?[Y/N]y
[AC-wlan-radio-2/0] quit
[AC-wlan-ap-2] radio 1
[AC-wlan-radio-2/1] channel 20mhz 60
Warning: This action may cause service interruption. Continue?[Y/N]y
[AC-wlan-radio-2/1] quit
[AC-wlan-ap-2] quit.
[AC-wlan-view] ap-id 3
[AC-wlan-ap-3] radio 1
[AC-wlan-radio-3/1] channel 20mhz 60
Warning: This action may cause service interruption. Continue?[Y/N]y
[AC-wlan-radio-3/1] quit
[AC-wlan-ap-3] quit
# Configure security profile wds-security for WDS links. The security policy for the
security profile is WPA2+PSK+AES.
# Configure a WDS whitelist profile. Bind WDS whitelist profile wds-list1 to AP_1,
and allow access of only AP_2. Bind WDS whitelist profile wds-list2 to AP_2, and
allow access of only AP_3.
# Configure WDS profile wds-root. Set the WDS name to wlan-wds, and the WDS
mode to root. Bind security profile wds-security to the WDS profile and permit
packets from VLAN 101 to pass through in tagged mode.
7. Bind required profiles to the AP groups to make WDS services take effect.
# After the configuration is complete, run the display ap all command to check
whether WDS nodes go online successfully. If State is displayed as nor, APs have
gone online successfully.
[AC-wlan-view] display ap all
Total AP information:
nor : normal [3]
Extra information:
P : insufficient power supply
---------------------------------------------------------------------
-----------------------------
ID MAC Name Group IP Type
State STA Uptime ExtraInfo
---------------------------------------------------------------------
-----------------------------
1 60de-4474-9640 AP_1 ap-group1 10.23.100.254 AP8130DN
nor 0 20M:16S -
2 dcd2-fc04-b500 AP_2 ap-group2 10.23.100.253 AP8130DN
nor 0 17S -
3 dcd2-fc96-e4c0 AP_3 ap-group3 10.23.100.252 AP8130DN
nor 0 3M:55S -
---------------------------------------------------------------------
-----------------------------
Total: 3
Run the display wlan wds link all command to display information about WDS links.
The AC automatically delivers WLAN service configuration to the AP. After the
service configuration is complete, run the display vap ssid wlan-net command. If
Status in the command output is displayed as ON, the VAPs have been successfully
created on AP radios.
Connect STAs to the WLAN with SSID wlan-net and enter the password a1234567.
Run the display station ssid wlan-net command on the AC. The command output
shows that the STAs are connected to the WLAN wlan-net.
Configuration Files