Keith Lyons
2017-07-13 21:13:05 UTC
After reading the man page and doing research on the web I thought I had
resolved an issue that I was having regarding default gateways, and while
it appears to have corrected my gateway issue I may have introduced an new
issue.
Little history - we are using Dnsmasq to serve dhcp to about 25 devices -
they are all printers that get their print jobs from a web application. We
are using Option 82 as these printers break often and we just want to be
able to drop in the fresh printer and power on and go.
To resolve my gateway issue I came up with this:
dhcp-range=set:net1,10.192.4.101,10.192.4.115,255.255.255.0,12h
dhcp-option=net:net1,3,10.192.4.1
dhcp-range=set:net2,10.192.5.101,10.192.5.150,255.255.255.0,12h
dhcp-option=net:net2,3,10.192.5.1
dhcp-range=set:net3,10.192.6.101,10.192.6.150,255.255.255.0,12h
dhcp-option=net:net3,3,10.192.6.1
dhcp-range=set:net4,10.192.9.101,10.192.9.150,255.255.255.0,12h
dhcp-option=net:net4,3,10.192.9.1
tagging the ranges net1. net2 etc. Like i said, all my devices now get the
correct gateway, but some of them are getting an IP form the range given
and not the address that I it should form option 82
this is what I am doing for option 82:
dhcp-circuitid=set:ln_oops_01,access02-4b.plant.ldn01
xe-0/0/44.0:plant-printers-307
dhcp-circuitid=set:ln_opps_02,access02-4b.plant.ldn01
xe-0/0/45.0:plant-printers-307
dhcp-range=net:ln_opps_01,access02-4b.plant.ldn01:xe-0/0/44.0:plant-printers-307,10.192.9.10,10.192.9.10,255.255.255.0,5m
dhcp-range=net:30_port_30,access02-4b.plant.ldn01:xe-0/0/45.0:plant-printers-307,10.192.9.11,10.192.9.11,255.255.255.0,5m
Do I need to somehow combine the two scenarios, i.e. using the tags for the
gateway in my option 82 statements?
Thanks
Keith
resolved an issue that I was having regarding default gateways, and while
it appears to have corrected my gateway issue I may have introduced an new
issue.
Little history - we are using Dnsmasq to serve dhcp to about 25 devices -
they are all printers that get their print jobs from a web application. We
are using Option 82 as these printers break often and we just want to be
able to drop in the fresh printer and power on and go.
To resolve my gateway issue I came up with this:
dhcp-range=set:net1,10.192.4.101,10.192.4.115,255.255.255.0,12h
dhcp-option=net:net1,3,10.192.4.1
dhcp-range=set:net2,10.192.5.101,10.192.5.150,255.255.255.0,12h
dhcp-option=net:net2,3,10.192.5.1
dhcp-range=set:net3,10.192.6.101,10.192.6.150,255.255.255.0,12h
dhcp-option=net:net3,3,10.192.6.1
dhcp-range=set:net4,10.192.9.101,10.192.9.150,255.255.255.0,12h
dhcp-option=net:net4,3,10.192.9.1
tagging the ranges net1. net2 etc. Like i said, all my devices now get the
correct gateway, but some of them are getting an IP form the range given
and not the address that I it should form option 82
this is what I am doing for option 82:
dhcp-circuitid=set:ln_oops_01,access02-4b.plant.ldn01
xe-0/0/44.0:plant-printers-307
dhcp-circuitid=set:ln_opps_02,access02-4b.plant.ldn01
xe-0/0/45.0:plant-printers-307
dhcp-range=net:ln_opps_01,access02-4b.plant.ldn01:xe-0/0/44.0:plant-printers-307,10.192.9.10,10.192.9.10,255.255.255.0,5m
dhcp-range=net:30_port_30,access02-4b.plant.ldn01:xe-0/0/45.0:plant-printers-307,10.192.9.11,10.192.9.11,255.255.255.0,5m
Do I need to somehow combine the two scenarios, i.e. using the tags for the
gateway in my option 82 statements?
Thanks
Keith