Ask Your Question

Gildas Cherruel's profile - activity

2018-06-24 19:21:42 -0500 asked a question network provider how to add dhcp options

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.

2018-06-24 19:21:42 -0500 asked a question [queens] network provider how to add dhcp options?

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.