Get 30% off your WordPress Hosting with code WPSAVE10. Launch Faster. Save More!
  • 00 Days
  • 00 Hours
  • 00 Minutes
  • 00 Seconds

How do I raise an additional IP address on my CentOS virtual machine?

You can buy additional IPs for your SIRSTEVEHQ CP virtual machine by contacting our support team.

You must raise the IP address on the virtual machine for it to begin working.

To begin, connect to the VPS using SSH.

After connecting via SSH, you will need to head to the network-scripts directory by using the following command:

cd /etc/sysconfig/network-scripts/

You'll then need to use the ifconfig command to check the current network interfaces. You should see something like this:

[root@vps-3f44d1 network-scripts]# ifconfig
eth0: flags=4163<up,broadcast,running,multicast>  mtu 1500
        inet 185.151.29.110  netmask 255.255.255.0  broadcast 185.151.29.255
        inet6 fe80::5054:ff:fed1:de53  prefixlen 64  scopeid 0x20
        ether 52:54:00:d1:de:53  txqueuelen 1000  (Ethernet)
        RX packets 2840575155  bytes 183137039747 (170.5 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 20430463  bytes 3227329206 (3.0 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</up,broadcast,running,multicast>

Once you have determined the network interface, you'll need to use a text editor of your choice to create a file within the network-scripts directory (based on the network interface name).

In our example, we'll need to create a script with a name of ifcfg-eth0:1. Within that file, the following will need to be added:

DEVICE=“eth0:1”
IPADDR=”[the new additional IP address]”
NETMASK=”[the Subnet Mask for the IP address, which can be found via Manage VPS IP Addressing]”
ONBOOT=“yes”

Once added, you'll need to restart networking on the virtual machine using:

service network restart

Upon successfully restarting, the new additional IP address should be raised.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Building a MySQL instance on CentOS 7 - SIRSTEVEHQ CP

You might need a larger database - for large ecommerce stores or complex sites, for example. To...

Can I install Xdebug on the shared platform? - SIRSTEVEHQ CP

No. Xdebug can't be installed on the shared platform (WordPress-Optimised Hosting and Cloud...

Can I install ZeroMQ on the shared hosting platform? - SIRSTEVEHQ CP

No.  ZeroMQ can't be installed on the shared platform (Cloud Hosting & WordPress Hosting) as...

Can I upgrade from an Unmanaged VPS to a SIRSTEVEHQ Cloud?

Unmanaged VPS and SIRSTEVEHQ Cloud are different services. So it isn't possible to simply upgrade...

How can I access my unmanaged VPS if I have lost external network access?

If you lose access to your virtual machine because of an incorrect firewall rule, or a software...