[Dnsmasq-discuss] router option being ignored for second dhcp-range
Bethany Benzur
bethany at paperlesspost.com
Fri Aug 10 02:17:16 BST 2012
All,
I'm having issues trying to run dnsmasq for two different subnets on a
single centos 6.3 VM. The VM has an ethernet interface on each
subnet.: eth0 is on 10.50 and eth1 is on 10.51. My config is as
follows:
dns-forward-max=200
domain=pp
cache-size=1000
log-queries
log-facility=/var/log/dnsmasq.log
dhcp-lease-max=500
# Common DHCP options
dhcp-option=option:dns-server,8.8.8.8,10.50.0.12,10.0.0.171
# DHCP options for staging
dhcp-option=net:staging,option:router,10.51.0.1
dhcp-range=set:staging,10.51.0.20,10.51.0.239,720h
#DHCP options for production
dhcp-option=net:production,option:router,10.50.0.1
dhcp-range=set:production,10.50.0.20,10.50.0.239,720h
Clients on both subnets are receiving IP addresses and dns-server info
correctly, however only one subnet receives the correct router
options.
For machines on the `production` dhcp-range, the gateway is set to
'10.50.0.10' (the IP address of eth0 on the dnsmasq server):
]# cat var/lib/dhclient/dhclient-eth0.leases | grep route
routers 10.51.0.10;
routers 10.51.0.10;
For machines on the `staging` dhcp-range, the gateway is set correctly
to '10.50.0.1'.
My dnsmasq version is dnsmasq-2.48-6.el6.x86_64 .
thank you!
Bethany
--
Bethany Benzur
DevOps Engineer
http://www.paperlesspost.com
More information about the Dnsmasq-discuss
mailing list