IP address change after order restoration
Instructions on changing the IP address after restoring the order for Ubuntu, Debian, CentOS, Fedora, RHEL distributions.
After restoring your order on a dedicated server or a VPS, you may need to reconfigure the network settings manually. Below are instructions for common operating systems and different ways to set up the network.
Ubuntu
- Open the Console in your order’s billing panel and log in to the server.
- Run the following command to edit the network configuration:
nano /etc/netplan/00-installer-config.yaml
-
Locate and update the following parameters:
- Replace the IP address in the
addresses
field with the value provided in your billing information. - Update the gateway in the
routes via
field with the value assigned to your order.
- Replace the IP address in the
Example updated file:
network:
ethernets:
eth0:
addresses:
- [your_ipv4_address]/24
- [your_ipv6_address]/48
nameservers:
addresses:
- [your_dns_server]
- [your_dns_server]
- [your_dns_server]
routes:
- to: default
via: [your_gateway_v4]
- to: ::/0
via: [your_gateway_v6]
version: 2
-
Save the changes:
- Press
CTRL + O
to save the file. - Press
CTRL + X
to exit the editor.
- Press
-
Apply the changes with:
netplan apply
CentOS, Fedora, RHEL (using nmcli)
- Open the Console in your order’s billing panel and log in to the server.
- Check the name of your network interface:
nmcli connection show
Example output:
NAME UUID TYPE DEVICE
eth0 bb093c6c-944c-34f1-ad26-20ea3c85d995 ethernet eth0
lo ae84ba1c-0e92-471e-82a3-f4baa7cb8587 loopback lo
Note
In this example, the network interface name is eth0
.
- Assign the IPv4 address and default gateway to the interface:
nmcli connection modify 'eth0' ipv4.addresses [your_ipv4_address]/24
nmcli connection modify 'eth0' ipv4.gateway [your_gateway_v4]
- Save and activate the changes:
nmcli connection up 'eth0'
Expected output:
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3)
CentOS, RHEL (alternative method via ifcfg-eth0)
On some servers (especially CentOS 6/7 or when NetworkManager
is disabled), network settings are configured through files located in /etc/sysconfig/network-scripts/
.
- Open the interface configuration file for editing, usually
ifcfg-eth0
:
nano /etc/sysconfig/network-scripts/ifcfg-eth0
- Make sure the file contains the following parameters for a static configuration:
DEVICE=eth0
BOOTPROTO=static
NETMASK=255.255.255.0
ONBOOT=yes
GATEWAY=[your_gateway_v4]
IPADDR=[your_ipv4_address]
DNS1=[your_dns_server]
DNS2=[your_dns_server]
-
Save the changes (
CTRL + O
, thenCTRL + X
). -
Restart the network service to apply the new settings:
sudo systemctl restart network
Debian
- Open the Console in your order’s billing panel and log in to the server.
- Open the network configuration file for editing:
nano /etc/network/interfaces
-
Locate and update the following parameters:
- Replace the value of
address
with the actual IP address from your billing information. - Update the value of
gateway
with the corresponding gateway.
- Replace the value of
Example updated file:
auto eth0
iface eth0 inet static
address [your_ipv4_address]
netmask 255.255.255.0
gateway [your_gateway_v4]
dns-nameservers [your_dns_server] [your_dns_server]
-
Save the changes:
- Press
CTRL + O
to save the file. - Press
CTRL + X
to exit the editor.
- Press
-
Restart the networking service to apply the changes:
systemctl restart networking
Help
If you encounter any issues or have questions about changing your IP address, please contact our technical support via the ticket system.