If I want to have 2 static IP addresses, I can do something like this:
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
broadcast 192.168.1.255
auto eth0:0
iface eth0:0 inet static
address 192.168.1.11
netmask 255.255.255.0
broadcast 192.168.1.255
However, I'd like to use DHCP to get addresses. I tried the following:
auto eth0
iface eth0 inet dhcp
auto eth0:0
iface eth0:0 inet dhcp
...but I only end up with eth0, and no second IP. Is there a simple way to go about this?