Wi-Fi interface
U
SER
G
UIDE
108
set wifi wlanX enable [ yes | no]
The default value is "
no
". The first access point is (
wlan0
) is always enabled, so the enabling of a
specific
wlan
applies only at
wlan1
to
wlan7
.
Another useful mechanism to filter accesses is the identification based on MAC address. To enable
it, use the following command:
set wifi wlanX mac-filter <deny|permit> enable yes
and to disable it:
set wifi wlanX mac-filter <deny|permit> enable no
The
deny
option inhibits the access to the access point for all the MAC addresses specified in the
MAC filter, while the
permit
option
blocks the access to all MAC address except for the ones
specified in the MAC filter.
After enabling Mac Filter, we can add or remove a MAC address with the following syntax:
set wifi wlanX mac-filter add <MACADDRESS>
set wifi wlanX mac-filter del <MACADDRESS>
To delete all MAC addresses from the filter use:
set wifi wlanX mac-filter clean-all-mac
On the
wlanX
interface you can configure the DHCP server using
10
:
set dhcp-server ... ...
You can set the logging level of the Wi-Fi module with:
set wifi wlanX debug-level [1|2|3|4|5]
The possible levels are:
1
→
warning
2
→
notification
3
→
information
4
→
debugging
5
→
verbose
debugging
With the previous command, the log levels will be set at the module start up. To change them, in
persistent mode, while you are using the Wi-Fi module, you can use:
debug wifi wlanX log-level [1|2|3|4|5]
There are two last commands that complete the Wi-Fi settings: one is used to de-authenticate and
to dissociate the client from the access point:
wifi wlanX disassociate <MAC-ADDRESS>
The second is useful to inspect the Wi-Fi interface:
show interface wifi ([all]|[wlanX]) ([statistics]|[status])
where:
info
– displays the information about the interface and the connected stations
statistics
– displays the interface status
status
- displays the status of the interfaces and of the relative connected stations
10 - For more details, see the DHCP section of this guide. Be aware that the name of the Wi-Fi interface is wlanx