[Openstack] [neutron][devstack]subnet created with wrong gateway

Brent Troge brenttroge2016 at gmail.com
Mon Aug 22 17:57:24 UTC 2016


Doesn't neutron use the first available host address in the subnet as the
gateway? So if your cidr is 128/25 then neutron would default to 129 as the
gateway.

On Aug 22, 2016 9:54 AM, "Brian Haley" <brian.haley at hpe.com> wrote:

> On 08/21/2016 08:40 PM, Tony Breeds wrote:
>
>> On Sun, Aug 21, 2016 at 05:28:44PM +0530, Akilesh K wrote:
>>
>>> Hi,
>>> I am using devstack for the first time and I see that it has created a
>>> subnet like below. The cidr and gateway do not match. Because of this
>>> devstack fails to run completely and fails while attaching a router to
>>> this
>>> subnet. Why is devstack doing this??
>>>
>>
>> You also need to specify NETWORK_GATEWAY in your local.conf:
>>     NETWORK_GATEWAY=10.4.128.1
>> should match:
>>     FIXED_RANGE=10.4.128.0/20
>>
>> Our docs need updating as we recently switched from nova to neutron as the
>> default network provider.
>>
>
> What devstack should really be doing is defaulting the gateway to "",
> neutron will automatically use the ".1" of the subnet for the gateway if
> not told otherwise.
>
> I'll try and get a quick patch out today.
>
> -Brian
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstac
> k
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstac
> k
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160822/f09a94a6/attachment.html>


More information about the Openstack mailing list