XMEN BLOGGER: Raspberry Pi - SkyPi

Saturday, March 04, 2017

Raspberry Pi - SkyPi


From: http://wiki.neuralbs.com/index.php/SkyPi
& https://stargazerslounge.com/topic/180030-skyfi-with-a-pi/



DHCP/DNS

Don't want to have to remember the IP of the SkyPi and networks stuff... We start by naming the RPI as SkyPi-EQ6 (just so we are consistent with the rest of this document), but only for the wlan0 interface (the RPI's "real" name will remain SkyPi when plugged via eth0)

vim /etc/hosts
127.0.1.1 SkyPi
192.168.168.1 SkyPi-eq6

Now let's install dnsmasq and perform a minimal configuration (find and uncomment/modify the lines described below)

apt-get install dnsmasq
vim /etc/dnsmasq.conf

By default, all lines are comments, so simply add/modify the following lines:

interface=wlan0
dhcp-range=192.168.168.50,192.168.168.100,12h
port=0 # we don't want/need DNS

Now restart the service:

root@SkyPi:~# /etc/init.d/dnsmasq restart
[ ok ] Restarting DNS forwarder and DHCP server: dnsmasq.


0 comentarios: