How to Assign Additional IP Addresses in Debian
In order to add an additional IP address to your Debian system you will have to edit /etc/network/interfaces file and add appropriate lines with network information.
First, open the network interfaces file.
The original file will look something like this:
iface lo inet loopback
iface eth0 inet static
You should not change any present configuration, instead add additional lines, for example:
iface eth0:1 inet static
Take note that you must add :[number] to the text eth0( for example eth0:2). The number changes depending on how many additional IP’s you have. If you have 5 additional IP’s and you want to add them the numbers will be eth0:1, eth0:2, eth0:3, etc.
Restart your network interface using command: