Changes between Version 5 and Version 6 of how-to/servers/add_ip_allocation


Ignore:
Timestamp:
Nov 30, 2018, 2:59:08 PM (2 weeks ago)
Author:
https://id.mayfirst.org/dkg
Comment:

added notes about assigning IPv6 addresses

Legend:

Unmodified
Added
Removed
Modified
  • how-to/servers/add_ip_allocation

    v5 v6  
    33= How to allocate an ip address =
    44
    5 The ip-temp process on hay is no longer in use!
     5We currently use very different mechanisms to allocate IPv6 addresses compared to IPv4 addresses.
    66
    7 == Steps for allocating an ip address ==
     7NOTE: The historical `ip-temp` process on `hay.mayfirst.org` is no longer in use!
     8
     9== Steps for allocating an IPv4 address ==
    810
    911Now, we allocate an IP and create the iterface in the same step.
     
    4446  mayfirst::m_interface::set { "209.51.180.27/28": label => "smtp" }
    4547}}}
     48
     49== Steps for allocating an IPv6 address ==
     50
     51The IPv6 process is much more manual, and not directly managed by puppet.
     52
     53=== find a free IPv6 address ===
     54
     55first, list all claimed IPv6 addresses by searching in :
     56
     57{{{
     580 mfpl-puppet$ git grep 'gateway.*->.*:'
     59manifests/nodes/production/che.pp:# mayfirst::m_interface::set { "2001:470:1:116::7/64": gateway => "2001:470:1:116::1" }
     600 mfpl-puppet$
     61}}}
     62
     63Note that the lines are commented out (with a `#`).  this is as intended, they're still allocations, because puppet isn't dealing with IPv6 at all yet.
     64
     65Then choose a free one.
     66
     67=== assign it to the host manually ===
     68
     69place the appropriate stanza in a new file in `/etc/network/interfaces.d/` on hosts that use `ifupdown`, or in a `/etc/systemd/network/*.network` file on hosts that use `systemd-networkd`
     70
     71=== claim it in puppet ===
     72
     73remember to add a commented line in the appropriate puppet production file corresponding to the host!