Changes between Version 3 and Version 4 of how-to/servers/add_ip_allocation
- Timestamp:
- Mar 10, 2016, 9:06:55 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
how-to/servers/add_ip_allocation
v3 v4 3 3 = How to allocate an ip address = 4 4 5 The process for allocating an ip address currently takes place as the `ip-temp` user on hay.5 The ip-temp process on hay is no longer in use! 6 6 7 7 == Steps for allocating an ip address == 8 8 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. 9 Now, we allocate an IP and create the iterface in the same step. 13 10 14 You should see something like this: 11 Edit the .pp file for the server in question and add the following 12 13 === Sample for physical host === 14 15 15 {{{ 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 } 21 23 }}} 22 24 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 === 24 26 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 }}} 26 31 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 }}}