Problem to add IP

Discussion in 'Server Operation' started by AndresMC54, Nov 7, 2015.

  1. AndresMC54

    AndresMC54 New Member

    Hello, i'm new, had a dedicated OVH and bought 7 IP, after a few days I installed the IP, it has been several months and I've changed my dedicated, I'm hiring another page, I have also purchased 7 IP but when you install / configure I can not, I'm doing this (Excuse my English, i speak Spanish) :

    # 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

    auto eth0
    iface eth0 inet static
    address 82.223.30.45
    netmask 255.255.255.0
    network 82.223.30.0
    broadcast 82.223.30.255
    gateway 82.223.30.254

    auto eth0:1
    iface eth0:1 inet static
    address 82.223.31.42
    netmask 255.255.255.0
    network 82.223.31.0
    broadcast 82.223.31.255
    gateway 82.223.31.254

    auto eth0:2
    iface eth0:2 inet static
    address 82.223.31.228
    netmask 255.255.255.255
    network 82.223.31.0
    broadcast 82.223.31.255
    gateway 82.223.31.254

    auto eth0:3
    iface eth0:3 inet static
    address 82.223.31.75
    netmask 255.255.255.1
    network 82.223.31.1
    broadcast 82.223.31.256
    gateway 82.223.31.255

    auto eth0:4
    iface eth0:4 inet static
    address 82.223.31.17
    netmask 255.255.255.2
    network 82.223.31.2
    broadcast 82.223.31.257
    gateway 82.223.31.256

    auto eth0:5
    iface eth0:5 inet static
    address 82.223.31.111
    netmask 255.255.255.258
    network 82.223.31.3
    broadcast 82.223.31.258
    gateway 82.223.31.257

    auto eth0:6
    iface eth0:6 inet static
    address 82.223.31.116
    netmask 255.255.255.3
    network 82.223.31.4
    broadcast 82.223.31.259
    gateway 82.223.31.258

    And then save the file /etc/network/interfaces and I put the following commands :

    sudo ifconfig eth0 82.223.31.45 netmask 255.255.255.0
    sudo ifconfig eth0:1 82.223.31.42 netmask 255.255.255.0
    sudo ifconfig eth0:2 82.223.31.228 netmask 255.255.255.0
    sudo ifconfig eth0:3 82.223.31.75 netmask 255.255.255.0
    sudo ifconfig eth0:4 82.223.31.17 netmask 255.255.255.0
    sudo ifconfig eth0:5 82.223.31.111 netmask 255.255.255.0
    sudo ifconfig eth0:6 82.223.31.116 netmask 255.255.255.0

    I hope someone can help me please, I'm new to manage a dedicated commands to place the dedicated collapses, bone, unresponsive, my dedicated has the following characteristics:

    -
    vCores: 12 x 2,0 GHz
    Memoria RAM: 128 GB RAM
    Disco Duro: 500 GB
    Sistema operativo: Linux Ubuntu 14.04 (64 bit)

    Thanks!
     

Share This Page