Tuesday, 16 October 2012

Adding additional Ip address in Debian OS


Open the network configuration file :

vi /etc/network/interfaces

Check the name of your network interface. You should see a line similar to this one: "iface eth0 inet static". In my case the name is eth0.

Add these lines to the end of the file:

auto eth0:1
iface eth0:1 inet static
address 192.168.1.3
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0

Replace eth0 by your network interface name. If you are adding multiple IP addresses to the same system, you can increase the number after "eth0:".

Finally,activate the new virtual network interface :

ifup eth0:1

1 comment:

  1. Thank you, I have recently been searching for information about this topic for a while and yours is the greatest I've found out till now. But, what concerning the conclusion? Are you certain in regards to the supply?|What i don't understood is in fact how you are no longer actually a lot more smartly-preferred than you might be now. You're very intelligent.
    Prestashop Programmer

    ReplyDelete