<div dir="ltr">Hi Simon,<div><br></div><div>That is correct we are using dhcp-relay on our switches</div><div><br></div><div>My concern with removing them completely is that the devices will no longer respond to ping, we use a Web based systems to send dat to them (they are label printers) that depends on the device to be ping-able to send the print jobs to them.</div><div><br></div><div>As for tagging - Are you saying i would be able to tag the correct gateway to correspond with my Option 82 statements? below is part of my dnsmasq.conf file</div><div><br></div><div><br></div><div><br></div><div>dhcp-circuitid=set:01_port_01,temp-2b.plant.ldn01:ge-0/0/12.0:pack1-5-302</div><div>dhcp-circuitid=set:02_port_02,temp-2b.plant.ldn01:ge-0/0/6.0:pack1-5-302</div><div>dhcp-circuitid=set:03_port_03,temp-2b.plant.ldn01:ge-0/0/2.0:pack1-5-302</div><div>dhcp-circuitid=set:04_port_04,temp-2b.plant.ldn01:ge-0/0/18.0:pack1-5-302</div><div>dhcp-circuitid=set:05_port_05,temp-2b.plant.ldn01:ge-0/0/9.0:pack1-5-302</div><div><br></div><div>dhcp-range=net:01_port_01,temp-2b.plant.ldn01:ge-0/0/12.0:pack1-5-302,10.192.4.11,10.192.4.11,255.255.255.0</div><div>dhcp-range=net:02_port_02,temp-2b.plant.ldn01:ge-0/0/6.0:pack1-5-302,10.192.4.21,10.192.4.21,255.255.255.0</div><div>dhcp-range=net:03_port_03,temp-2b.plant.ldn01:ge-0/0/2.0:pack1-5-302,10.192.4.31,10.192.4.31,255.255.255.0</div><div>dhcp-range=net:04_port_04,temp-2b.plant.ldn01:ge-0/0/18.0:pack1-5-302,10.192.4.41,10.192.4.41,255.255.255.0</div><div>dhcp-range=net:05_port_05,temp-2b.plant.ldn01:ge-0/0/9.0:pack1-5-302,10.192.4.51,10.192.4.51,255.255.255.0 </div><div><br></div><div><br></div><div>Thanks!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 28, 2017 at 5:24 PM, Simon Kelley <span dir="ltr"><<a href="mailto:simon@thekelleys.org.uk" target="_blank">simon@thekelleys.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 28/06/17 13:25, Keith Lyons wrote:<br>
> I have Dnsmasq configured for option 82 for three different subents:<br>
> 10.192.4.x, 10.192.5.x and 10.192.9.x, all of the clients get the proper<br>
> IP's as expected via the Option 82 statements, but the 10.192.5 and<br>
> 10.192.9.x clients are getting the Gateway for the 10.19.4.x subnet.<br>
><br>
> We are using Juniper switches and they are setup for DHCP relay, and<br>
> only one nic on the dnsmasq instance. Dnsmasq is running on a Centos 7<br>
> virtual machine.<br>
><br>
> For each subnet declared I am declaring the corresponding gateway like this:<br>
> dhcp-option=option:router,10.<wbr>192.4.1<br>
> dhcp-option=option:router,10.<wbr>192.5.1<br>
> dhcp-option=option:router,10.<wbr>192.9.1<br>
><br>
> Any insight on how to do this so that the clients each get the proper<br>
> gateway would be greatly appreciated.<br>
><br>
> I can post the full conf file if that would be helpful<br>
><br>
> Thanks,<br>
><br>
> Keith<br>
><br>
<br>
</div></div>The solution might be a simple as removing the<br>
dhcp-option=option:router,....<wbr>... lines completely. If the DHCP relay is<br>
running on the router (and it sounds like it is) then the defaults will<br>
just do the right thing.<br>
<br>
<br>
Failing that, you're going to need to learn about DHCP tags, and<br>
selecting the correct router option using tags set from the option 82 data.<br>
<br>
<br>
<br>
Cheers,<br>
<br>
Simon.<br>
<br>
<br>
<br>______________________________<wbr>_________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.<wbr>thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.<wbr>uk/mailman/listinfo/dnsmasq-<wbr>discuss</a><br>
<br></blockquote></div><br></div>