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