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).

../../../_images/wlandisable.svg

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 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 controllers wlan radios wifi1 band 2.4GHz
set controllers wlan radios wifi1 channel 1
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 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
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
        Phy: wifi1
        Status: up
        BSSID: 12:68:38:c6:f4:d9
        SSID: network1_2.4GHz
        Number of connected stations: 0

Step 3: 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 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 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
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'

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:d9
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 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=12.6 ms
64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=7.47 ms

--- 192.168.100.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 3ms
rtt min/avg/max/mdev = 7.467/10.026/12.585/2.559 ms

Step 6: Run command configure at DUT0 and expect this output: Step 7: Run command delete interfaces bridge br0 address 192.168.100.1/24 at DUT0 and expect this output: Step 8: Run command set interfaces bridge br0 at DUT0 and expect this output: Step 9: Run command commit at DUT0 and expect this output: Step 10: 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 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: 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:d9
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 13: Run command configure at DUT0 and expect this output: Step 14: Run command delete interfaces wlan wlan4 disable at DUT0 and expect this output: Step 15: Run command commit at DUT0 and expect this output:


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 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 controllers wlan radios wifi1 band 2.4GHz
set controllers wlan radios wifi1 channel 1
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 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
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
        Phy: wifi1
        Status: up
        BSSID: 12:68:38:c6:f4:d9
        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: 12:68:38:c6:f5:d9
        SSID: network2_2.4GHz
        Number of connected stations: 0

Step 4: 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 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 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
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'

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 12:68:38:c6:f4:d9
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 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=17.1 ms
64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=2.30 ms

--- 192.168.100.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 2.296/9.685/17.074/7.389 ms

Step 7: Run command configure at DUT0 and expect this output: Step 8: Run command delete interfaces bridge br0 address 192.168.100.1/24 at DUT0 and expect this output: Step 9: Run command set interfaces bridge br0 at DUT0 and expect this output: Step 10: Run command commit at DUT0 and expect this output: Step 11: 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 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 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
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'

Step 12: 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:d9
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 13: 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.1 ms
64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=11.3 ms

--- 192.168.100.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 11.268/12.179/13.091/0.918 ms

Step 14: Run command configure at DUT0 and expect this output: Step 15: Run command delete interfaces bridge br0 address 192.168.100.1/24 at DUT0 and expect this output: Step 16: Run command set interfaces bridge br0 at DUT0 and expect this output: Step 17: Run command commit at DUT0 and expect this output: Step 18: 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 controllers wlan radios wifi1 band 2.4GHz
set controllers wlan radios wifi1 channel 1
set controllers wlan radios wifi1 disable
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 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
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

Connecting with wlan4 and wlan5 is not possible since both interfaces are down.

Step 19: 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 20: 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 21: 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:d9
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 22: 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:d9
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 23: Run command configure at DUT0 and expect this output: Step 24: Run command delete controllers wlan radios wifi1 disable at DUT0 and expect this output: Step 25: Run command commit at DUT0 and expect this output: