# 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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wireless.mrw0l05zyn.cl/wi-fi/conexion-de-red-manual.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
