Changes between Version 3 and Version 4 of how-to/servers/add_ip_allocation


Ignore:
Timestamp:
Mar 10, 2016, 4:06:55 PM (4 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

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

    v3 v4  
    33= How to allocate an ip address =
    44
    5 The process for allocating an ip address currently takes place as the `ip-temp` user on hay.
     5The ip-temp process on hay is no longer in use!
    66
    77== Steps for allocating an ip address ==
    88
    9 1. `ssh ip-temp@hay.mayfirst.org`
    10 2. `cd ip_allocation`
    11 3. `./mf-allocate-ip.py`
    12 4. Follow the queries on the script.
     9Now, we allocate an IP and create the iterface in the same step.
    1310
    14 You should see something like this:
     11Edit the .pp file for the server in question and add the following
     12
     13=== Sample for physical host ===
     14
    1515{{{
    16 0 ip-temp@hay:~/ip_allocation$ ./mf-allocate-ip.py
    17     [0] Add an IP Address
    18     [1] Quick Search
    19     [2] Detailed Search
    20     Choose an action:
     16  class { "mayfirst::m_interface": }
     17  mayfirst::m_interface::set { "209.234.253.26/27":
     18    dev => "br0",
     19    gateway => "209.234.253.1",
     20    hwaddress => "00:26:b9:35:c1:eb",
     21    bridge_ports => "eth0"
     22  }
    2123}}}
    2224
    23 When choosing 0 for Add an IP Address, you will be asked for a location.  Once you choose a location, the next available IP address will be automatically chosen for you.  Then you will be asked to enter some descriptive data.  Once confirming your choices, the script will update the database.
     25=== Sample for canonical IP address on guest ===
    2426
    25 You can confirm your choice, by running the script again and searching for you entry.
     27{{{
     28  class { "mayfirst::m_interface": }
     29  mayfirst::m_interface::set { "209.51.172.13/28": gateway => "209.51.172.1" }
     30}}}
    2631
    27 If you're setting up a dedicated ip address for a member, [wiki:setup_dedicated_ip follow these steps to create the interface.]
     32=== Sample for additional IP on guest ===
     33
     34{{{
     35  mayfirst::m_interface::set { "209.51.180.27/28": label => "smtp" }
     36}}}