Raspberry Pi as Standalone Access Point: Difference between revisions
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
== Setup DNS == | == Setup DNS == | ||
Later. Not mattering right now. | Later. Not mattering right now. | ||
== Network Interfaces == | == Network Interfaces == |
Revision as of 18:53, 28 November 2020
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;
- 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...