Issue with setting up multiple IP addresses on Ubuntu Server

An alias interface should not have a gateway.

https://wiki.debian.org/NetworkConfiguration#Multiple_IP_addresses_on_One_Interface


It has been a long time since I posted this question. While I never got around to configuring the old server with multiple addresses, the following is a working configuration I'm using on a different server currently.

auto eth0
iface eth0 inet static
        address 172.16.100.125
        netmask 255.255.255.0
        network 172.16.100.0
        broadcast 172.16.100.255
        gateway 172.16.100.1
        dns-nameservers 172.16.100.221 208.67.222.222

auto eth0:0
iface eth0:0 inet static
name Ethernet alias LAN card
        address 172.16.100.123
        netmask 255.255.255.0
        network 172.16.100.0
        broadcast 172.16.100.255
        gateway 172.16.100.1