Install ipv4 in VPS OVH

Testo

First command in root :

nano or pico /etc/network/interfaces

now you need to modify the ipv4 like this

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address the static root ip
        netmask 255.255.255.255
        post-up /sbin/ip route add the static root ip dev eth0
        post-up /sbin/ip route add default via the static root ip
        pre-down /sbin/ip route del default via the static root ip
        pre-down /sbin/ip route del the static root ip dev eth0
        dns-nameserver 213.186.33.99
        dns-search ovh.net

auto eth0:1
        iface eth0:1 inet static
        address the first ipv4 to add
        netmask 255.255.255.255
        broadcast the first ipv4 to add

auto eth0:2
        iface eth0:2 inet static
        address the second ipv4 to add
        netmask 255.255.255.255

       broadcast the second ipv4 to add

auto eth0:3
        iface eth0:3 inet static
        address 192.99.170.204
        netmask 255.255.255.255
        broadcast 192.99.170.204

.................

Etc...

After you put all your ipv4 to save Ctrl+o and to exit Ctrl+x

after that you need to restart your network service :


service networking restart

 

 

This is it :)