Merge private account networks through a global router
If your infrastructure is in different accounts, you can merge the private networks of those accounts. A global router is used for interconnection.
Working principle
Each account must have a global router to interconnect private networks. Private subnets that need to be accessed from another account are connected to global routers. After merging, the subnets on the routers will be in the same address space, so their addressing should not overlap: the IP addresses of each subnet should not overlap with the IP addresses of other subnets.
On request, we aggregate global routers and their routing tables. After merging, you can route traffic between all subnets that are connected to the merged routers.
Example of a merger
Need to merge private networks in two accounts:
- account 1 has a private subnet
192.168.0.0.0/24
connected to the global router. IP address192.168.0.2
is assigned to the dedicated server, IP address192.168.0.1
is assigned as gateway to the global router; - account 2 has a private subnet
172.16.0.0/24
connected to the global router. IP address172.16.0.2
is assigned to the cloud server, IP address172.16.0.1
is assigned as gateway to the global router; - global routers in the accounts are merged.
In order for servers to exchange traffic, you need:
-
combine global routers;
-
prescribe routes:
- on a dedicated server to the
172.16.0.2
cloud server via the192.168.0.1
gateway; - on the cloud server to a dedicated
192.168.0.2
server via a172.16.0.1
gateway.
- on a dedicated server to the
Merge private account networks
-
Make sure that each of the accounts whose private networks you want to merge has a global router. You can see the list of routers in control panel under Network Services → Selectel Global Router. If your account does not have a global router or you want to use a new one, create a global router.
-
Make sure that private subnets are connected to global routers that you want to access from another account. You can see the list of subnets in Control Panel under Network Services → Selectel Global Router → Selectel Global Router → Router page → Networks tab. If necessary, connect networks and subnets to global routers.
The subnets on the routers to be merged must not overlap: the IP addresses of each subnet must not overlap with the IP addresses of other subnets.
-
From each of the accounts, create a ticket. In the ticket, specify:
- numbers of accounts whose private networks you want to merge. The account number can be viewed in control panel in the upper right corner;
- The IDs of the global routers that will be used for the merge. You can copy the router ID from Control Panel: Network Services → Global Router → Global Router page → copy the ID under the router name.
-
Wait for a response in the ticket that the global routers have been merged. In Control Panel under Network Services → Selectel Global Router, the merged global router will have the tag Other Account.
-
To configure connectivity between devices that are on private subnets of the joined routers, write static routes on the devices. Routes on global routers do not need to be prescribed.