Revision history [back]

How to serve other hosts on DHCP *OR* manually provison one?

OK, i have a setup where I have an L2 bridging VM. I would like to have a VM on one side of it get a DHCP response from the neutron-configured dnsmasq on the other side. The DHCP request gets to dnsmasq, but it does not respond since it had no pool of IP, only fixed MAC->IP assignments.

-------------    -------------
| Windows 7 |----| L2 Bridge |------
-------------  | -------------   |
Subnet-1           Subnet-2


what i have done is 'subnet-1' has no DHCP enabled. I had to make a subnet (since I couldn't figure out how to have a 'network' without IP). I have verified that DHCP flows from the Windows 7 instance through subnet-1 through the L2 bridge to subnet-2. Subnet-2 is configured with an CIDR and DHCP is enabled. I have verified that the DHCP broadcast (request) reaches the dnsmasq running on Subnet-2.

dnsmasq is run with config files of:

addn_hosts  host  interface  opts  pid

172.16.6.1      host-172-16-6-1.stack host-172-16-6-1
172.16.6.10     host-172-16-6-10.stack host-172-16-6-10
# cat host
fa:16:3e:50:8d:60,host-172-16-6-1.stack,172.16.6.1
fa:16:3e:b6:ed:1a,host-172-16-6-10.stack,172.16.6.10
# cat interface
tap320a576b-40# cat opts
tag:tag0,option:router,172.16.6.1#
# cat pid
29464


As you can see, it doesn't have a 'dhcp-range' command, e.g. if the opts file had:

dhcp-range=172.16.6.10,172.16.6.254


I would be happy.

Is there a way to either: a) manually provision dnsmasq via neutron to know of a static MAC-IP mapping? Such that I can call this from Heat? b) add a 'dhcp-range' option to this subnet when neutron creates the qdhcp setup?

How to serve other hosts on DHCP *OR* manually provison one?

OK, i have a setup where I have an L2 bridging VM. I would like to have a VM on one side of it get a DHCP response from the neutron-configured dnsmasq on the other side. The DHCP request gets to dnsmasq, but it does not respond since it had no pool of IP, only fixed MAC->IP assignments.

-------------    -------------
| Windows 7 |----| L2 Bridge |------
-------------  | -------------   |
Subnet-1           Subnet-2


what i have done is 'subnet-1' has no DHCP enabled. I had to make a subnet (since I couldn't figure out how to have a 'network' without IP). I have verified that DHCP flows from the Windows 7 instance through subnet-1 through the L2 bridge to subnet-2. Subnet-2 is configured with an CIDR and DHCP is enabled. I have verified that the DHCP broadcast (request) reaches the dnsmasq running on Subnet-2.

dnsmasq is run with config files of:

addn_hosts  host  interface  opts  pid

172.16.6.1      host-172-16-6-1.stack host-172-16-6-1
172.16.6.10     host-172-16-6-10.stack host-172-16-6-10
# cat host
fa:16:3e:50:8d:60,host-172-16-6-1.stack,172.16.6.1
fa:16:3e:b6:ed:1a,host-172-16-6-10.stack,172.16.6.10
# cat interface
tap320a576b-40# cat opts
tag:tag0,option:router,172.16.6.1#
# cat pid
29464


As you can see, it doesn't have a 'dhcp-range' command, e.g. if the opts file had:

dhcp-range=172.16.6.10,172.16.6.254


I would be happy.

Is there a way to either: a) manually provision dnsmasq via neutron to know of a static MAC-IP mapping? Such that I can call this from Heat? b) add a 'dhcp-range' option to this subnet when neutron creates the qdhcp setup?

Can http://docs.openstack.org/api/openstack-network/2.0/content/extra-dhcp-opt-ext.html help?