Setting up dual ip address in ubuntu


here is a simple way to setup dual ip in your ubuntu system if you already have eth0 as then if you want then use the following command to bring up a alias but this is temporary

sudo ifconfig eth0:0 up

To have a permanent dual ip update the /etc/network/interfaces file like the below

gksudo gedit /etc/network/interfaces

andadd the following content to the end of the file

auto eth0:0

iface eth0:0 inet static





Save the file and restart system or restart the network using the following command

sudo /etc/init.d/networking restart

Permanent link to this article:

Leave a Reply

Your email address will not be published.