Todas as coleções
Network
How to associate floating IPs in BCOS?
How to associate floating IPs in BCOS?

Learn how to add floating IPs for external access in BCOS.

Luiz Fernando Justino Silva avatar
Escrito por Luiz Fernando Justino Silva
Updated over a week ago

We have already learned how to create virtual machines in How to create instances in BCOS?, we will now associate floating IPs in the instance for external access.

Floating IPs

  Try a ping test on VM01 from the local machine and see the result:

Example:

  • Ping VM01 from local machine: 192.168.83.x.

  Note that it could not be accessed because the instance is on a private network, so you must create a public IP to gain access. A public IP enables the machine to connect externally.

   In Project / Compute / Instances, click the actions button to the right of the instance name and select the option Associate Floating IP, then select an available IP, click the “+” symbol to add that IP, in the next screen select one public network (in this case PUBLIC-NETWORK) and click in Allocate IP. Note that the new floating IP is now available for association, so click in Associate:

  With the associated IP, try pinging the instance again from the local machine, now using the floating IP:

  • Ping VM01 from local machine by floating IP: 45.225.25.x.

   Note that this is not yet possible because the instance has no rules that allow ICMP. Learn how to allow this access in How to create and join security groups in BCOS?.

Respondeu à sua pergunta?