Networking
-
Create
/boot/wpa_supplicant.conf
and add the correct configuration (opens in a new tab).- 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" }
- Then run
wpa_supplicant -i wlan0 -c ./wpa_supplicant.conf
-
Add
ipv6.disable=1
to/boot/cmdline.txt
-
Add the following to
/etc/network/interfaces.d/wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
- 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
- Disable
dhcpcd
withsudo systemctl disable dhcpcd
andsudo reboot
sudo apt install isc-dhcp-server
- 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;
}
- In the same file,
dhcpd.conf
, uncommentauthoritative
- Add the following to
/etc/default/isc-dhcp-server
INTERFACESv4="eth0
INTERFACESv6="
sudo reboot
and check status withsudo systemctl status isc-dhcp-server
More information here (opens in a new tab)