Project Network Address Planning¶
Once you know which project networks you need, plan how VM instances get their IP addresses. StarlingX OpenStack supports both internal address management, using project networks with subnets, and external address management, using project networks without subnets.
Key Decisions¶
Will each project network manage addresses internally (subnet with DHCP) or externally (static addressing or an external DHCP server)?
Which address family does each network use, IPv4 or IPv6?
What allocation pools, DNS servers, and host routes does each subnet need?
Internal Versus External Addressing¶
Internal addressing uses a project network with a subnet. StarlingX OpenStack runs a virtual DHCP server for the subnet and assigns addresses from the pools you define. This is the common choice for tenant workloads.
External addressing uses a project network without a subnet. Addressing is handled outside StarlingX OpenStack, for example by static assignment or an external DHCP server. Choose this when an existing address authority must remain in control, or when physical devices on the network need addresses outside the Neutron-managed range.
Subnet Options to Plan For¶
When a project network uses an internal subnet, plan these attributes. They are set when the subnet is created or edited.
Attribute |
Planning Consideration |
|---|---|
Enable DHCP |
When enabled, a virtual DHCP server offers addresses to known (MAC, IP) pairs and ignores requests from unknown MAC addresses. When disabled, all DHCP, DNS, and static route services must be provided externally. |
Allocation Pools |
One or more IP address ranges within the subnet used for dynamic assignment. By default a single pool covers the whole subnet except the gateway address. Reserve ranges here if an external DHCP server must serve addresses outside the Neutron pools (for example, for test equipment or physical servers on the network). |
DNS Name Servers |
The DNS server addresses offered to instances on the subnet. |
Host Routes |
Static routes to routers reachable on the subnet. |
IPv4 and IPv6 Support¶
StarlingX OpenStack supports both IPv4 and IPv6. Each subnet uses a single address family, but a project network can combine an IPv4 subnet and an IPv6 subnet to run dual-stack. The following table lists support for the networks relevant to the StarlingX OpenStack layer.
Network |
IPv4 |
IPv6 |
Notes |
|---|---|---|---|
VXLAN data network |
Yes |
Yes |
Flat and VLAN data networks are Layer 2, so either family works if needed. |
Project networks and routers |
Yes |
Yes* |
DHCP and routing are supported for IPv6. |
MetaData server, SNAT, floating IPs |
Yes |
No |
No IPv6 support for MetaData server access, SNAT, or floating IPs. |
Note
Plan address families early. A subnet uses a single address family, so changing a subnet’s family later means redefining it. The IPv6 gaps for MetaData, SNAT, and floating IPs may affect whether an IPv6-only design is workable for a given tenant.
Dual-Stack Project Networks¶
To run a dual-stack project network, create two subnets, one IPv4 and one IPv6, and attach them to the same logical project network. StarlingX OpenStack runs dual-stack virtual DHCP instances, so tenant VMs can receive both address types on a single virtual NIC.
The IPv6 service gaps still apply. SNAT and floating IPs function only for the VM’s IPv4 address. IPv6 outbound traffic must be routed natively through direct provider network assignments.
This completes the project networking decisions for the network plan.