---
title: "Link products and services via a global router"
sidebar_label: "Link products and services via a global router"
description: "General instructions for setting up a global router network for all Selectel products"
sidebar_position: 1
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import {TabItemLabel} from '@selectel/docux/components'
import CreateGlobalRouter from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/global-router/create-global-router.mdx'
import ConnectDedicatedNetworkToGlobalRouter from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/global-router/connect-dedicated-network-to-global-router.mdx'
import ConnectCloudNetworkToGlobalRouter from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/global-router/connect-cloud-network-to-global-router.mdx'
import ConfigureNetworkInterfaceOfPrivateNetwork from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/dedicated/configure-network-interface-of-private-network.mdx'
import WriteStaticRoutesDedicated from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/global-router/write-static-routes-dedicated.mdx'

# Link products and services via a global router

General instructions for setting up a global router network for all Selectel products. For examples of configuration for individual products (dedicated servers, Managed Databases, Managed Kubernetes), see the [Linking Products and Services via a Global Router](/global-router/create-network/) section.

:::info

Some dedicated server configurations  [Chipcore Line](/dedicated/order/dedicated-configurations.mdx#prebuilt-servers) cannot be added to a global router network because they lack a port for connecting to a private network. You can check for a private network port in the [control panel](https://my.selectel.ru/servers/servers/) on the server page on the **Ports \*\*\*\* tab**.

:::

1. [Create a global router](#create-global-router).
2. [Connect networks and subnets to the global router](#connect-networks-and-subnets-to-global-router) for each VLAN and cloud platform project that you want to connect.  For [Cloud powered by VMware](/public-cloud/about/about-public-cloud.mdx), you can only add networks and subnets via [technical support](https://my.selectel.ru/tickets/create/).
3. [Assign IP addresses from the subnets to the servers](#assign-ip-addresses-on-servers).
4. Optional: [specify routes on the servers](#write-routes-on-devices).
5. Optional: [set up routing on the global router](#configure-routing-on-global-router).

## 1. Create a global router \{#create-global-router}

<CreateGlobalRouter />

## 2. Connect networks and subnets to the global router \{#connect-networks-and-subnets-to-global-router}

<Tabs queryString="connect-networks-and-subnets-to-global-router">
  <TabItem value="dedicated" default>
    <TabItemLabel>
      Dedicated server
    </TabItemLabel>

    Use for a dedicated or hosted server.

    <ConnectDedicatedNetworkToGlobalRouter />
  </TabItem>

  <TabItem value="cloud-platform">
    <TabItemLabel>
      Cloud platform
    </TabItemLabel>

    Use for a cloud server, Managed Kubernetes cluster nodes, or a Managed Database cluster.

    <ConnectCloudNetworkToGlobalRouter />
  </TabItem>
</Tabs>

## 3. Assign IP addresses to the servers \{#assign-ip-addresses-on-servers}

On each server included in the global router network, configure a local port to work with the subnet created on the router. Assign an IP address from the private subnet that you [connected to the global router](#connect-networks-and-subnets-to-global-router) for the corresponding VLAN or project.

<Tabs queryString="assign-ip-addresses-on-servers">
  <TabItem value="dedicated" default>
    <TabItemLabel>
      Dedicated server
    </TabItemLabel>

    <ConfigureNetworkInterfaceOfPrivateNetwork />
  </TabItem>

  <TabItem value="cloud-platform">
    <TabItemLabel>
      Cloud platform
    </TabItemLabel>

    1. [Add a cloud server or a Managed Kubernetes cluster node](/cloud-servers/cloud-networks/ports.mdx#add-cloud-server-to-subnet-via-port) to the subnet you connected to the global router. If you do not have a server or node yet, create one. When creating it, select the subnet that you connected to the global router as the subnet.
    2. Apply changes depending on the **Apply changes** port parameter. You can view the parameter value in the [control panel](https://my.selectel.ru/vpc/default/servers/): in the top menu, click **Products** → **Cloud Servers** → server page → **Ports** tab → **Port settings**:

       * **When rebooting the server** — [programmatically reboot the cloud server](/cloud-servers/manage/reboot-server.mdx) or manually make changes to the network configuration file on the server;
       * **Manually in the network configuration file on the server** — manually make changes to the network configuration file on the server.
  </TabItem>

  <TabItem value="wmvare-cloud">
    <TabItemLabel>
      Cloud powered by VMware
    </TabItemLabel>

    1. Open the **Cloud Director** panel.
    2. Go to the **Virtual Machines** tab.
    3. In the block of the required virtual machine, click the **Details** button.
    4. In the **Hardware** block, select the **NICs** block and click the **Edit - New** button.
    5. Select the global router network.
    6. Click the **Save** button.
  </TabItem>
</Tabs>

## 4. Specify routes on devices \{#write-routes-on-devices}

### Example of static route organization \{#example-of-static-routes-organization}

You need to configure private communication between two dedicated servers in the SPB-2 pool and a cloud server in the ru-2 pool. To do this, you need to:

1. Create a global router with two private subnets — `192.168.0.0/28` to the VLAN that contains the dedicated servers in the SPB-2 pool, and `172.16.0.0/28` to the cloud platform project in the ru-2 pool.
2. Assign addresses from the subnets to the servers.
3. Specify routes:

   * for each server in the SPB-2 pool — to the `172.16.0.0/28` subnet via the `192.168.0.1` gateway;
   * for the server in the ru-2 pool — to the `192.168.0.0/28` subnet via the `172.16.0.1` gateway.

![Пример организации статических маршрутов](https://423.selcdn.ru/kb/globalrouter-create-global-router-network-static-routes-example-LANG-THEME.png)

### Specify static routes \{#write-static-routes}

<Tabs queryString="write-static-routes">
  {/* only-in selectel */}

  <TabItem value="dedicated-and-vmware-cloud" default>
    <TabItemLabel>
      Dedicated server, Cloud powered by VMware
    </TabItemLabel>

    {/* only-in servercore */}

    <TabItem value="dedicated" default>
      <TabItemLabel>
        Dedicated server
      </TabItemLabel>

      {/* only-in */}

      <WriteStaticRoutesDedicated />

      {/* only-in nothing */}
    </TabItem>
  </TabItem>

  <TabItem value="cloud-platform" default>
    <TabItemLabel>
      Cloud platform
    </TabItemLabel>

    To specify static routes for a cloud server, Managed Database cluster, or Managed Kubernetes cluster, you must [configure static routes on the private subnet](/cloud-servers/cloud-networks/static-routes.mdx#configure-static-routing-on-subnet) where the server or cluster resides.

    In the subnets, you must configure routes to all other global router subnets that will exchange traffic.
  </TabItem>
</Tabs>

## 5. Configure routing on the global router \{#configure-routing-on-global-router}

You need to configure routing on the global router if one of the devices in its network is used as a router to send traffic to the internet or a network outside the Selectel infrastructure.

You can specify static routes or configure dynamic BGP routing.

<Tabs queryString="configure-routing-on-global-router">
  <TabItem value="write-static-routes" default>
    <TabItemLabel>
      Specify static routes
    </TabItemLabel>

    1. In the [control panel](https://my.selectel.ru/network/localnetwork/l3_list/), in the top menu, click **Products** and select **Global Router**.
    2. Open the router page → **Static Routes** tab.
    3. Click **Create route**.
    4. Enter a route name — any name; it will only be displayed in the control panel.
    5. Enter the destination subnet CIDR — this is the private subnet where you need to direct traffic. The destination subnet must not overlap with the subnets on the global router. For internet traffic, specify `0.0.0.0/0`.
    6. Enter the Next hop IP address — the IP address of the server through which the traffic will be directed to the destination subnet. The IP address must belong to one of the subnets on the global router.
    7. Click **Create**.
  </TabItem>

  <TabItem value="set-dynamic-bgp-routing">
    <TabItemLabel>
      Configure dynamic BGP routing
    </TabItemLabel>

    1. In the [control panel](https://my.selectel.ru/network/localnetwork/l3_list/), in the top menu, click **Products** and select **Global Router**.
    2. Open the router page → **BGP** tab.
    3. Click **Configure BGP**.
    4. Enter the BGP neighbor IP address (BGP neighbor) — for example, the address of the router to which traffic is sent from the global router. The IP address must belong to one of the subnets connected to the global router.
    5. Enter the autonomous system (AS) number. You can specify a private AS from the 64512–65534 range, except for AS 64530, which is used for the global router.
    6. Specify the tasks for which dynamic BGP routing is required.
    7. Click **Create ticket**. We will clarify the details in the ticket and provide further instructions on establishing the connection.
  </TabItem>
</Tabs>

<Formbricks />
