I create a subnet with --no-dhcp, the .2 address is not allocated, but a port is still created without any address. Is this expected? Since DHCP is disabled, what's this port for? Thanks! Tony
-----Original Message----- From: Slawek Kaplonski <skaplons@redhat.com> Sent: Friday, September 18, 2020 12:49 AM To: Tony Liu <tonyliu0592@hotmail.com> Cc: openstack-discuss@lists.openstack.org Subject: Re: [Neutron] Not create .2 port
Hi,
On Fri, Sep 18, 2020 at 03:40:54AM +0000, Tony Liu wrote:
Hi,
When create a subnet, by default, the first address is the gateway and Neutron also allocates an address for serving DHCP and DNS. Is there any way to NOT create such port when creating subnet?
You can specify "--gateway None" if You don't want to have gateway configured in Your subnet. And for dhcp ports, You can set "--no-dhcp" for subnet so it will not create dhcp ports in such subnet also.
Thanks! Tony
-- Slawek Kaplonski Senior software engineer Red Hat