# Interface Modes

* Defina a interface para o modo gerenciado

{% code lineNumbers="true" %}
```
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode managed
sudo ifconfig wlan0 up
```
{% endcode %}

* Defina a interface para o modo Ad-hoc

{% code lineNumbers="true" %}
```
sudo iwconfig wlan0 mode ad-hoc
sudo iwconfig wlan0 essid HTB-Mesh
```
{% endcode %}

* Defina a interface para o modo Mesh

```
sudo iw dev wlan0 set type mesh
```

* Defina a interface para o modo monitor

{% code lineNumbers="true" %}
```
sudo ifconfig wlan0 down
sudo iw wlan0 set monitor control
sudo ifconfig wlan0 up
```
{% endcode %}

