Programming
Components
Networking

Networking

  1. Create /boot/wpa_supplicant.conf and add the correct configuration (opens in a new tab).

    1. Most likely:
    network={
      ssid="WIFI_SSID"
      scan_ssid=1
      key_mgmt=WPA-EAP
      identity="USERNAME"
      password="PASSWORD"
      eap=PEAP
      phase1="peaplabel=0"
      phase2="auth=MSCHAPV2"
    }
    1. Then run wpa_supplicant -i wlan0 -c ./wpa_supplicant.conf
  2. Add ipv6.disable=1 to /boot/cmdline.txt

  3. Add the following to /etc/network/interfaces.d/wlan0

allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  1. Add the following to /etc/network/interfaces.d/eth0
auto eth0
iface eth0 inet static
address 192.168.100.1
netmask 255.255.255.0
  1. Disable dhcpcd with sudo systemctl disable dhcpcd and sudo reboot
  2. sudo apt install isc-dhcp-server
  3. Add the following to /etc/dhcp/dhcpd.conf
subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.50 192.168.100.240;
option routers 192.168.100.1;
option subnet-mask 255.255.255.0;
}
  1. In the same file, dhcpd.conf, uncomment authoritative
  2. Add the following to /etc/default/isc-dhcp-server
INTERFACESv4="eth0
INTERFACESv6="
  1. sudo reboot and check status with sudo systemctl status isc-dhcp-server

More information here (opens in a new tab)