Raspberry Pi as Standalone Access Point

From Wurst-Wasser.net
Jump to navigation Jump to search

WIP - WIP - WIP



I had a case (that has yet to be documented here), where I needed an Raspberry Pi Zero WH to act as access point, including DHCP-Server. Standalone, not connected to any network.

Installation

apt-get install hostapd dnsutils traceroute isc-dhcp-server

Configuration

Disable IPv6

vi /etc/sysctl.conf

and set

net.ipv6.conf.all.disable_ipv6=1

Explanation: Disable IPv6 (to KISS).

Enable and Configure DHCPd

vi /etc/dhcp/dhcpd.conf

…set…

default-lease-time 600;
max-lease-time 7200;

…un-comment this:

authoritative;

…set your ip range:

subnet 10.178.42.0 netmask 255.255.255.0 {
 range 10.178.42.100 10.178.42.240;
  1. option routers 10.178.somebyte.anotherbyte;
 option domain-name "pi00.wurst-wasser.net";
 option domain-name-servers 127.0.0.1;
}

Launch it:

systemctl start isc-dhcp-server.service

Setup DNS

Later. Not mattering right now.

Network Interfaces

vi /etc/network/interfaces

Don't touch this file. dhcpcd gets jealous...