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 a global router network is created in your account and it includes all the devices that need to be linked 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 an external router, configure routing on the global router.

  1. Check the service connection

Check to see if the ticket you received a VLAN number when ordering the service and this VLAN appears in the control panels → section Servers and hardwareNetwork → tab VLAN.

  1. Verify or create a global router network

Ensure that your account has a global router network and includes all devices that you want to connect to the external infrastructure. To view the global routers that have been created, go to control panels under Network servicesSelectel Global Router.

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

  1. Connect the Direct Connect network to a global router

  1. В control panels go to Network servicesSelectel Global Router.
  2. Open the router page → tab Networks.
  3. Click Create a network.
  4. Enter a network name, this will only be used in the control panel
  5. Select a service Dedicated servers.
  6. Select poolthat you entered into the ordering Direct Connect service — physical port.
  7. Select the VLAN to which the operator port has been added. You can see the VLAN number in the ticket you received when you 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 a network.
  13. Optional: check the network topology on the global router. В control panels go to Network servicesSelectel Global Router. Open the page of the desired router and click Network map.

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

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

The address must not be the same as the gateway address and service addresses you selected when connecting. You can view the gateway address and service addresses in the control panels → section Network servicesSelectel Global Router → global router page → expand the network card to which the subnet belongs → field Gateway.

  1. 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 that plugged into a global router.

As next-hop, specify the IP address from the device's subnet that is assigned to the global router as the gateway. You can view the gateway address in control panels → section Network servicesSelectel Global Router → global router page → expand the network card to which the subnet belongs → field Gateway.

  1. Connect to the server.

  2. Open the CLI.

  3. Open the network configuration file with a text editor vi:

    vi /etc/netplan/01-netcfg.yaml
  4. 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 Direct Connect subnet that you plugged into a global routerwith an indication of the mask;
    • <gateway> — gateway for the current server subnet, which is specified on the global router.
  5. Press the key ESC.

  6. Exit the text editor vi with the changes intact:

    :wq
  7. Check the settings:

    sudo netplan try
  8. Apply the changes:

    netplan apply

  1. 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. В control panels go to Network servicesSelectel Global Router.
  2. Open the router page → tab Static routes.
  3. Click Create a 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 IP address Next hop — the IP address from the Direct Connect subnet that you are assigned to a router in the external infrastructure.
  7. Click Create.