On Sun, 1 Jul 2018 13:07:06 +0200, Newdo declaimed the
following:
>i am currently looking for information how to setup a RPi remote with a
>known MAC address.
>The first idea was to broadcast MAC & NewIP while the RPi is listening
>for those packets and uses this static IP address afterwards.
Depends upon how your network is configured...
Presuming you have a router somewhere that responds to DHCP requests,
you would configure the router to always provide the static IP address when
it sees a request from the RPi's MAC address (that should be fixed on the
RPi and unique on the network).
The RPi already broadcasts its MAC address on boot, asking for an IP
from a DHCP server. Most routers already perform as DHCP servers; if you
don't have such, you'll need to add some node to the network that runs a
DHCP server... OR you end up having to manually set up IPs on the RPi,
along with maybe hosts files on all the other network nodes and possibly
even entries to the routing tables.
{I'd try to show examples but I've moved recently, and haven't yet put my
dual-band router between the U-verse modem and the rest of my network -- I
don't have the U-verse modem configured for static IPs to RPi and BBBs...
The U-verse router is only single Wi-Fi band, and I want to turn that off
in favor of the dual-band; it also adds another layer of firewall, as the
U-verse will be issuing an IP to the dual-band router, and the dual-band
will issue IPs to the rest of the network, using a different sub-net
[192.168.1.x for U-verse, 192.168.2.x for dual-band]}.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|