<div dir="ltr"><div>These machines are portable. they will likely start out on a lan where I control the dhcp server;  the os apps and config are setup, then they are moved to another room.   They live there for a few days to a week, and then are put back in storage, with a few being left out for R&D to experiment with.<br></div><div><br></div><div>There isn't always a dhcp server on the network.  Sometimes there isn't even a network with the exception of a single run of cat 5 between 2 machines.</div><div><br></div><div>This is what is going on:<br></div><div></div><div><a href="https://debconf-video-team.pages.debian.net/docs/room_setup.html#room-setup">https://debconf-video-team.pages.debian.net/docs/room_setup.html#room-setup</a></div><div></div><div><br></div><div>Sometimes there isn't a link to "DHCP – Gigabit feed out" (thus there is no live stream, just recording to local disk)</div><div><br></div><div>This is what I want the static IP for:<br></div><div>The "Opsis PC" has a systemd script that connects to "Voctomix PC"  <br></div><div>The script uses a hostname, the hostname is set in /etc/hosts</div><div><br></div><div>If there is a network with dhcp, then it will be nice to get the gateway and be able to ssh into machines.<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 27, 2021 at 12:03 AM Dominik <<a href="mailto:dl6er@dl6er.de">dl6er@dl6er.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey Carl,<br>
<br>
On Sat, 2021-06-26 at 19:16 -0500, Carl Karsten wrote:<br>
> I'm looking for advice on haveing some boxes to have both dynamic and<br>
> static IPs.  <br>
<br>
Why use a static IP at all? We have often enough seen people use static<br>
addresses for the wrong reasons.<br>
<br>
Consider using only DHCP and<br>
<br>
(a) use a hostname to access the device. In the end, memorizing some-<br>
service.lan is more reliable than 192.168.1.149. You may think<br>
differently, but let's see what you say after not having logged into<br>
the box for half a year - do you still know the address without looking<br>
it up? However, you may still recall a good hostname.<br>
<br>
(b) use a deterministic DHCP server like dnsmasq. It always tries to<br>
assign the same IP addresses to the same devices (instead of numbering<br>
them sequentially based on their appearance like cheap routers often<br>
do).<br>
<br>
Using (a), (b) or (a)+(b) doesn't require you to have a static IP at<br>
all.<br>
<br>
Best,<br>
Dominik<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span>Carl K<br></span></div></div>