Disable
The following scenario shows how to disable a WLAN interface (i.e, halt any selected WLAN network) and disable a radio module (i.e., halt any network configured on top of the selected module).
Disable Interface
Description
In this example, WLAN interfaces wlan4
will be disabled
using the disable
command.
Scenario
Step 1: 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 network1_2.4GHz set interfaces wlan wlan5 bridge-group bridge br0 set interfaces wlan wlan5 phy wifi1 set interfaces wlan wlan5 type access-point security akm none set interfaces wlan wlan5 type access-point ssid network2_2.4GHz set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Note
By default, when a WLAN interface is created, it will start working after commit
.
Step 2: Run the command interfaces wlan wlan4 show status
at DUT0
and check that the
interface wlan4
status is up
:
Show output
Interface: wlan4 Mode: access-point Radio: wifi1 Status: up BSSID: 12:68:38:c6:f4:7c SSID: network1_2.4GHz Stations: 0
Step 3: Configure the MON
device to connect to network1_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 network1_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 4: 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=20.5 ms 64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=3.82 ms --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 3ms rtt min/avg/max/mdev = 3.815/12.181/20.548/8.367 ms
Step 5: Modify the following configuration lines in DUT0
:
set interfaces wlan wlan4 disable
Note
When disabled
, a WLAN interface will be down
meaning no connection is possible.
Step 6: Run the command interfaces wlan wlan4 show status
at DUT0
and check that the
interface wlan4
status is down
:
Show output
Interface: wlan4 Mode: access-point Radio: wifi1 Status: down
Step 7: Expect a failure in the following command:
Configure the MON
device to connect to network1_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 network1_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
Disable Controller
Description
In this example, radio interfaces wifi1
will be disabled using the
disable
command. As a result, WLAN interfaces wlan4
and wlan5
will be disabled as well.
Scenario
Step 1: 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 network1_2.4GHz set interfaces wlan wlan5 bridge-group bridge br0 set interfaces wlan wlan5 phy wifi1 set interfaces wlan wlan5 type access-point security akm none set interfaces wlan wlan5 type access-point ssid network2_2.4GHz set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Note
Like a WLAN interface, a WLAN radio will work after commit
if the configuration is right.
Step 2: Run the command interfaces wlan wlan4 show status
at DUT0
and check that the
interface wlan4
status is up
:
Show output
Interface: wlan4 Mode: access-point Radio: wifi1 Status: up BSSID: 12:68:38:c6:f4:7c SSID: network1_2.4GHz Stations: 0
Step 3: Run the command interfaces wlan wlan5 show status
at DUT0
and check that the
interface wlan5
status is up
:
Show output
Interface: wlan5 Mode: access-point Radio: wifi1 Status: up BSSID: 12:68:38:c6:f5:7c SSID: network2_2.4GHz Stations: 0
Step 4: Configure the MON
device to connect to network1_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 network1_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 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=13.6 ms 64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=3.82 ms --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 3ms rtt min/avg/max/mdev = 3.820/8.707/13.595/4.888 ms
Step 6: Configure the MON
device to connect to network2_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:f5:7c set interfaces wlan wlan0 type station network 1 ssid network2_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 7: 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.75 ms 64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=67.3 ms --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 3ms rtt min/avg/max/mdev = 6.745/37.043/67.342/30.299 ms
Step 8: Modify the following configuration lines in DUT0
:
set controllers wlan radios wifi1 disable
Note
Connecting with wlan4
and wlan5
is not possible since both interfaces are down
.
Step 9: Run the command interfaces wlan wlan4 show status
at DUT0
and check that the
interface wlan4
status is down
:
Show output
Interface: wlan4 Mode: access-point Radio: wifi1 Status: down
Step 10: Run the command interfaces wlan wlan5 show status
at DUT0
and check that the
interface wlan5
status is down
:
Show output
Interface: wlan5 Mode: access-point Radio: wifi1 Status: down
Step 11: Expect a failure in the following command:
Configure the MON
device to connect to network1_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 network1_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 12: Expect a failure in the following command:
Configure the MON
device to connect to network2_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:f5:7c set interfaces wlan wlan0 type station network 1 ssid network2_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