Configure connection to infrastructure outside Servercore
- Ensure that you have connected the Direct Connect service – physical port.
- Ensure that a global router network is created in your account and that all devices you need to connect to your external infrastructure via the provider channel are included in it.
- Connect the Direct Connect network to the global router.
- Assign an IP address from the Direct Connect subnet to the router in the external infrastructure.
- Configure routing to the Direct Connect subnet in the global router network.
- If several subnets are located behind the external router, configure routing on the global router.
1. Check service connection
Check that in the ticket for the service order you received a VLAN ID and this VLAN appeared in the Control panel: in the top menu, click Products → Dedicated Servers → Network → VLAN tab.
2. Check or create a global router network
Ensure that your account has a global router network and that all devices you need to connect to the external infrastructure are included in it. You can view created global routers in the Control panel: in the top menu, click Products → Global Router.
If you do not have a global router yet or need to create a new one, use the instructions in Create private connectivity via a global router.
3. Connect the Direct Connect network to the global router
- In the Control panel, in the top menu click Products and select Global Router.
- Open the router page → Networks tab.
- Click Create network.
- Enter a network name. It will only be used in the control panel.
- Select the Servers and Hardware service.
- Select the network location —the region and pool you specified when ordering the Direct Connect – physical port service.
- Select or enter the VLAN to which the provider port is added. The VLAN ID can be found in the ticket you received when ordering the Direct Connect – physical port service.
- If a trunk port is configured on the provider side, specify a Q-in-Q tag—a number from 2 to 4094.
- Enter the subnet name. It will only be used in the control panel.
- Enter the CIDR—the IP address and mask of the private subnet. You can choose any addressing that does not overlap with other subnets on the global router and with subnets used in your external infrastructure.
- Enter the gateway IP address or leave the first address of the subnet, which is assigned by default. Do not assign this address to your devices so as not to disrupt network operation.
- Enter service IPs or leave the last addresses of the subnet, which are assigned by default. Do not assign these addresses to your devices so as not to disrupt network operation.
- Click Create network.
- Optional: check the network topology on the global router. In the Control panel, in the top menu click Products → Global Router → router page → Network map.
- If you specified a Q-in-Q tag, ensure that you enabled Q-in-Q on the switch port for the VLAN you specified in step 7.
4. Assign an IP address to the router in the external infrastructure
Assign an IP address from the Direct Connect subnet that you connected to the global router to the router in your external infrastructure.
The address must not match the gateway address or the service addresses you selected during connection. The gateway address and service addresses can be viewed in the Control panel: in the top menu, click Products → Global Router → global router page → open the card of the network to which the subnet belongs → Gateway field.
5. Configure routing to the Direct Connect subnet in the global router network
On all devices in the global router network, configure static routes to the Direct Connect subnet that you connected to the global router.
Set the next-hop to the IP address from the device subnet that is assigned to the global router as a gateway. You can view the gateway address in the Control Panel: in the top menu, click Products → Global Router → global router page → open the card of the network to which the subnet belongs → field Gateway.
Dedicated server
Cloud platform
Ubuntu
Debian
CentOS
Windows
-
Open the network configuration file with the
vitext editor:vi /etc/netplan/01-netcfg.yaml -
At the end of the data block for the required 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, including the mask;<gateway>— the gateway for the current server subnet, which is specified on the global router.
-
Press the
ESCkey. -
Exit the
vitext editor and save your changes::wq -
Check the settings:
sudo netplan try -
Apply the changes:
netplan apply
6. Configure routing on the global router
If several subnets are located behind the router in your external infrastructure, add static routes to each of them or configure dynamic routing via BGP.
Add static routes
Configure dynamic routing via BGP
- In the Control panel, in the top menu click Products and select Global Router.
- Open the router page → Static Routes tab.
- Click Create route.
- Enter a route name—any name, it will only be displayed in the control panel.
- Enter the CIDR of the destination subnet—this is the subnet located behind the router in your external infrastructure.
- Enter the Next hop IP address—the IP address from the Direct Connect subnet that you assigned to the router in the external infrastructure.
- Click Create.