[Neutron] Not create .2 port
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? Thanks! Tony
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
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
Any comments? Thanks! Tony
-----Original Message----- From: Tony Liu <tonyliu0592@hotmail.com> Sent: Tuesday, September 22, 2020 11:58 AM To: Slawek Kaplonski <skaplons@redhat.com> Cc: openstack-discuss@lists.openstack.org Subject: RE: [Neutron] Not create .2 port
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
Hi Tony, I'm not sure if that's what you mean, but during subnet creation you can disable the gateway in two ways: - Horizon: check "Disable Gateway" in "Create subnet" dialog - CLI: openstack subnet create --gateway none ... This doesn't create any ports in the subnet. Or do you mean something different? Regards, Eugen Zitat von Tony Liu <tonyliu0592@hotmail.com>:
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?
Thanks! Tony
participants (3)
-
Eugen Block
-
Slawek Kaplonski
-
Tony Liu