> For the complete documentation index, see [llms.txt](https://wireless.mrw0l05zyn.cl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wireless.mrw0l05zyn.cl/wi-fi/conexion-de-red-manual.md).

# Conexión de red manual

## wpa\_supplicant

### WEP

Creación de archivo de configuración manualmente.

{% code title="wifi.conf (ASCII key)" %}

```shell
network={
  ssid="<SSID>"
  wep_key0="<ASCII-key>"
  wep_tx_keyidx=0
  key_mgmt=NONE
}
```

{% endcode %}

La key hexadecimal debe ser ingresada sin comillas `"` y sin utilizar `:` (separador).

{% code title="wifi.conf (hexadecimal key)" %}

```shell
network={
  ssid="<SSID>"
  wep_key0=<hexadecimal-key>
  wep_tx_keyidx=0
  key_mgmt=NONE
}
```

{% endcode %}

### WPA/WPA2-PSK

{% code title="wifi.conf" %}

```shell
network={
  ssid="<SSID>"
  scan_ssid=1
  psk="<PSK>"
  key_mgmt=WPA-PSK
}
```

{% endcode %}

Creación de archivo de configuración con wpa\_passphrase.

```shell
wpa_passphrase <ssid> > wifi.conf
```

### **WPA-Enterprise**

PEAP-MSCHAPv2.

{% code title="wifi.conf" %}

```shell
network={
  ssid="<SSID>"
  scan_ssid=1
  key_mgmt=WPA-EAP
  eap=PEAP
  identity="<domian>\<user>"
  password="<password>"
  phase1="peaplabel=0"
  phase2="auth=MSCHAPV2"
}
```

{% endcode %}

### Conexión a la red

```shell
sudo wpa_supplicant -i <interface> -c wifi.conf
sudo dhclient <interface>
```
