From fb8550be2eee56423f3c875eac5d7ba414866dd7 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 9 Aug 2021 00:27:30 +0200 Subject: [PATCH] linux: added ip and wpa_supplicant --- wiki/linux/ip.md | 27 +++++++++++++++++++++++++++ wiki/linux/wpa_supplicant.md | 17 +++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 wiki/linux/ip.md create mode 100644 wiki/linux/wpa_supplicant.md diff --git a/wiki/linux/ip.md b/wiki/linux/ip.md new file mode 100644 index 0000000..7dc37c3 --- /dev/null +++ b/wiki/linux/ip.md @@ -0,0 +1,27 @@ +# IP + +`ip` is a program that can edit and display the configurations of network +interfaces, routing and tunnels. +It is a replacement for the program `ifconfig`. + +## List all network interfaces + +You can list network interfaces by running: + +```shell +ip link list +``` + +## Enable/disable a network interface + +Assuming the interface is named `wlan0` run the following: + +```shell +ip link set wlan0 up +``` + +Disabling works accordingly by running: + +```shell +ip link set wlan0 down +``` diff --git a/wiki/linux/wpa_supplicant.md b/wiki/linux/wpa_supplicant.md new file mode 100644 index 0000000..1497a0d --- /dev/null +++ b/wiki/linux/wpa_supplicant.md @@ -0,0 +1,17 @@ +# WPA Supplicant + +`wpa_supplicant` is a free implementation of an IEEE 802.11i supplicant. +It is especially interesting due to its WPA2 and WPA3 capabilities in contrast +to other networking software. + +## Connect to a WPA2 secured WLAN + +This part assumes that your network interface is called `wlan0` +(change it accordingly). + +- First make sure that your [network interface is up](./ip.md). +- Save the authentication details to a file by running + `wpa_passphrase >> /etc/wpa_supplicant.conf` +- Connect to the WLAN by running + `wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf` + (`-B` is optional for running the process in the background)