<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 27, 2021 at 12:17 PM Andrew Miskell <<a href="mailto:andrewmiskell@mac.com">andrewmiskell@mac.com</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"><div dir="auto"><br><div dir="ltr"><br><blockquote type="cite">On Jun 27, 2021, at 12:02, Carl Karsten <<a href="mailto:carl@nextdayvideo.com" target="_blank">carl@nextdayvideo.com</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 27, 2021 at 10:49 AM Andrew Miskell <<a href="mailto:andrewmiskell@mac.com" target="_blank">andrewmiskell@mac.com</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"><div dir="auto"><br><div dir="ltr"><br><blockquote type="cite">On Jun 27, 2021, at 09:30, Carl Karsten <<a href="mailto:carl@nextdayvideo.com" target="_blank">carl@nextdayvideo.com</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 27, 2021 at 7:56 AM john doe <<a href="mailto:johndoe65534@mail.com" target="_blank">johndoe65534@mail.com</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">On 6/27/2021 9:17 AM, Carl Karsten wrote:<br>
> On Sun, Jun 27, 2021 at 2:10 AM john doe <<a href="mailto:johndoe65534@mail.com" target="_blank">johndoe65534@mail.com</a>> wrote:<br>
><br>
>> On 6/27/2021 7:03 AM, Dominik wrote:<br>
>>> 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>
>><br>
>> As I understand it, the OP wants to use DHCP static leases.<br>
>><br>
><br>
> No.<br>
><br>
> I need this for when move put a box on someone else's network.<br>
> So I don't have any control over the dhcp server.<br>
><br>
<br>
Then set an fix IP on dhcp client (dhclient ...) and remove it when you<br>
don't need it.<br>
<br>
Basically, you set the dhcp client to have a static address or let the<br>
client get a lease from a dhcp server.<br></blockquote><div><br></div><div>I'm trying to reduce the amount of work I need to do when I show up and discover there is no dhcp server.<br></div><div><br></div><div>Example locations: university, coffee shop, convention center, office meeting room.   In all cases I am a guest for a few days.  <br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Why do you need dnsmasq into the mix?<br></blockquote><div><br></div><div>I don't - I am just working on client config.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
--<br>
John Doe<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><span>Carl K<br></span></div></div></div>
<span>_______________________________________________</span><br><span>Dnsmasq-discuss mailing list</span><br><span><a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a></span><br><span><a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" target="_blank">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a></span><br></div></blockquote><br><div>A couple things. It might help to state what the client device is running (Windows, Linux and what distribution/version). </div><div><br></div></div></blockquote><div><br></div><div>Opsis PC: Ubuntu 20.04.2 LTS <br></div><div>Voctomix:  Debian GNU/Linux 11 <br></div><div><div></div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div></div><div>dnsmasq is a DNS/DHCP server not a client, so I’m unsure what the role of dnsmasq would be here. </div><div><br></div></div></blockquote><div><br></div><div></div><div>This is a bit OT (Off Topic) as in it is not a dnsmasq server question.  <br></div><div>I am asking about client config.</div><div>to a group qualified to know about such things. <br></div><div> if there is a better place to ask such questions, let me know. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div></div><div>Most of the places you listed would already have a DHCP server available to hand out IP addresses (and associated network information) on its own. Otherwise, there’s no easy way to connect to the internet without knowing all that particular networks details (e.g. gateway address, subnet mask, etc, etc) which defeats the point of providing network access in a number of the locations you listed. </div></div></blockquote></div><div><br></div>If I could always plug a wire into a jack and get to a dhcp server, I would not have a problem.    <br><div>I do not want to route 400mbs video traffic though the coffee shop wifi.  Which isn't a problem as my devices don't have wifi.  So yes the coffee shop does have a dhcp server, I may not want to use it.</div><div></div><div><br></div><div>If I do not have access to the venue network, then my networking needs are just my 2 devices.  This is the  case I am trying to provide for, without having to edit <br></div><div>a config file.  the Opsis PC is often headless,  so editing is done via ssh from the voctomix pc, which is hard if the 2 don't have networking setup. <br></div><br>-- <br><div dir="ltr"><div dir="ltr"><span>Carl K<br></span></div></div></div>
</div></blockquote><br><div>If you are using NetworkManager for configuring your interfaces on those linux machines, you can have two profiles bound to the same interface with the dhcp profile having a higher priority over the static profile. So if DHCP fails, the static profile takes over. </div><div><br></div></div></blockquote><div><br></div><div>That sounds like I won't have both static and dhcp IPs at the same time?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div></div><div>Ubuntu switched to NetPlan sometime back and I’m not sure if it has the same options, you’d have the check netplan’s documentation. </div></div></blockquote></div><br clear="all"><div>I seem to remember working this out for NetPlan and being happy with how simple the .conf was.   That was about 2 years ago and I'm not sure if it worked.<br></div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span>Carl K<br></span></div></div></div>