# dhcp dnsmasq.conf file for each network

Hi,

I'm using Juno RDO, We have special needs for our dhcp servers in several tenant networks, the problem is, each network needs different options set up in the dhcp server. But we only have one file dnsmasq.conf where we can set the dhcp options for all dhcp servers/agents.

Is there a way to setup a dnsmasq.conf file per network?.

right now, what we do is configure several network nodes each one has a dnsmasq.conf file and is configured as the only dhcp agent for a network, but this way we can't have dhcp ha, and we also need several network nodes, not a good solution.

Thanks

edit retag close merge delete

Sort by » oldest newest most voted

This blueprint didn't go anywhere Allow for per-subnet dhcp options

Maybe DHCP options per port can help? e.g. set mtu to 1000:

neutron port-update \$PORT --extra_dhcp_opts list=true opt_name=26,opt_value=1000


Then the host file has:

fa:16:3e:54:06:c2,host-10-0-0-6.openstacklocal,10.0.0.6,set:2e4a511c-c582-47c5-af41-1b7033e38f83


And the opts file has:

tag:tag0,option:router,10.0.0.1
tag:2e4a511c-c582-47c5-af41-1b7033e38f83,26,1000
tag:tag0,option:dns-server,10.0.0.2

more