[Openstack-mentoring] Neutron subnet with DHCP relay

Dan Sneddon dsneddon at redhat.com
Fri May 29 09:14:51 UTC 2020


You probably want to enable Neutron segments and use the Neutron routed
networks feature so you can use different subnets on different segments
(layer 2 domains AKA VLANs) of the same network. You specify different
values such as IP allocation pools and router address(es) for each subnet,
and Ironic and Neutron will do the right thing. You need to enable segments
in the Neutron configuration and restart the Neutron server.  I don’t think
you will have to recreate the network. Behind the scenes, dnsmasq will be
configured with multiple subnets and address scopes within the Neutron DHCP
agent and the Ironic Inspector agent.

Each segment/subnet will be given a different VLAN ID. As Dmitry mentioned,
TripleO uses that method for the provisioning network, so you can use that
as an example. The provisioning network in TripleO is the one referred to
as the “control plane” network.

-Dan

On Fri, May 29, 2020 at 12:51 AM Dmitry Tantsur <dtantsur at redhat.com> wrote:

> Hi Tom,
>
> I know for sure that people are using DHCP relay with ironic, I think the
> TripleO documentation may give you some hints (adjusted to your presumably
> non-TripleO environment):
> http://tripleo.org/install/advanced_deployment/routed_spine_leaf_network.html#dhcp-relay-configuration
>
> Dmitry
>
> On Thu, May 28, 2020 at 11:06 PM Amy Marrich <amy at demarco.com> wrote:
>
>> Hey Tom,
>>
>> Forwarding to the OpenStack discuss list where you might get more
>> assistance.
>>
>> Thanks,
>>
>> Amy (spotz)
>>
>> On Thu, May 28, 2020 at 3:32 PM Thomas King <thomas.king at gmail.com>
>> wrote:
>>
>>> Good day,
>>>
>>> We have Ironic running and connected via VLANs to nearby machines. We
>>> want to extend this to other parts of our product development lab without
>>> extending VLANs.
>>>
>>> Using DHCP relay, we would point to a single IP address to serve DHCP
>>> requests but I'm not entirely sure of the Neutron network/subnet
>>> configuration, nor which IP address should be used for the relay agent on
>>> the switch.
>>>
>>> Is DHCP relay supported by Neutron?
>>>
>>> My guess is to add a subnet in the provisioning network and point the
>>> relay agent to the linuxbridge interface's IP:
>>> 14: brq467f6775-be: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
>>> noqueue state UP group default qlen 1000
>>>     link/ether e2:e9:09:7f:89:0b brd ff:ff:ff:ff:ff:ff
>>>     inet 10.10.0.1/16 scope global brq467f6775-be
>>>        valid_lft forever preferred_lft forever
>>>     inet6 fe80::5400:52ff:fe85:d33d/64 scope link
>>>        valid_lft forever preferred_lft forever
>>>
>>> Thank you,
>>> Tom King
>>> _______________________________________________
>>> openstack-mentoring mailing list
>>> openstack-mentoring at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-mentoring
>>>
>> --
Dan Sneddon         |  Senior Principal Software Engineer
dsneddon at redhat.com |  redhat.com/cloud
dsneddon:irc        |  @dxs:twitter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200529/65741e67/attachment.html>


More information about the openstack-discuss mailing list