Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Created October 16, 2014 14:52
Show Gist options
  • Save random-robbie/b7e3a4f2ad4b040dbad3 to your computer and use it in GitHub Desktop.
Save random-robbie/b7e3a4f2ad4b040dbad3 to your computer and use it in GitHub Desktop.
sudo apt-get install hostapd udhcpd -y
nano /etc/udhcpd.conf
insert in to:
start 10.0.2.1 # This is the range of IPs that the hostspot will give to client devices.
end 10.0.2.100
interface wlan0
remaining yes
opt dns 8.8.8.8 4.2.2.2 # The DNS servers client devices will use.
opt subnet 255.255.255.0
opt router 10.0.0.254 # The Pi's IP address on wlan0 which we will set up shortly.
opt lease 864000 # 10 day DHCP lease time in seconds
nano /etc/default/udhcpd
#DHCPD_ENABLED="no"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment