How to make VMs from external and external2 communicate on CREODIAS

../_images/button_orange_cf24.png

This manual describes the situation when you have an instance or more instances connected to “external” typology. None of the new instances connected to new external2 typology has network connection with old “external” typology by default. Following the steps in this article will let you create new network which will connect virtual machines with external and external2 networks.

If you don’t have an instance connected to “external2” typology, follow this guide: How to add Floating IP to VM from external2 pool on CREODIAS.

If you don’t have an instance, please follow this guide:How to create new Linux VM in OpenStack Dashboard Horizon on CREODIAS.

In this scenario, we use

  • one instance connected to an external network and

  • another instance, which is connected to an external2 network.

../_images/ext_01.png

In order to connect those two networks, a third network has to be created.

In ProjectNetworkNetworks choose Create Network:

../_images/ext_02.png

Provide any name for the new network, in this example, it will be called private_LAN.

../_images/ext_03.png

Provide Subnet Name, Network Address and Gateway IP. Network address has to be different than already used networks. We have 192.168.0.0/24 network used already in private_on_external and private_on_external2 networks so we use 192.168.8.0/24.

../_images/ext_04.png

We need also provide allocation pools and DNS Name Servers.

../_images/ext_05.png

The new network setup is completed now. It will be visible in ProjectNetworks as below:

../_images/ext_06.png

In ProjectComputeInstances there are two virtual machines on different external IPs:

../_images/ext_07.png

For both virtual machines choose Attach Interface in Actions menu

../_images/ext_08.png

In Networks choose newly created private_LAN.

../_images/ext_09.png

Finish the setup by selecting Attach Interface

../_images/ext_10.png

From now on both machines are connected through the new network. You can ping them by IPs from 192.168.8.X interfaces, which can be checked using an ifconfig command.