Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i got a new IP for my server from my host. the server is already hosting one site.

i got a range of IP. like

how can i add these ?

share|improve this question

You update your /etc/network/interfaces file. Something like this is probably close to what you want.

auto eth0
iface eth0 inet static
    # add secondary ip address
    up ip addr add brd + dev eth0
    down ip addr del brd + dev eth0
share|improve this answer

Beneath your regular iface lines for your default interface, add:

up ip addr add dev eth0
up ip addr add dev eth0
up ip addr add dev eth0
up ip addr add dev eth0
up ip addr add dev eth0

This will add each IP individually.

Alternatively you can add the network via CIDR in one line:

up ip addr add dev eth0

Both will work if the network was added as a proper CIDR network.

share|improve this answer

You could create some ethernet aliases, like this:

ifconfig eth0:1
ifconfig eth0:2
ifconfig eth0:3
ifconfig eth0:4

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.