.. _Managing Virtual Networks: Managing Virtual Networks ------------------------- In the compute cluster, you can create and manage two types of virtual networks: .. raw:: latex \setlist[description]{leftmargin=!,labelindent=0pt,labelwidth=1em+\widthof{Private}} **Private** VXLAN-based overlay virtual networks that can be used for intercommunication between VMs. Each private network is isolated from other private networks as well as public networks. **Public** Virtual networks that use IP address ranges of public physical networks. Such networks can be used to provide Internet access to VMs. Each public virtual network can use IP addresses of only one physical network. .. raw:: latex \setlist[description]{leftmargin=!,labelindent=0pt,labelwidth=1em+\widthof{ }} Both private and public virtual networks are listed on the **VIRTUAL NETWORKS** tab. The next subsections describe how to add, view, edit, and delete virtual networks. .. _Creating Virtual Networks: Creating Virtual Networks ~~~~~~~~~~~~~~~~~~~~~~~~~ To add a new virtual network, do the following: #. On the **COMPUTE** > **VIRTUAL NETWORKS** tab, click **Add virtual network**. #. In the **Network configuration** section, configure the network parameters: #. Enable or disable IP address management. .. include:: /includes/managing-compute-clusters-part8.inc #. Choose network type. #. Provide network details depending on type: - For a private network, specify a name. If IP address management is enabled, specify network's IPv4 address range in **Subnet CIDR**. Optionally specify a gateway. |gateway_blank|. - For a public network, specify a name and choose a physical network with the **VM public** traffic type (that is not already used by a public network). If IP address management is enabled, optionally specify a gateway. |gateway_blank|. The **Subnet CIDR** field will be filled in automatically. Click **Next**. .. only:: ac .. image:: /images/stor_image82_1_ac.png :align: center :class: align-center .. only:: vz .. image:: /images/stor_image82_1_vz.png :align: center :class: align-center #. .. include:: /includes/managing-compute-clusters-part2.inc .. only:: ac .. image:: /images/stor_image82_2_ac.png :align: center :class: align-center .. only:: vz .. image:: /images/stor_image82_2_vz.png :align: center :class: align-center #. .. include:: /includes/managing-compute-clusters-part3.inc .. only:: ac .. image:: /images/stor_image82_3_ac.png :align: center :class: align-center .. only:: vz .. image:: /images/stor_image82_3_vz.png :align: center :class: align-center .. _Editing Virtual Networks Parameters: Editing Virtual Networks Parameters ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To view and edit parameters of a virtual network, click it on the **VIRTUAL NETWORKS** tab. A panel with the virtual network details will open. .. only:: ac .. image:: /images/stor_image83_ac.png :align: center :class: align-center .. only:: vz .. image:: /images/stor_image83_vz.png :align: center :class: align-center On this panel, you can change the virtual network name, gateway, DHCP settings, allocation pools, and DNS servers. To do this, click the pencil icon, enter a new value, and click the check mark icon to confirm. .. _Deleting Virtual Networks: Deleting Virtual Networks ~~~~~~~~~~~~~~~~~~~~~~~~~ .. important:: Before deleting a virtual network, make sure no VMs are connected to it. To delete one or more virtual networks, do the following: #. On the **VIRTUAL NETWORKS** tab, either: - select networks and click **Delete** above the list, or - click the ellipsis icon next to the network and select **Delete**, or - click a network to open its details and click **Delete** on the top toolbar. #. In the **Delete networks** window, confirm the action by clicking **Delete**. .. |create_cluster_or_network| replace:: **Add virtual network** .. |gateway_blank| replace:: If you leave the **Gateway** field blank, the gateway will be omitted from network settings