Configure the network interface on the server
To connect the server to the private and public network, configure the network interfaces on the server.
The network interface for the private network will be configured automatically only when Linux is auto-installed. For Windows OS, the network interface for the private network can only be configured manually.
You can view the settings for customization in the Control Panel: from the top menu, click Products → Dedicated Servers → Servers → Server page → Network tab.
Configure the network interface of the public network
Ubuntu
Debian
CentOS
Windows
Ubuntu 20.04 LTS
Ubuntu 22.04 LTS, 24.04 LTS
-
Open the
netplanutility configuration file with thevitext editor:vi /etc/netplan/01-netcfg.yaml -
Add or change the values of the public network interface settings:
network:ethernets:<eth_name>:addresses:- <ip_address>/<mask>gateway4: <gateway>nameservers:addresses: [<dns_servers>]renderer: networkdversion: 2Specify:
<eth_name>- the name of the network interface of the public network;<ip_address>- public IP address of the server with subnet mask, e.g.203.0.113.2;<mask>- subnet mask, e.g.24;<dns_servers>- DNS servers. We recommend using Selectel recursive DNS servers but you can specify any available DNS servers;<gateway>- gateway.
-
Press ESC.
-
Exit the
vitext editor with your changes saved::wq -
Apply the configuration:
netplan apply -
Optional: reboot the server.
Configure the network interface of the private network
Ubuntu
Debian
CentOS
Windows
-
Open the
netplanutility configuration file with thevitext 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>]Specify:
<eth_name>- the name of the network interface of the private network;<ip_address>- private IP address of the server with subnet mask, e.g.192.168.0.2/24.
-
Press ESC.
-
Exit the
vitext editor with your changes saved::wq -
Apply the configuration:
netplan apply -
Optional: reboot the server.
-
Optional: assign a private IP address to the server in the control panel.