network provider how to add dhcp options

asked 2018-05-27 23:42:14 -0600

Here is what I need: newly created VMs in an external provider network need to have some stuff set via DHCP, like the search field of /etc/resolv.conf, some DHCP options like SIP Provisioning (160+), NTP Servers (42), etc.

At first I wanted to use the DHCP server of my provider (external) network. But that never worked, the VM gets a different IP address than the one OpenStack wants. And the metadata doesn't work. Despite reading tons of stuff from Google, it seems it cannot be done. Unless someone has some secret info...

So, my next move is to configure the dhcp agent in neutron. But, here I fail to understand how to add per provider dhcp options. The only options you can really set are the gateway and the DNS servers.

$ openstack subnet create --network my_provider_net \
  --allocation-pool start=172.22.17.100,end=172.22.17.200 \
  --gateway 172.22.17.1 \
  --dns-nameserver 172.22.17.2 \
  my_provider_subnet

I looked at /etc/neutron/dnsmasq-neutron.conf, but these seem global to the entire OpenStack installation.

edit retag flag offensive close merge delete

Comments

Hi, where you able to change this? I'm looking as well to be able to use an external DHCP provider to distinguish between already assgined IP addresses and new ones...

fattony666 gravatar imagefattony666 ( 2018-09-05 06:07:59 -0600 )edit