Band
The following scenarios show how to configure WLAN-capable devices to operate
on the 2.4GHz
and 5GHz
bands.
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 capabilitiesShow output
Radio: wifi1 Type: physical Phy: mwiphy1 Bands: 2.4GHz Bandwidths: 20MHz,40MHz Modes: 802.11g,802.11n Supported channels: 1,2,3,4,5,6,7,8,9,10,11,12,13,14 Spatial streams: 2 Max. TX power: 20dBm (100.0mW) Max. stations: 64 Max. interfaces: 2 HT capabilities: LDPC,TX-STBC,RX-STBC1
Step 2: Run command configure
at DUT0
and expect this output:
Step 3: Run command delete interfaces wlan
at DUT0
and expect this output:
Show output
Nothing to delete (the specified node does not exist)
Step 4: Run command delete controllers wlan
at DUT0
and expect this output:
Show output
Nothing to delete (the specified node does not exist)
Step 5: Run command commit
at DUT0
and expect this output:
Step 6: 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 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 7: 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 8: 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'
Step 9: 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 12:68:38:c6:f4:7c 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 10: Ping IP address 192.168.100.1
from MON
:
admin@MON$ ping 192.168.100.1 count 2 size 56 timeout 1Show 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=8.04 ms 64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=65.5 ms --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 2ms rtt min/avg/max/mdev = 8.041/36.771/65.501/28.730 ms
Step 11: Run command configure
at DUT0
and expect this output:
Step 12: Run command delete interfaces bridge br0 address 192.168.100.1/24
at DUT0
and expect this output:
Step 13: Run command set interfaces bridge br0
at DUT0
and expect this output:
Step 14: Run command commit
at DUT0
and expect this output:
Example 2
=========
Step 1: Get the supported Bands
from wifi0
capabilities list:
admin@DUT0$ controllers wlan radios wifi0 show capabilitiesShow output
Radio: wifi0 Type: physical Phy: mwiphy0 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: 20dBm (100.0mW) Max. stations: 64 Max. interfaces: 2 HT capabilities: LDPC,TX-STBC,RX-STBC1 VHT capabilities: MAX-MPDU-3895,RXLDPC,TX-STBC-2BY1,RX-STBC-1,SU-BEAMFORMER,SU-BEAMFORMEE,BF-ANTENNA-4,SOUNDING-DIMENSION-2,HTC-VHT,MAX-A-MPDU-LEN-EXP7,RX-ANTENNA-PATTERN,TX-ANTENNA-PATTERN
Step 2: Run command configure
at DUT0
and expect this output:
Step 3: Run command delete interfaces wlan
at DUT0
and expect this output:
Step 4: Run command delete controllers wlan
at DUT0
and expect this output:
Step 5: Run command commit
at DUT0
and expect this output:
Step 6: 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 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 7: 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 8: 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'
Step 9: 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 12:68:38:c6:f4:7b 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 10: Ping IP address 192.168.100.1
from MON
:
admin@MON$ ping 192.168.100.1 count 2 size 56 timeout 1Show 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=6.21 ms 64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=2.41 ms --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 2ms rtt min/avg/max/mdev = 2.414/4.310/6.207/1.897 ms
Step 11: Run command configure
at DUT0
and expect this output:
Step 12: Run command delete interfaces bridge br0 address 192.168.100.1/24
at DUT0
and expect this output:
Step 13: Run command set interfaces bridge br0
at DUT0
and expect this output:
Step 14: Run command commit
at DUT0
and expect this output: