Band

The following scenarios show how to configure WLAN capable devices to operate on the 2.4GHz and 5GHz bands.

../../../_images/wlanbands.svg

Band Configuration

Description

In this example, a WLAN interface will be created on top of the 2.4GHz or 5GHz radio module in access-point mode. Then, correct operation will be checked using operational commands and a WLAN client.

Scenario

Example 1

Step 1: Get the supported bands from wifi1 capabilities list:

admin@DUT0$ controllers wlan radios wifi1 show capabilities
Show output
Phy: wifi1
        modes: 802.11g,802.11n
        stations: 64
        bandwidths: 20MHz,40MHz
        bands: 2.4GHz
        tx-power: 11,10,13,12,15,14,17,16,19,18,1,3,2,5,4,7,6,9,20,8
        supported-channels: 11,10,13,12,14,1,3,2,5,4,7,6,9,8
        vaps: 2
        spatial-streams: 1,2
        ht-capabilities: [LDPC][TX-STBC][RX-STBC1]
        max-tx-power: 20

Step 2: Set the following configuration in DUT0:

set controllers wlan radios wifi1 band 2.4GHz
set controllers wlan radios wifi1 channel 1
set interfaces bridge br0
set interfaces wlan wlan4 bridge-group bridge br0
set interfaces wlan wlan4 phy wifi1
set interfaces wlan wlan4 type access-point security akm none
set interfaces wlan wlan4 type access-point ssid network_2.4GHz

Note

Note that the band must be set to 2.4GHz which is the value previously obtained.

Step 3: Wait until the wlan4 interface of DUT0 is up. When so, check that the base radio module wifi1 is also up. Note that the CAC procedure could delay this process up to 10 mins depending on the selected channel.

Step 4: Set the following configuration in DUT0:

set interfaces bridge br0 address 192.168.100.1/24

Step 5: Configure the MON device to connect to network_2.4GHz using the following configuration:

set controllers wlan installation indoor
set controllers wlan radios wifi0 bandwidth 20MHz
set interfaces wlan wlan0 phy wifi0
set interfaces wlan wlan0 type station network 1 bssid 52:5a:65:42:f9:89
set interfaces wlan wlan0 type station network 1 ssid network_2.4GHz
set system wlan log-level configuration debug
set interfaces wlan wlan0 address 192.168.100.10/24
set interfaces wlan wlan0 type station network 1 security akm none

Step 6: Ping IP address 192.168.100.1 from MON:

admin@MON$ ping 192.168.100.1 count 2 size 56 timeout 1
Show output
PING 192.168.100.1 (192.168.100.1) 56(84) bytes of data.
64 bytes from 192.168.100.1: icmp_seq=1 ttl=64 time=7.81 ms
64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=5.44 ms

--- 192.168.100.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 3ms
rtt min/avg/max/mdev = 5.444/6.629/7.814/1.185 ms

Example 2

Step 1: Get the supported bands from wifi0 capabilities list:

admin@DUT0$ controllers wlan radios wifi0 show capabilities
Show output
Phy: wifi0
        modes: 802.11a,802.11ax,802.11ac,802.11n
        stations: 64
        bandwidths: 20MHz,80MHz,40MHz
        bands: 5GHz
        ht-capabilities: [LDPC][TX-STBC][RX-STBC1]
        tx-power: 11,10,13,12,15,14,17,16,19,18,1,3,2,5,4,7,6,9,20,8
        vht-capabilities: [SU-BEAMFORMEE][RXLDPC][BF-ANTENNA-4][TX-STBC-2BY1][SOUNDING-DIMENSION-2][SU-BEAMFORMER][HTC-VHT][MAX-MPDU-3895][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][MAX-A-MPDU-LEN-EXP7]
        supported-channels: 153,157,60,132,116,64,136,112,48,44,40,144,140,149,120,108,124,128,165,100,161,104,56,36,52
        spatial-streams: 1,2
        vaps: 2
        max-tx-power: 20

Step 2: Set the following configuration in DUT0:

set controllers wlan installation indoor
set controllers wlan radios wifi0 band 5GHz
set controllers wlan radios wifi0 channel 36
set controllers wlan radios wifi0 bandwidth 80MHz
set controllers wlan radios wifi0 mode 802.11n
set controllers wlan radios wifi0 mode 802.11ac
set controllers wlan radios wifi0 mode 802.11ax
set interfaces bridge br0
set interfaces wlan wlan1 bridge-group bridge br0
set interfaces wlan wlan1 phy wifi0
set interfaces wlan wlan1 type access-point security akm none
set interfaces wlan wlan1 type access-point ssid network_5GHz

Note

Note that the band must be set to 5GHz which is the value previously obtained.

Step 3: Wait until the wlan1 interface of DUT0 is up. When so, check that the base radio module wifi0 is also up. Note that the CAC procedure could delay this process up to 10 mins depending on the selected channel.

Step 4: Set the following configuration in DUT0:

set interfaces bridge br0 address 192.168.100.1/24

Step 5: Configure the MON device to connect to network_5GHz using the following configuration:

set controllers wlan installation indoor
set controllers wlan radios wifi1 bandwidth 20MHz
set interfaces wlan wlan0 phy wifi1
set interfaces wlan wlan0 type station network 1 bssid 52:5a:65:42:f9:88
set interfaces wlan wlan0 type station network 1 ssid network_5GHz
set system wlan log-level configuration debug
set interfaces wlan wlan0 address 192.168.100.10/24
set interfaces wlan wlan0 type station network 1 security akm none

Step 6: Ping IP address 192.168.100.1 from MON:

admin@MON$ ping 192.168.100.1 count 2 size 56 timeout 1
Show output
PING 192.168.100.1 (192.168.100.1) 56(84) bytes of data.
64 bytes from 192.168.100.1: icmp_seq=1 ttl=64 time=13.0 ms
64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=9.49 ms

--- 192.168.100.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 9.489/11.235/12.982/1.749 ms