Skip to main content

Set up communication with infrastructure outside of Selectel

Last update:
  1. Make sure you have connected the Direct Connect service — physical port.
  2. Make sure that you have a global router network created in your account and that it includes all devices that you want to connect through the carrier channel to your external infrastructure.
  3. Connect the Direct Connect network to a global router.
  4. Assign an IP address from the Direct Connect subnet to a router in the external infrastructure.
  5. Configure routing to the Direct Connect subnet on the global router network.
  6. If there are multiple subnets behind the external router, configure routing on the global router.

1. Check the connection of the service

Check that you received a VLAN number in the service order ticket and that this VLAN appears in the control panel: in the top menu, click ProductsDedicated ServersNetworkVLAN tab.

2. Verify or create a global router network

Make sure that your account has a global router network and includes all devices that you want to connect to the external infrastructure. You can view the created global routers in the Control Panel: from the top menu, click ProductsGlobal Router.

If you do not already have a global router or need to create a new one, use the instructions Create a private connection through a global router.

3. Connect the Direct Connect network to a global router

  1. In the Control Panel, on the top menu, click Products and select Global Router.
  2. Open the router page → Networks tab.
  3. Click Create Network.
  4. Enter a network name, this will only be used in the control panel
  5. Select a Servers and Hardware service.
  6. Select the pool you specified when ordering Direct Connect service — physical port.
  7. Select the VLAN to which the operator port has been added. You can see the VLAN number on the ticket you received when ordering Direct Connect service — physical port.
  8. Enter the subnet name — this will only be used in the control panel.
  9. Enter the CIDR — IP address and mask of the private subnet. You can select any addressing that does not overlap with other subnets on the global router and with subnets that are used in your external infrastructure.
  10. Enter the gateway IP address or leave the first address from the subnet assigned by default. Do not assign this address to your devices to avoid disrupting the network.
  11. Enter service IPs or leave the last addresses from the subnet assigned by default. Do not assign these addresses to your devices to avoid disrupting the network.
  12. Click Create Network.
  13. Optional: Check the network topology on the global router. In the control panel, from the top menu, click ProductsGlobal Router → Router Page → Network Map.

4. Assign an IP address to a router in the external infrastructure

Assign the router in your external infrastructure an IP address from the Direct Connect subnet that you connected to the global router.

The address must not be the same as the gateway address and service addresses you selected when connecting. The gateway address and service addresses can be viewed in the control panel: from the top menu, click ProductsGlobal Router → Global Router page → open the card of the network to which the subnet belongs → the Gateway field.

5. Configure routing to the Direct Connect subnet on the global router network

On all devices on the global router network, write static routes to the Direct Connect subnet you connected to the global router.

As next-hop, specify the IP address from the device subnet that is assigned to the global router as the gateway. You can view the gateway address in the control panel: from the top menu, click ProductsGlobal Router → Global Router page → open the card of the network to which the subnet belongs → the Gateway field.

  1. Connect to the server.

  2. Open the network configuration file with the vi text editor:

    vi /etc/netplan/01-netcfg.yaml
  3. At the end of the data block of the desired network interface, add a route:

    routes:
    - to: <ip_address>/<mask>
    via: <gateway>

    Specify:

    • <ip_address>/<mask> — The IP address of the Direct Connect subnet that you connected to the global router with a mask;
    • <gateway> — gateway for the current server subnet, which is specified on the global router.
  4. Press the ESC key.

  5. Exit the vi text editor with your changes saved:

    :wq
  6. Check the settings:

    sudo netplan try
  7. Apply the changes:

    netplan apply

6. Configure routing on the global router

If you have multiple subnets behind the router in your external infrastructure, write static routes to each of them or configure dynamic routing over BGP.

  1. In the Control Panel, on 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 appear in the control panel.
  5. Enter the CIDR of the destination subnet, which is the subnet behind the router in your external infrastructure.
  6. Enter the Next hop IP address — the IP address from the Direct Connect subnet that you assigned to the router in the external infrastructure.
  7. Click Create.