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
Phy: wifi1 bandwidths: 20MHz,40MHz bands: 2.4GHz modes: 802.11g,802.11n ht-capabilities: [LDPC][TX-STBC][RX-STBC1] spatial-streams: 1,2 vaps: 2 stations: 64 max-tx-power: 20 tx-power: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 supported-channels: 1,2,3,4,5,6,7,8,9,10,11,12,13,14
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:c7:21:f1 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=7.73 ms 64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=13.7 ms --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 3ms rtt min/avg/max/mdev = 7.728/10.699/13.670/2.971 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
Phy: wifi0 bandwidths: 20MHz,40MHz,80MHz bands: 5GHz modes: 802.11a,802.11n,802.11ac,802.11ax 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] spatial-streams: 1,2 vaps: 2 stations: 64 max-tx-power: 20 tx-power: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 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
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:c7:21:f0 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=34.7 ms 64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=2.35 ms --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 3ms rtt min/avg/max/mdev = 2.347/18.513/34.680/16.167 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: