multiple IP adresses

Nicolae Ghimbovschi xfreebird at
Tue May 27 13:13:04 UTC 2008

It doesn't depend on what flavour of Linux you are running.

Yes, it is possible to have different IP's for the same NIC.

You can configure the additional IP addresses automatically at boot
with another iface statement in /etc/network/interfaces:

# vi /etc/network/interfaces
Append text as follows:

auto eth0:1
iface eth0:1 inet static
name Ethernet alias LAN card

Save and close the file. Restart the network:
# /etc/init.d/networking restart


You can use ifconfig command to configure a network interface and
alias. For example:

    * eth0 NIC IP
    * eth0:0 first NIC alias:

To setup eth0:0 alias type the following command as the root user:
# ifconfig eth0:0 up

Verify alias is up and running using following command:
# ifconfig -a
# ping

However, if you reboot the system you will lost all your alias. To
make it permanent you need to add it network configuration file.

On Mon, May 26, 2008 at 4:58 PM, Adel ESSAFI <adel.safi at> wrote:
> Hi list,
> I am a newbie in ubuntu world. I want to know if it is possible to assign
> multiple IP adresses to a PC. With Fedora, it was possible. IF yes, do you
> have any document?
> Thanks a lot.
> Adel
> --
> ubuntu-users mailing list
> ubuntu-users at
> Modify settings or unsubscribe at:

"Be the change you want to see in the world !" Mahatma Gandhi

More information about the ubuntu-users mailing list