Network Aliases

To have an network interface listening on more that one IP, aliases can be added to the configuration.

So, inside:

/etc/network/if-up.d/

create a simple script to add  aliases to the interface.

#!/bin/sh
ifconfig eth0:1 192.168.0.10 netmask 255.255.255.224
ifconfig eth0:2 192.168.0.11 netmask 255.255.255.224