How to Assign Public IPv4 Addresses on Your VPS

If you require additional public IPv4 addresses for your VPS, you can increase your IP limit via your my.serveroptima.com panel. Follow this tutorial to purchase and assign new IPv4 addresses to your VPS.

 

Step 1: Log in to Your Client Area

- Access Your Client Area: Log in to the my.serveroptima.com portal.

- Go to Services: Click on "Services" from the main menu.

- Select Your Server: Choose the server for which you wish to upgrade or add new IP addresses.

 

Step 2: Click On Network

Now you will see the server details of your chosen server. Click on “more” then select “Upgrade”.

 

Step 3: Select the required IP amount

Use the slider to select the required IP amount and click to the continue button.

 

Step 4: Make the payment

Our system will generate an invoice, make sure you complete the payment. After we have received your payment, the IP addresses will be assigned to your server automatically.

Step 5: Check if the IPs are assigned

Network -> interface -> Assign new IP -> reboot server

 

 

after added secondary public ip successfully

 

 

Next step, we need to configure the network in the VM so that the VM can communicate with the assigned IP.

Add a new IP to your machine after you have ordered one in ServerOptima.

1. Ubuntu, Debian

Login to your VPS and add the following file, you can use the editor you like.

sudo nano /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg 

Add the following to this file:

# custom config to disable the networks section of cloud-init
---network: 
 config: disabled

After you have added this file, we need to add a new file for the new network configuration.

sudo nano /etc/netplan/50-static.yaml

And modify the file as followed, make sure to use the correct IP's that you can find on your network interface of the VPS. You can use whatever DNS services you want. Here is a list of open DNS resolves you can use: List of Public DNS Server.

network:
  version: 2
  ethernets:
    eth0:
      match:
        macaddress: "xx:xx:xx:xx:xx:xx"
      addresses:
      - "xx.xx.xxx.xx/24"
      - "your_secondary_ip"
      nameservers:
        addresses:
        - 8.8.8.8
        search:
        - local
      set-name: "eth0"
      routes:
      - to: "default"
        via: "xx.xx.xxx.x"

AlmaLinux, RockyLinux, CentOS

Login to your VPS and add the the following file, you can use the editor that you like.

sudo nano /etc/cloud/cloud.cfg.d/01_network.cfg

Add the following to the file:

# custom config to disable the networks section of cloud-init
---
network:
 config: disabled

After we have added this file, we need to modify the network part of the VPS.
 Open the following file:

sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0

And modify the file as followed, make sure to use the correct IP's that you can find on your network interface of the VPS. You can use whatever DNS services you want. Here is a list of open DNS resolves you can use: List of Public DNS Servers

BOOTPROTO=static
DEVICE=eth0
DHCPV6C=yes
HWADDR={mac_address of the interface}
IPV6INIT=yes
ONBOOT=yes
TYPE=Ethernet
IPADDR=xx.xx.xxx.xx
GATEWAY=xx.xx.xxx.x
PREFIX=24
IPADDR2=xx.xx.xxx.xx
GATEWAY2=xx.xx.xxx.x
PREFIX=24
DNS1=8.8.8.8
DNS2=1.1.1.1

To make sure it works, reboot the VM

3. Windows Server

Please make sure that you’ve your primary IP address manually configured via the video display option from your Tilaa dashboard otherwise you can’t configure your additional IP address. All related network information can be found on your Tilaa dashboard -> server overview -> network tab.

Navigate to:
 
start -> control panel -> network and internet -> view network status and tasks ->  "ethernet" or "Local Area Connection" -> properties and open the properties of “internet Protocol Version 4 (TCP/IPv4)” and manually configure your primary IP address. 

 
 When you have your primary IP manually configured return back to the properties of “internet Protocol Version 4 (TCP/IPv4)” and click the advanced button and click the add button to add an additional IP.


Was this article helpful?

mood_bad Dislike 1
mood Like 1
visibility Views: 32347