Merge lp:~jtv/maas/doc-ipv6-usage into lp:~maas-committers/maas/trunk

Proposed by Jeroen T. Vermeulen
Status: Merged
Approved by: Jeroen T. Vermeulen
Approved revision: no longer in the source branch.
Merged at revision: 2997
Proposed branch: lp:~jtv/maas/doc-ipv6-usage
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 119 lines (+104/-0)
2 files modified
docs/index.rst (+1/-0)
docs/ipv6.rst (+103/-0)
To merge this branch: bzr merge lp:~jtv/maas/doc-ipv6-usage
Reviewer Review Type Date Requested Status
Julian Edwards (community) Approve
Gavin Panella (community) Approve
Review via email: mp+234768@code.launchpad.net

Commit message

Initial documentation for IPv6.

Description of the change

There are still several improvements to be made to the feature, but this documents the extent to which it's usable now.

Jeroen

To post a comment you must log in.
Revision history for this message
Gavin Panella (allenap) wrote :

Nice :) A few comments.

review: Approve
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Implemented your suggestions. Yes, you can leave the router_ip field blank if you want to.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Some comments.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'docs/index.rst'
--- docs/index.rst 2014-08-28 05:03:32 +0000
+++ docs/index.rst 2014-09-16 11:35:34 +0000
@@ -58,6 +58,7 @@
58 nodes58 nodes
59 hardware-enablement-kernels59 hardware-enablement-kernels
60 networks60 networks
61 ipv6
61 kernel-options62 kernel-options
62 installing-ubuntu63 installing-ubuntu
6364
6465
=== added file 'docs/ipv6.rst'
--- docs/ipv6.rst 1970-01-01 00:00:00 +0000
+++ docs/ipv6.rst 2014-09-16 11:35:34 +0000
@@ -0,0 +1,103 @@
1.. -*- mode: rst -*-
2
3.. _ipv6:
4
5Managing IPv6 Networks
6======================
7
8.. note::
9
10 This feature is available in MAAS versions 1.7 and above, starting with
11 lp:maas revision 2992.
12
13MAAS has limited IPv6 support for networking nodes. It works much like IPv4
14support, but with a number of limitations:
15
16* Nodes still boot, register, and install using the IPv4 network.
17* IPv6 addresses are only configured when using the Ubuntu fast installer.
18* Most BMCs can only be controlled (e.g. to power nodes on/off) using IPv4.
19* MAAS still uses IPv4 for its internal operation.
20* For now, MAAS only supports IPv6 on networks where it also manages IPv4 DHCP.
21* A network interface on a node can only be on one IPv6 subnet.
22
23The web user interface and REST API can be accessed in the same way on both
24IPv4 and IPv6. To use an IPv6 address as the hostname in a URL, in your
25browser or elsewhere, surround it with square brackets. For example, on the
26local machine (``::1``, the IPv6 equivalent of ``localhost``) you might
27request::
28
29 http://[::1]/MAAS/
30
31If your MAAS server has a DNS hostname that resolves to both IPv4 and IPv6
32addresses, your browser may already be accessing the UI through IPv6 without
33you noticing.
34
35
36Enabling IPv6
37-------------
38
39You enable IPv6 networking in the same way that you enable IPv4 networking:
40configure a separate cluster interface for your IPv6 subnet. Provided that you
41already have a functioning IPv6 network, that's all there is to it. The
42following sections will go into more detail about what is supported, what is
43needed, and what to do if you don't yet have a functioning IPv6 network.
44
45An IPv6 cluster interface can use the same network interface on the cluster
46controller as an existing IPv4 network interface. It just defines a different
47subnet, with IPv6 addressing. A node that's connected to the IPv4 subnet will
48also be connected to the IPv6 subnet on the same network segment.
49
50
51Configuring your IPv6 subnet
52^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53
54When you configure your IPv6 cluster interface, be sure to define a static IP
55address range. This is where deployed nodes on the subnet will get their
56static addresses.
57
58IPv6 networks are normally 64 bits wide, so you can be generous with the
59ranges' sizes. It also means that you can leave the netmask field blank.
60Leave the broadcast address field blank as well.
61
62You may want MAAS to manage DHCP and DNS, but it's not required. In fact nodes
63do not need a DHCP server at all for IPv6; MAAS configures static IPv6
64addresses on the node's network interfaces while deploying it. A DHCPv6 server
65can provide addresses for containers or virtual machines running on the nodes,
66as well as devices on the network that are not managed by MAAS, but it is not
67needed for the nodes themselves. MAAS will not be aware of any addresses
68issued by DHCP, and does not guarantee that they will stay unchanged.
69
70
71Routing
72^^^^^^^
73
74In IPv6, clients do not discover routes through DHCP. Routers make themselves
75known on their networks by broadcasting *route advertisements*. These *RAs*
76contain other configuration as well: whether clients should statelessly
77configure their own unique IP addresses based on their MAC addresses; whether
78they should request stateless configuration from a DHCP server; and finally,
79whether they should request a stateful IP address from a DHCP server. Since a
80network interface can have any number of IPv6 addresses even on a single
81subnet, several of these address assignment mechanisms can be combined.
82
83MAAS relies on RAs to inform nodes about available routes on your IPv6 network,
84even if you have configured a default gateway in MAAS. So, if you want IPv6
85routing outside the local network for your nodes, make sure that routes are
86being advertised. If your router does not provide RAs, another option is to
87install and configure ``radvd`` somewhere on the network to advertise its
88route.
89
90
91Other installers and operating systems
92^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93
94Static IPv6 addresses are currently only configured on Ubuntu, when installed
95using the "fast" installer. Other operating systems, or Ubuntu with the
96classic Debian installer, will not have their IPv6 addresses configured.
97The same applies when a user manually installs an operating system on a node,
98or overwrites its networking configuration: the node will no longer have its
99static IPv6 address configured, even if MAAS has allocated it to the node.
100
101However, as long as the address remains allocated to the node, you may still
102configure its operating system to use that address. The node can then use that
103address as if it had been configured by MAAS.