.. _Configuring Node Network Interfaces:

Configuring Node Network Interfaces
-----------------------------------

After configuring the internal and public networks required by Virtuozzo Infrastructure Platform, you need to assign these networks to the network interfaces on each node. 

.. important:: To be able to create a cluster, you will need to assign a network with the storage traffic type to a node's network interface.

To assign a network to a network interface, do the following:

#. On the **NODES** screen, click the node to configure the network interface(s) of.

   .. image:: ../../../images/stor_image15.png
      :align: center
      :class: align-center

#. On the node overview screen, click **NETWORK**.

   .. image:: ../../../images/stor_image16.png
      :align: center
      :class: align-center

#. Select a network interface and click **Configure**.

   .. image:: ../../../images/stor_image17.png
      :align: center
      :class: align-center

#. On the **Configure** screen, do one of the following:

   - To obtain the IP address, DNS, and routing settings from the DHCP server, select **Automatically (DHCP)**.

   - To obtain just the IP address from the DHCP server, select **Automatically (DHCP address only)**.

   - To specify the IP address manually, select **Manual** and add the IP address.

   .. warning:: Dynamic IP address allocation will cause network issues as soon as the IP addresses of cluster nodes will change. Configure static IP addresses from the start or as soon as possible.

   .. image:: ../../../images/stor_image18.png
      :align: center
      :class: align-center

#. If necessary, set up a gateway and a DNS server.

#. If you have set a custom maximum transmission unit (MTU) on the network hardware, set the same value in the corresponding field.

   .. warning:: Setting a custom MTU in management panel prior to configuring it on the network hardware will result in network failure on the node and require manual resetting. Setting an MTU that differs from the one configured on the network hardware may result in network outage or poor performance.

#. Click **Done** to return to the list of network interfaces, do not change the selection, and click **Assign network**.

#. On the **Assign network** panel, select a network to connect the network interface to (for details, see :ref:`Configuring Node Network`) and click **Done**.

   .. update the image
      .. image:: ../../../images/stor_image18_2.png
         :align: center
         :class: align-center

.. _Setting Up Network Bonding:

Setting Up Network Bonding
~~~~~~~~~~~~~~~~~~~~~~~~~~

Bonding multiple network interfaces is optional but provides the following benefits:

- High network availability. If one of the interfaces fails, the traffic will be automatically routed through the working interface(s).

- Higher network performance. For example, two bonded Gigabit interfaces will deliver the throughput of about 1.7 Gbit/s or up to 200 MB/s. For a storage node, the required number of network interfaces to bond may depend on the number of disks. For example, an HDD can deliver data at speeds of up to 1 Gbps.

To create a bond, do the following:

#. On the **NODES** screen, click the node to bond the network interfaces on.

#. On the node overview screen, click **NETWORK**.

#. In the **NETWORK** list, check network interfaces to bond, and click **Create bonding** in the menu to the right.

   .. image:: ../../../images/stor_image20.png
      :align: center
      :class: align-center

#. On the **Configure Bonding** panel, select the bonding type from the drop-down list. The balance-xor type is selected by default and recommended for both fault tolerance and good performance.

   .. image:: ../../../images/stor_image21.png
      :align: center
      :class: align-center

#. Set up network parameters as described in step 4 in :ref:`Configuring Node Network Interfaces` and click **PROCEED**.

#. On the **Assign network** panel, select a network to connect the bonding network interface to (for details, see :ref:`Configuring Node Network`).

   ..
     .. image:: ../../../images/stor_image18_2.png
        :align: center
        :class: align-center

#. Click **Done**.

.. _Setting Up VLAN Interfaces:

Setting Up VLAN Interfaces
~~~~~~~~~~~~~~~~~~~~~~~~~~

To set up a VLAN network interface, do the following:

#. On the **NODES** screen, click the node on which to configure VLAN.

#. On the node overview screen, click **NETWORK**.

#. Select a network interface and click **Create VLAN**.

#. On the **Configure VLAN** panel, specify a number for VLAN, add an IP address, and, if necessary, set up a gateway and a DNS server.

   .. image:: ../../../images/stor_image18_1.png
      :align: center
      :class: align-center

#. On the **Assign network** panel, select a network to connect the VLAN network interface to (for details, see :ref:`Configuring Node Network`).

   ..
     .. image:: ../../../images/stor_image18_2.png
        :align: center
        :class: align-center

#. Click **Proceed** to create a VLAN interface.

