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 to connect Direct Connect service — physical port.
- Assign a VLAN with an operator port to your server's local port.
- Configure the private network interface.
1. Check service connection
Check that you received a VLAN number in the ticket ordering the service and that this VLAN appears in Control Panel → Servers and colocation → Network → VLAN tab.
2. Assign a VLAN to the local port of the server
- In Control Panel, go to Servers and colocation → Network.
- Open the VLAN tab.
- On the port line, click .
- Select the VLAN whose number you received when service order.
- Click Configure.
3. Configure the network interface of the private network
- Ubuntu
- Debian
- CentOS
- Windows
-
Open the
netplan
utility configuration file with thevi
text editor: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>
is the name of the network interface of the private network;<ip_address>/<mask>
— the public IP address of the server with the subnet mask specified, for example,203.0.113.0/24
. You request the address for the server yourself from the operator;<gateway>
is 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
ESC
key. -
Exit the
vi
text editor with the changes saved::wq
-
Apply the configuration:
netplan apply
-
Optional: reboot the server.
-
Open the network interfaces configuration file with the
vi
text editor: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>
is the name of the network interface of the private network;<ip_address>
is the public IP address of the server, for example,203.0.113.2
. You request the address for the server yourself from the operator;<gateway>
is 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>
is the subnet mask of the operator.
-
Press the
ESC
key. -
Exit the vi text editor with your changes saved:
:wq
-
Restart the network:
service networking restart
-
Optional: reboot the server.
-
Output information about the network interfaces:
ip address
-
Create or open the private network interface configuration file with the
vi
text editor:vi /etc/sysconfig/network-scripts/ifcfg-<eth_name>
Specify
<eth_name>
as the name of the network interface. -
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>
is the name of the network interface of the private network;<mac_address>
— MAC address of the network device;<ip_address>
is 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 yourself from the operator;<mask>
is the subnet mask of the operator;<gateway>
is 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
ESC
key. -
Exit the
vi
text editor with the changes saved::wq
-
Restart the network:
systemctl restart network
-
Optional: reboot the server.
An example of changing network settings in CentOS is in the blog article Configuring Networking in CentOS 7.
-
Open the Network and Sharing Center.
-
Open the network interface of the private network.
-
Press Properties.
-
From the list, select IPv4.
-
Press Properties.
-
Specify the network interface parameters:
- IP-address is the public IP address of the server on the operator's subnet, for example,
203.0.113.2
. You request the address for the server yourself from the operator; - Subnet mask — operator's subnet mask;
- Default gateway — IP address of the gateway in the operator's subnet, e.g.
203.0.113.1
. You request the gateway address from the operator yourself.
- IP-address is the public IP address of the server on the operator's subnet, for example,
-
Press OK.