multiple IP adresses
xfreebird at gmail.com
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:
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 192.168.1.5
* eth0:0 first NIC alias: 192.168.1.6
To setup eth0:0 alias type the following command as the root user:
# ifconfig eth0:0 192.168.1.6 up
Verify alias is up and running using following command:
# ifconfig -a
# ping 192.168.1.6
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 imag.fr> 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.
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
"Be the change you want to see in the world !" Mahatma Gandhi
More information about the ubuntu-users