There's plenty out there on setting up an ad-hoc network on your RPi, (Mine's an A, I believe.) but almost none on how to do it when you're using Raspbian Jessie. As such, I'm having a bit of trouble getting things working.
I've altered my /etc/network/interfaces to read
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet manual
wireless-channel 1
wireless-essid PiNet
wireless-mode ad-hoc
#allow-hotplug wlan0
#iface wlan0 inet manual
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
To get a static IP, I altered my /etc/dhcpcd.conf by adding
interface wlan0
static ip_address=192.168.1.1/24
to the bottom of the file.
I also installed isc-dhcp-server and changed my /etc/default/isc-dhcp-server by adding wlan0 to INTERFACES=''
Finally, I changed my /etc/dhcp/dhcpd.conf by...
- changing
ddns-update-style none;toddns-update-style interim; - uncommenting
authoritative; - and adding
subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.5 192.168.1.100 }to the bottom of the file.
It creates an open network PiNet, but my computer can't connect to it.
Is there anything obvious that I've missed?
dhcpcdto manage networks. – Milliways Jan 11 '17 at 23:00