This article is related to our U.S. dedicated servers only.
To ensure the proper functioning of private networking on your dedicated server, you must establish a static route for the 10.0.0.0/8 network. Follow the relevant instructions below based on your Linux distribution.
CentOS 7, AlmaLinux 8/9
- Create a route file
nano /etc/sysconfig/network-scripts/route-{interface_name}
replace{interface_name}
with your secondary NIC interface name (i.e. eno2, eth1, enp1s0f1) - Add the following to the route file
10.0.0.0/8 via {gateway} dev {interface_name}
replace{gateway}
with your private networking gateway IP address and{interface_name}
with your secondary NIC interface name (e.g. eno2, eth1, enp1s0f1) - Restart networking
CentOS 7service network restart
AlmaLinux 8/9nmcli connection reload; nmcli connection up ifname {interface_name}
Ubuntu 18.04, 20.04
- Edit the netplan YAML file
nano /etc/netplan/01-netcfg.yaml
Note: If you didn't find this file, look for a.yaml
file inside/etc/netplan/
- Add this section under the ethernet in question
Replaceroutes:
- to: 10.0.0.0/8
via: {gateway}
on-link: true{gateway}
with the private network gateway IP address.
Note:
Text indentation might not be displayed correctly. Please correct the indentations of the above text before using it in the netplan YAML file. - Apply changes
netplant apply
Windows
- Open CMD as Administrator
- Execute the command
route -p ADD 10.0.0.0 MASK 255.0.0.0 {gateway_IP}
Replace{gateway_IP}
with the private network gateway IP address. - It should print OK! on success.
Verify the new static route on Linux
You can check the created route using the following command:
ip route
You should find the new route among other system-created routes. The output will be similar to:
10.0.0.0/8 via 10.2.2.1 dev enp1s0f1 proto static onlink
Servers with no static route won't be able to communicate with each other over the private network.