Disable
The following scenario shows how to disable a WLAN interface, stopping the selected WLAN network, and how to disable a radio module, stopping all networks configured on top the selected module.
Disable Interface
Description
In this example, the WLAN interfaces wlan4
will be disabled by
mean of the disable
command.
Scenario
Step 1: Set the following configuration in DUT0
:
set controllers wlan installation indoor set controllers wlan radios wifi1 band 2.4GHz set controllers wlan radios wifi1 channel 1 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 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 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 network1_5GHz set interfaces wlan wlan2 bridge-group bridge br0 set interfaces wlan wlan2 phy wifi0 set interfaces wlan wlan2 type access-point security akm none set interfaces wlan wlan2 type access-point ssid network2_5GHz
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 Phy: wifi1 Status: up BSSID: 52:5a:65:42:e3:e1 SSID: network1_2.4GHz Number of connected stations: 0
Step 3: Set the following configuration in DUT0
:
set interfaces bridge br0 address 192.168.100.1/24
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 52:5a:65:42:e3:e1 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=14.9 ms 64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=21.7 ms --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 2ms rtt min/avg/max/mdev = 14.906/18.282/21.659/3.379 ms
Step 6: Set the following configuration in DUT0
:
set interfaces wlan wlan4 disable
Note
When disabled
, a WLAN interface will be down
so no connection is possible.
Step 7: 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 Phy: wifi1 Status: down
Step 8: 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 52:5a:65:42:e3:e1 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, the radio interfaces wifi1
will be disabled by mean of the
disable
command. As consequence of that, the WLAN interfaces wlan4
and wlan5
will be disabled as well.
Scenario
Step 1: Set the following configuration in DUT0
:
set controllers wlan installation indoor set controllers wlan radios wifi1 band 2.4GHz set controllers wlan radios wifi1 channel 1 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 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 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 network1_5GHz set interfaces wlan wlan2 bridge-group bridge br0 set interfaces wlan wlan2 phy wifi0 set interfaces wlan wlan2 type access-point security akm none set interfaces wlan wlan2 type access-point ssid network2_5GHz
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 Phy: wifi1 Status: up BSSID: 52:5a:65:42:e3:e1 SSID: network1_2.4GHz Number of connected 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 Phy: wifi1 Status: up BSSID: 52:5a:65:42:e4:e1 SSID: network2_2.4GHz Number of connected stations: 0
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 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 52:5a:65:42:e3:e1 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 6: 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.2 ms 64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=3.93 ms --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 2ms rtt min/avg/max/mdev = 3.929/19.068/34.207/15.139 ms
Step 7: Set the following configuration in DUT0
:
set interfaces bridge br0 address 192.168.100.1/24
Step 8: 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 52:5a:65:42:e4:e1 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 9: 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=21.5 ms 64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=25.5 ms --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 2ms rtt min/avg/max/mdev = 21.475/23.476/25.477/2.001 ms
Step 10: Set the following configuration in DUT0
:
set controllers wlan radios wifi1 disable
Note
Connectivity with wlan4
and wlan5
is not possible since both interfaces are down
.
Step 11: 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 Phy: wifi1 Status: down
Step 12: 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 Phy: wifi1 Status: down
Step 13: 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 52:5a:65:42:e3:e1 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 14: 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 52:5a:65:42:e4:e1 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