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 and another on top of the 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
Radio: wifi1
                  Type: virtual
            Base radio: wifi0
                 Bands: 2.4GHz
            Bandwidths: 20MHz,40MHz
                 Modes: 802.11g,802.11n,802.11ax
    Supported channels: 1,2,3,4,5,6,7,8,9,10,11,12,13,14
       HT capabilities: SMPS-DYNAMIC,GF,TX-STBC,DSSS_CCK-40,LSIG-TXOP-PROT
      VHT capabilities: MAX-MPDU-3895

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 address 192.168.100.1/24
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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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: 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 00:0e:8e:bc:49:e3
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 5: 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=20.1 ms
64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=13.6 ms

--- 192.168.100.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 13.567/16.810/20.054/3.246 ms

Example 2

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

admin@DUT0$ controllers wlan radios wifi0 show capabilities
Show output
Radio: wifi0
                  Type: physical
                   Phy: phy0
                 Bands: 5GHz
            Bandwidths: 20MHz,40MHz,80MHz
                 Modes: 802.11a,802.11n,802.11ac,802.11ax
    Supported channels: 36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,144,149,153,157,161,165
       Spatial streams: 2
         Max. TX power: 16dBm (39.8mW)
         Max. stations: 64
       Max. interfaces: 3
       HT capabilities: SMPS-DYNAMIC,GF,TX-STBC,DSSS_CCK-40,LSIG-TXOP-PROT
      VHT capabilities: MAX-MPDU-11454,RXLDPC,TX-STBC-2BY1,RX-STBC-123,SU-BEAMFORMER,SU-BEAMFORMEE,SOUNDING-DIMENSION-2,MAX-A-MPDU-LEN-EXP7

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 bandwidth 80MHz
set controllers wlan radios wifi0 channel 36
set controllers wlan radios wifi0 mode 802.11ac
set controllers wlan radios wifi0 mode 802.11ax
set controllers wlan radios wifi0 mode 802.11n
set interfaces bridge br0 address 192.168.100.1/24
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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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: 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 00:0e:8e:bc:49:e3
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 5: 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.2 ms
64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=3.56 ms

--- 192.168.100.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 3.556/8.397/13.238/4.841 ms