[ale] [ALE] Setting up DHCP with Wireless
Joey Kelly
joey at joeykelly.net
Wed Sep 27 12:38:00 EDT 2023
On Tuesday, September 19, 2023 12:33:04 PM CDT Chuck Payne via Ale wrote:
> Alex thanks, I might try dhcp so here what I got so far
Assuming your primary DHCP has a scope defined, have the wireless segment use
another non-overlapping scope in the same subnet as the primary, running on
the device you described.
>
> As I told you, I have the Banana-R3 setup with OpenWRT
> https://uglyscale.press/2023/09/13/setup-the-banana-r3-with-openwrt/
>
> And the ZimaBoard with pfSense
> https://uglyscale.press/2023/09/17/how-to-setup-zimaboard-to-run-pfsense/
>
> So, I am grateful for the help, because again the R2 Pro will be OMV so I
> have a nas.
>
> On Tue, Sep 19, 2023 at 12:03 AM Alex Carver via Ale <ale at ale.org> wrote:
> > DHCP Relaying is more complicated than just DHCP service. Since you are
> > already using this for testing purposes then having a dedicated DHCP
> > service keeps your main DHCP pool clean.
> >
> > If you want something relatively simple to set up then just use DNSMasq
> > as your DHCP server. It's nice and small and easy to configure.
> >
> > On 2023-09-18 12:11, Chuck Payne via Ale wrote:
> > > Boris,
> > >
> > > So, here is my setup. I have a ZimaBoard that is pfSense that is the
> > > DHCP
> > > server, connecting on the back of ZimaBoard ethernet for lan is the
> >
> > 2.5Ghz
> >
> > > SFP connection on my Banana-Pi R3 ( Which is my wifi router ). So, since
> >
> > I
> >
> > > have the Banana-Pi R2 Pro, I was like I need storage, thus
> > > OpenMediaVault
> > > on Debian 11.
> > >
> > > I was thinking, ok let me setup DHCP relay, so I don't have another DHCP
> > > Server or router. I am planning to install 8TB Drive, since the R2 Pro
> >
> > only
> >
> > > has one SATA slot. My plan is to have network with SBC. I know a bit
> >
> > geeky.
> >
> > > Alex,
> > >
> > > So as soon as I can get past the error that DHCPD is givng me, I will
> > > trying. DHPD Relay look to be less troubling and I was just hoping to
> >
> > pass
> >
> > > thru from the R3.
> > >
> > > Thanks guys. I will keep hammering away
> > >
> > > On Mon, Sep 18, 2023, 2:57 PM Boris Borisov via Ale <ale at ale.org> wrote:
> > >> Put openwrt on the device. Is purposely built router OS in slim
> >
> > footprint.
> >
> > >> Everything that you can imagine is there. Or is installable with
> > >> package
> > >> manager.
> > >>
> > >> I've been lately buying old routers from Goodwill and installing latest
> > >> openwrt firmware. We'll before buying I'm checking openwrt repository
> > >> if
> > >> that router is supported.
> > >>
> > >>
> > >> In general the service should listen on the device in your case wlan0.
> > >>
> > >> On Mon, Sep 18, 2023, 01:45 Alex Carver via Ale <ale at ale.org> wrote:
> > >>> First question:
> > >>>
> > >>> Why not run a local DHCP just for your test devices and make the ARM
> > >>> board a router?
> > >>>
> > >>> On 2023-09-16 19:08, Chuck Payne via Ale wrote:
> > >>>> So,
> > >>>>
> > >>>> I am trying to setup an arm board that has the following setup
> > >>>>
> > >>>> eth0
> > >>>> eth1
> > >>>> lan0 at eth1
> > >>>> lan1 at eth1
> > >>>> lan2 at eth1
> > >>>> lan3 at eth1
> > >>>>
> > >>>> Because of the part of the house I am on, I can't use ethernet. So I
> > >>>
> > >>> have a
> > >>>
> > >>>> wifi card in. So I have wlan0.
> > >>>>
> > >>>> Being that eth0 should be wan, and lan0 to lan3 are lan. Now here is
> > >>>
> > >>> what I
> > >>>
> > >>>> am trying to do, and it's gonna be a bit crazy.
> > >>>>
> > >>>> I like to use the arm board ( Banana-Pi BPi-R2 Pro ) as a hub for
> >
> > other
> >
> > >>>> small board devices on my desk.
> > >>>>
> > >>>> I am running Bullseye, and I installed isc-dhcp-relay. In hopes that
> > >>>> I
> > >>>
> > >>> can
> > >>>
> > >>>> just pull in a device into one of the four lan ports.
> > >>>>
> > >>>> Here's what I got setup so far
> > >>>>
> > >>>> # Defaults for isc-dhcp-relay initscript
> > >>>> # sourced by /etc/init.d/isc-dhcp-relay
> > >>>> # installed at /etc/default/isc-dhcp-relay by the maintainer scripts
> > >>>>
> > >>>> #
> > >>>> # This is a POSIX shell fragment
> > >>>> #
> > >>>>
> > >>>> # What servers should the DHCP relay forward requests to?
> > >>>> SERVERS="192.168.107.1"
> > >>>>
> > >>>> # On what interfaces should the DHCP relay (dhrelay) serve DHCP
> > >>>
> > >>> requests?
> > >>>
> > >>>> INTERFACES="eth1 wlan0"
> > >>>>
> > >>>> # Additional options that are passed to the DHCP relay daemon?
> > >>>> OPTIONS=""
> > >>>>
> > >>>> I am assuming, which is bad for me that I need to wlan0 to issue the
> > >>>> request, correct? Or do I need lan0 at eth1 thru lan3 at eth1 to pass the
> > >>>> request. Which now makes me ask, how will they be able to pass
> > >>>> traffic
> > >>>
> > >>> from
> > >>>
> > >>>> the wlan0 to those lanx ports?
> > >>>>
> > >>>> Is it possible to do what I am wanting? I want to test ethernet
> >
> > devices,
> >
> > >>>> thus why I am not using a wireless usb dongle. I have plenty. Oh, did
> >
> > I
> >
> > >>>> tell you that I have already install OpenMediaVault on this board, so
> > >>>> another reason for me to get it working.
> > >>>>
> > >>>> Thanks for any help with my crazy idea.
> > >>>>
> > >>>>
> > >>>> _______________________________________________
> > >>>> Ale mailing list
> > >>>> Ale at ale.org
> > >>>> https://mail.ale.org/mailman/listinfo/ale
> > >>>> See JOBS, ANNOUNCE and SCHOOLS lists at
> > >>>> http://mail.ale.org/mailman/listinfo
> > >>>
> > >>> _______________________________________________
> > >>> Ale mailing list
> > >>> Ale at ale.org
> > >>> https://mail.ale.org/mailman/listinfo/ale
> > >>> See JOBS, ANNOUNCE and SCHOOLS lists at
> > >>> http://mail.ale.org/mailman/listinfo
> > >>
> > >> _______________________________________________
> > >> Ale mailing list
> > >> Ale at ale.org
> > >> https://mail.ale.org/mailman/listinfo/ale
> > >> See JOBS, ANNOUNCE and SCHOOLS lists at
> > >> http://mail.ale.org/mailman/listinfo
> > >
> > > _______________________________________________
> > > Ale mailing list
> > > Ale at ale.org
> > > https://mail.ale.org/mailman/listinfo/ale
> > > See JOBS, ANNOUNCE and SCHOOLS lists at
> > > http://mail.ale.org/mailman/listinfo
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > https://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
--
Joey Kelly
Minister of the Gospel and Linux Consultant
http://joeykelly.net
504-239-6550
More information about the Ale
mailing list