wiki:how-to/servers/add_ip_allocation

Version 4 (modified by Jamie McClelland, 4 years ago) (diff)

--

How to allocate an ip address

The ip-temp process on hay is no longer in use!

Steps for allocating an ip address

Now, we allocate an IP and create the iterface in the same step.

Edit the .pp file for the server in question and add the following

Sample for physical host

  class { "mayfirst::m_interface": }
  mayfirst::m_interface::set { "209.234.253.26/27":
    dev => "br0",
    gateway => "209.234.253.1",
    hwaddress => "00:26:b9:35:c1:eb",
    bridge_ports => "eth0"
  }

Sample for canonical IP address on guest

  class { "mayfirst::m_interface": }
  mayfirst::m_interface::set { "209.51.172.13/28": gateway => "209.51.172.1" }

Sample for additional IP on guest

  mayfirst::m_interface::set { "209.51.180.27/28": label => "smtp" }