How to share a private network between 2 Public Cloud projects
Objective
This tutorial will show you how to connect two projects on an internal network. It allows you to synchronize production and preproduction environments across several projects.
Requirements
Requirements
- You have 2 or more Public Cloud projects.
- Both projects must be placed in the same vRack.
Refer to the following guides:
- Getting started with the OpenStack API.
- Attaching a Floating IP to a Public Cloud instance.
- Managing firewall rules and port security on networks using OpenStack CLI .
Instructions
In the first project
1. List the project IDs
Example output:
2. Create the network that will be shared
Example output:
3. Create two subnets, one for instances on our project and one shared with another project
For project 1 (local):
Example output:
For project 2 (shared):
Example output:
4. Share this network (and associated subnets) with the second project
Example output:
5. Create a port on the local subnet and an instance associated with it
Example output:
In the second project
1. Switch to the second project
2. List the project IDs
Example output:
3. Create a port on the shared network
Example output:
4. Create an instance on the shared network
Example output:
Verify connectivity
1. Connect to the first instance
2. Ping the second instance from the first instance
Example output:
Go further
Join our community of users.