How to add multiple IPs to OVH VPS (Centos system)

How to add multiple IPs to OVH VPS (Centos system)

The feature of OVH VPS is that each VPS can add 16 IPv4 for free, and the setup of each IP is a one-time 2 euros. Here is how to add multiple IPs.

First enter /etc/sysconfig/network-scripts/, if it is ifcfg-eth0, then do the following:

 vi /etc/sysconfig/network-scripts/ifcfg-eth0:0

Add the following

 DEVICE="eth0:0"
BOOTPROTO=static
IPADDR="1.1.1.1"
NETMASK="255.255.255.255"
BROADCAST="1.1.1.1"
ONBOOT=yes

Change 1.1.1.1 to the extra IP you purchased, and change BROADCAST accordingly (same as the IP).
Restart the network

 ifup eth0:0

If you want to add more IPs, repeat the process.

 vi /etc/sysconfig/network-scripts/ifcfg-eth0:1

Add the following

 DEVICE="eth0:1"
BOOTPROTO=static
IPADDR="1.1.1.2"
NETMASK="255.255.255.255"
BROADCAST="1.1.1.2"
ONBOOT=yes

Change 1.1.1.2 to the extra IP you purchased, and change BROADCAST accordingly (same as the IP).
Restart the network

 ifup eth0:1

<<:  Hop One Networks E3-1230 16G memory 1Gbps bandwidth unlimited traffic Philadelphia dedicated server review

>>:  ByteDynasty: 20 yuan/month/768MB memory/8GB SSD space/1TB traffic/1Gbps port/KVM/Germany Hetzner

Recommend

Free PHP cloud hosting application launched by Zend – PHPCloud

PHPCloud is a cloud computing project launched by...

ZeptoVM: $7/month/768MB RAM/8GB SSD space/700GB bandwidth/KVM/Russia

ZeptoVM, a US hosting company, Wyoming (Filling I...

ownCloud: Building a Private Cloud

Cloud services are popular nowadays, and the word...

DMIT 1.5GB RAM 1Gbps Port Japan International Line KVM VPS Review

Details : DMIT: $8.72/month/1.5GB memory/20GB SSD...

AlphaRacks: $2.99/year/64MB/2GB space/100GB traffic/OpenVZ/Los Angeles

AlphaRacks has been introduced many times. I own ...

Tips to improve Google Adsense click-through rate

How to improve the click-through rate of Google A...

Aiba Blog provides 10 1GB free spaces

WHMCS has been hacked. Applicants please use http...

Synatiq 1GB RAM NVMe hard drive 10Gbps bandwidth UK KVM VPS review

Details : Synatiq: $5/month/1GB memory/25GB NVMe ...

HiFormance: $72/year/4G memory/100GB space/2TB traffic/KVM/Los Angeles

HiFormance, an American hosting company, has been...