[OSA][NEUTRON] DHCP port IP

Murilo Morais murilo at evocorp.com.br
Thu Jul 27 13:12:48 UTC 2023


Dmitiry, thank you very much! config-drive worked like a charm!

Em qui., 20 de jul. de 2023 às 23:08, Dmitriy Rabotyagov <
noonedeadpunk at gmail.com> escreveu:

> If the thing that concerns you is that DHCP consumes gateway IP, you
> should define your gateway when creating the subnet with --gateway option
> [1].
>
> Also I *think* that if you define --allocation-pool while creating subnet,
> DHCP server will obtain IP within this pool, but I'm not 100% sure now, as
> I had such setup years ago.
>
> If you are disabling DHCP, then ensure your VMs will use config-drives for
> metadata instead of fetching it through the network. For that you will need
> to supply an option while creating the VM
>
> [1]
> https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/subnet.html#cmdoption-openstack-subnet-create-gateway
>
> On Fri, Jul 21, 2023, 03:24 Ihar Hrachyshka <ihrachys at redhat.com> wrote:
>
>> On Thu, Jul 20, 2023 at 7:18 PM Murilo Morais <murilo at evocorp.com.br>
>> wrote:
>>
>>> Good evening everyone!
>>>
>>> I'm using OVS + VLAN Provider
>>>
>>> Guys, is there any way to remove IP from DHCP (network:dhcp)?
>>>
>>>
>> You can create a subnet with enable_dhcp=False, then no DHCP port is
>> allocated. Then let Neutron allocate addresses from the subnet range for
>> your VMs (just make sure that the addresses are not reused outside of
>> Neutron).
>>
>> My gateway is external, I need the VMs to obtain the IPs directly on the
>>> interface without using SNAT/DNAT, but when enabling DHCP on the subnet,
>>> the DHCP interface consumes an IP (the first one available).
>>>
>>> Is there a way to remove this blessed IP? If not, what other path can I
>>> take?
>>>
>>> I'm thinking of other alternatives:
>>> 1. Use static IP
>>> 2. Use a DHCP Server on the Gateway (which makes me have to perform some
>>> manual operations to assign the correct IP)
>>>
>>> What would be more viable?
>>>
>>> Thanks in advance!
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230727/c7b93672/attachment.htm>


More information about the openstack-discuss mailing list