multiple IP adresses
Nicolae Ghimbovschi
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:
auto eth0:1
iface eth0:1 inet static
name Ethernet alias LAN card
address 192.168.1.7
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
Save and close the file. Restart the network:
# /etc/init.d/networking restart
OR
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.
> Adel
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
--
"Be the change you want to see in the world !" Mahatma Gandhi
More information about the ubuntu-users
mailing list