User avatar
Doctorwho8
Posts: 56
Joined: Mon Dec 31, 2012 11:00 pm
Location: Astoria NY
Contact: Website

Solutions needed for having a RasPi serve an IP address

Fri Nov 10, 2017 8:46 pm

Hello!
I have the usual collection of Raspberry Pi devices here. And a device
that the company still known as LinkSys configured to work as both a
three place router and a phone services device, in this case Vonage.

My original plan was to have the selected Raspberry Pi device pick up
an IP address from my regular setup. Then the middleware would send
the attached widget an IP address via in this case a USB attached
Ethernet adapter. I say original because it would also be doing this,
talking to an Arduino wearing a very custom shield who manages an
alarm system's keyboard. The phone box is of course connected to the
alarm panel via the appropriate widget.

For all of that please examine this page;
http://www.swblabs.com/article/retransm ... nd-arduino

Oddly enough his blog was allowing comments once and I asked about his
choice of optioisolators. Occupants of his junkbox.

Originally I had a different idea as applied to rest of it, but I
still want to see if the Raspberry Pi end can be made to work.
-------------------
Gregg
Doctor Who8

RonR
Posts: 514
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Solutions needed for having a RasPi serve an IP address

Fri Nov 10, 2017 9:05 pm

If you're looking to have your Raspberry Pi be the DHCP server for a LAN, you'll find a number of options by doing a Google search for:

raspberry pi dhcp server

User avatar
AllanGH
Posts: 29
Joined: Wed Oct 25, 2017 8:09 am
Location: 34.033909, -117.313616

Re: Solutions needed for having a RasPi serve an IP address

Sun Nov 12, 2017 2:06 am

I'll second the recommendation to do a search on "DHCP server for Raspberry Pi", and toss-in this link to the datasheet for the optoisolator you were inquiring about: http://www.farnell.com/datasheets/20079 ... 1509766665
##########################

http://www.catb.org/~esr/faqs/smart-questions.html

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Solutions needed for having a RasPi serve an IP address

Tue Nov 14, 2017 12:18 pm

I suggest the dnsmasq package. Works for me.

Code: Select all

sudo apt-get install dnsmasq
Then move or remove the original /etc/dnsmasq.conf file.
Create a new /etc/dnsmasq.conf file with a text editor, and insert this, changing the interface and dhcp range to match your network.

Code: Select all

interface wlan0
dhcp-range=192.168.1.20,192.168.1.100,255.255.255.0,12h
Reboot.
Done.

Return to “Advanced users”