IPv6

Support for IPv6 in MAAS is similar to support for IPv4. Please note the following:

  • A rack controller in an IPv6 context needs to have the region API server URL specified with brackets, similar to the example below.

  • You can access the Web UI and the MAAS CLI (logging in to the API server) in the same way on both IPv4 and IPv6. To use an IPv6 address in a URL, surround it with square brackets. For example, on the local machine (::1, the IPv6 equivalent of localhost):

http://[::1]:5240/MAAS/

MAAS can only control most BMCs using IPv4.

Enable IPv6

You enable IPv6 networking in the same way that you enable IPv4 networking: configure a separate rack controller interface for your IPv6 subnet. The IPv6 interface must define a static address range. Provided that you already have a functioning IPv6 network, that’s all there is to it. The following sections explain requirements, supported operations, and what to do if you don’t yet have a functioning IPv6 network.

An IPv6 interface can use the same network interface on the rack controller as an existing IPv4 network interface. It just defines a different subnet, with IPv6 addressing. A node that’s connected to the IPv4 subnet also connected to the IPv6 subnet on the same network segment.

Configure an IPv6 subnet

Define a reserved static IP range and nodes deployed on the subnet will get a static address in this range. Since IPv6 networks usually are 64 bits wide you can be generous with the range size. Leave the netmask and broadcast address fields blank.

You may want MAAS to manage DHCP and DNS, but it’s not required. Nodes do not need a DHCP server at all for IPv6; MAAS configures static IPv6 addresses on a node’s network interface while deploying it. A DHCPv6 server can provide addresses for containers or virtual machines running on the nodes, as well as devices on the network that are not managed by MAAS. The nodes do not need DHCPv6. MAAS will not be aware of any addresses issued by DHCP, and cannot guarantee that they will stay unchanged.

Routing

In IPv6, clients do not discover routes through DHCP. Routers make themselves known on their networks by sending out route advertisements. These RAs also contain other configuration items:

  • Switches that allow stateless configuration of their unique IP addresses, based on MAC addresses.
  • Switches that enable them to request stateless configuration from a DHCP server.
  • Switches that In any allow them to request a stateful IP address from a DHCP server.

Since a network interface can have any number of IPv6 addresses even on a single subnet, several of these address assignment mechanisms can be combined.

However, when MAAS configures IPv6 networking on a node, it does not rely on RAs. It statically configures a node’s default IPv6 route to use the router that is set on the cluster interface, so that the node will know their default gateway. They do not need DHCP and will not autoconfigure global addresses.

You may be planning to operate DHCPv6 clients as well, for example, on machines not managed by MAAS, or on virtual machines hosted by MAAS nodes. If this is the case, you may want to configure RAs, so that those clients obtain configuration over DHCP.

If you need RAs but your gateway does not send them, install and configure radvd somewhere on the network to advertise its route.