Connect Public Cloud to other products via a new subnet to connect virtual machines without a customer Edge router
Using the global router, you can connect Public Cloud to other Selectel products that support connection to the global router; for more information, see the General information about the Selectel Global Router service instructions.
You can configure connectivity using several scenarios; you can view other scenarios in the Methods for connecting Public Cloud to the global router instructions.
Configuration description
Upon your request, we will create a private subnet in the public cloud, which will be visible in the list of networks of your virtual data center. The subnet will connect virtual machines directly to the service Edge router managed by Selectel. In this case, the service Edge router will act as a gateway. You will define the network addressing and the address for the service Edge router yourself and provide them in a ticket for creating a new subnet.
You will not be able to manage the routing of the created subnet — only add virtual machines to it. Virtual machines that you add to this subnet can simultaneously be added to other public cloud subnets.
Prerequisites
You can use any infrastructure you wish to connect to the public cloud via the global router for configuration. The infrastructure elements and its network parameters are provided as an example.
Configuration result
In this example, the dedicated server, cloud server, and public cloud virtual machine will be connected via a Global Router using a new public cloud subnet.

Configuration steps
- Create a global router.
- Connect the dedicated server and Cloud Platform subnets to the global router.
- Create a new subnet for communication with the global router.
- Connect virtual machines to the new subnet.
- If the virtual machine is added to other subnets, configure routes on the virtual machine.
- Configure static routes on dedicated and cloud servers.
1. Create a Global Router
- In the control panel, in the top menu, click Products and select Global Router.
- Click Create router. Each account has a limit of five global routers.
- Enter the router name.
- Click Create.
- If the router was created with the status
ERRORor is stuck in one of the statuses, create a ticket.
2. Connect the dedicated server and cloud platform subnets to the Global Router
To connect the dedicated server subnet (in the example, 192.168.0.0/24) and the Cloud Platform subnet (in the example, 192.168.1.0/24) to the global router, use the Connect networks and subnets to the global router section of the Connect products and services via global router instructions.
3. Create a new subnet for communication with the Global Router
-
Submit a ticket requesting the creation of a new private Public Cloud subnet that will connect the service Edge router to the virtual machines. In the ticket, specify:
- the connection method for connecting the public cloud to the Global Router — the first method;
- ID of the global router, which can be viewed in the Control panel under Network Services → Selectel Global Router → router page → field under the router name;
- name of the virtual data center, which can be viewed in the Control panel under Cloud Powered by VMware → Virtual Data Centers → virtual data center card;
- desired CIDR of the new subnet — in the example,
192.168.2.0/24; - desired subnet gateway (this address will be assigned to the service Edge router) — in the example,
192.168.2.1; - optionally: a name for the subnet.
-
We will create the subnet and inform you in the ticket. The subnet will appear in Cloud Director in the list of virtual data center subnets.
4. Connect the virtual machine to the new subnet
- From the Control panel, open the Cloud Director panel: in the top menu, click Products → Cloud Powered by VMware → the Cloud Director section.
- Open the virtual data center page.
- Go to Compute → Virtual Machines.
- Open the page of the virtual machine you want to connect to the Global Router.
- Go to VM Hardware → NICs.
- Click EDIT.
- Optional: to create a new port, click NEW.
- In the port row, in the Adapter Type column, select VMXNET3.
- In the port row, in the Network column, select the subnet that was created via a ticket.
- In the port row, in the IP column, enter the IP address for the virtual machine from the created subnet
192.168.2.0/24— in the example,192.168.2.2. - Click Save.
- If you added the network to a running virtual machine, power it off and power it on with recustomization. The network interface and its settings will be added to the virtual machine.
5. Configure routes on the virtual machine
If the Public Cloud virtual machine is added only to the new subnet that we created upon your request via a ticket, skip this step.
If the public cloud virtual machine is added not only to the new subnet but also to other public cloud subnets connected to your Edge router, you will need to configure static routes.
The route configuration parameters depend on which gateway you choose as the Default Gateway:
- address of your (client) Edge router — in the example,
192.168.20.1 - or address of the service Edge router — in the example,
192.168.2.1
Client Edge router address
Service Edge router address
- From the Control panel, open the Cloud Director panel: in the top menu, click Products → Cloud Powered by VMware → the Cloud Director section.
- Open the virtual data center page.
- Go to Compute → Virtual Machines.
- Open the page of the virtual machine you want to connect to the Global Router.
- Go to VM Hardware → NICs.
- Click EDIT.
- In the row of the subnet connected to the client Edge router and not connected to the global router, select the Primary NIC checkbox.
- On the virtual machine, configure static routes to the subnets of servers and other services connected to the global router via the service Edge router address — in the example,
192.168.2.1.
6. Configure static routes on dedicated and cloud servers
If the Global Router is used as the Default Gateway on the cloud and dedicated servers, you do not need to configure routes.
If not, on cloud and dedicated servers connected to the global router, configure static routes:
-
specify the CIDR of the new Public Cloud subnet as the destination subnet — in the example,
192.168.2.0/24; -
as the gateway, specify an address from the subnet that the corresponding server is added to and which is used as the Global Router gateway, in the example:
- for the dedicated server —
192.168.0.1; - for the cloud server —
192.168.1.1.
- for the dedicated server —