Set up an Internet connection from a third-party carrier
You can only connect Internet from a third-party carrier to a dedicated or hosted server.
- Make sure you have connected the Direct Connect service — physical port.
- Assign the VLAN with the carrier port to the local port of your server.
- Configure the network interface of the private network.
Check the connection of the service
Check to see if the ticket you received a VLAN number when ordering the service, and this VLAN appears in the control panel → section Servers and hardware → Network → tab VLAN.
Assign a VLAN to the local port of the server
- In control panel go to Servers and hardware → Network.
- Open the tab VLAN.
- On the port line, click .
- Select the VLAN whose number you received when service order.
- Click Configure.
configure the network interface of the private network
Ubuntu
Debian
CentOS
Windows
-
Connect to the server via SSH or through KVM console.
-
Open the utility configuration file
netplan
word processorvi
:vi /etc/netplan/01-netcfg.yaml
-
Add or change values for the network interface settings of the private network:
<eth_name>:
addresses: [<ip_address>/<mask>]
gateway4: <gateway>Specify:
<eth_name>
— name of the network interface of the private network;<ip_address>/<mask>
— The public IP address of the server with a subnet mask, for example,203.0.113.0/24
. You request the address for the server from the operator yourself;<gateway>
— The IP address of the gateway on the operator's subnet, for example,203.0.113.1
. You request the gateway address from the operator yourself.
-
Press the key
ESC
. -
Exit the text editor
vi
with the changes intact::wq
-
Apply the configuration:
netplan apply
-
Optional: reboot the server.
-
Connect to the server via SSH or through KVM console.
-
Open the network interfaces configuration file with a text editor
vi
:vi /etc/network/interfaces
-
Add or change values for the network interface settings of the private network:
auto <eth_name>
iface <eth_name> inet static
address <ip_address>
netmask <mask>
gateway <gateway>Specify:
<eth_name>
— name of the network interface of the private network;<ip_address>
— The public IP address of the server, e.g,203.0.113.2
. You request the address for the server from the operator yourself;<gateway>
— The IP address of the gateway on the operator's subnet, for example,203.0.113.1
. You request the gateway address from the operator yourself;<mask>
— operator's subnet mask.
-
Press the key
ESC
. -
Exit the vi text editor with your changes saved:
:wq
-
Restart the network:
service networking restart
-
Optional: reboot the server.
-
Connect to the server via SSH or through KVM console.
-
Output information about the network interfaces:
ip address
-
Create or open the configuration file of the private network interface with a text editor
vi
:vi /etc/sysconfig/network-scripts/ifcfg-<eth_name>
Specify
<eth_name>
— network interface name. -
Add or change the values of the network interface settings:
NAME="<eth_name>"
ONBOOT=yes
NETBOOT=yes
BOOTPROTO=static
HWADDR="<mac_address>"
IPADDR="<ip_address>"
NETMASK="<mask>"
GATEWAY="<gateway>"
TYPE=EthernetSpecify:
<eth_name>
— name of the network interface of the private network;<mac_address>
— The MAC address of the network device;<ip_address>
— The public IP address of a server on the operator's subnet, for example,203.0.113.2
. You request the address for the server from the operator yourself;<mask>
— operator's subnet mask;<gateway>
— The IP address of the gateway on the operator's subnet, for example,203.0.113.1
. You request the gateway address from the operator yourself.
-
Press the key
ESC
. -
Exit the text editor
vi
with the changes intact::wq
-
Restart the network:
systemctl restart network
-
Optional: reboot the server.
Example of changing network settings in CentOS in the blog article Network configuration in CentOS 7.
-
Connect to the server via RDP or through KVM console.
-
Open it up Network and Sharing Center.
-
Open the network interface of the private network.
-
Click Properties.
-
From the list, select IPv4.
-
Click Properties.
-
Specify the network interface parameters:
- IP-address — The public IP address of a server on the operator's subnet, for example,
203.0.113.2
. You request the address for the server from the operator yourself; - Subnet mask — operator's subnet mask;
- Default gateway — The IP address of the gateway on the operator's subnet, for example,
203.0.113.1
. You request the gateway address from the operator yourself.
- IP-address — The public IP address of a server on the operator's subnet, for example,
-
Click OK.