<div dir="ltr">Dmitiry, thank you very much! config-drive worked like a charm!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qui., 20 de jul. de 2023 às 23:08, Dmitriy Rabotyagov <<a href="mailto:noonedeadpunk@gmail.com">noonedeadpunk@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>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].</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">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</div><div dir="auto"><br></div><div dir="auto">[1] <a href="https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/subnet.html#cmdoption-openstack-subnet-create-gateway" target="_blank">https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/subnet.html#cmdoption-openstack-subnet-create-gateway</a></div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, Jul 21, 2023, 03:24 Ihar Hrachyshka <<a href="mailto:ihrachys@redhat.com" target="_blank">ihrachys@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Thu, Jul 20, 2023 at 7:18 PM Murilo Morais <<a href="mailto:murilo@evocorp.com.br" rel="noreferrer" target="_blank">murilo@evocorp.com.br</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Good evening everyone!<br><br>I'm using OVS + VLAN Provider<br><br>Guys, is there any way to remove IP from DHCP (network:dhcp)?<br><br></div></blockquote><div><br></div><div>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).<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">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).<br><br>Is there a way to remove this blessed IP? If not, what other path can I take?<br><br>I'm thinking of other alternatives:<br>1. Use static IP<br>2. Use a DHCP Server on the Gateway (which makes me have to perform some manual operations to assign the correct IP)<br><br>What would be more viable?<br><br>Thanks in advance!</div>
</blockquote></div></div>
</blockquote></div></div></div>
</blockquote></div>