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

MoeCloud: Tanabata Special Event, CN2 GIA UK, CN2 GIA San Jose

During the Chinese Valentine’s Day, buy VPS in pa...

SpeedyKVM Coupon Code

SpeedyKVM, a direct sub-brand of Incero Data Cent...

natanetwork: $40/year/256MB memory/10GB space/250GB traffic/KVM/Indonesia

Natanetwork, an Indonesian hosting provider, prov...

DMIT 0.75GB RAM 1Gbps Bandwidth Hong Kong KVM VPS Review

Details : DMIT: $6.9/month/768MB memory/10GB SSD ...

Beginner's Tutorial: AMH - the best VPS WEB control panel in China

It can be installed on various VPS, is compatible...

HostUS: $2.95/month/256MB memory/10GB SSD/500GB traffic/OpenVZ/Hong Kong

The climax of HostUS’s special VPS offer has pass...

Directnic: .com domain name 1.99 USD for the first year

Directnic, a foreign merchant, provides various h...

WINNERvps: $4.99/month/512MB memory/10GB SSD/500GB traffic/4 IP/Xen/Phoenix

WINNERvps, which has been introduced before, is a...

Web Host Directory selected high-quality hosting

Web Host Directory is a US company that introduce...

HostSumo: $4/month/1CPU/1GB memory/50GB space/1TB traffic/1 IP/Xen

HostSumo is an American hosting provider that pro...