I am trying to set up four IPs on two Ethernet ports. I figured I will assign one to each and then create aliases for the remaining two.
This is what I did with my limited networking knowledge:
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 18.104.22.168 netmask 255.255.255.192 # network # broadcast gateway 22.214.171.124 auto eth0:0 iface eth0:0 inet static address 126.96.36.199 netmask 255.255.255.192 auto eth1 iface eth1 inet static address 188.8.131.52 netmask 255.255.255.192 auto eth1:0 iface eth1:0 inet static address 184.108.40.206 netmask 255.255.255.192
The setup works only partially. I can ping all IPs from the outside but cannot reach the outside world through any but that of eth0. And I do want to be able to do that.
Two notes: I did not touch the original eth0 configuration, and the provisioning guys only provided me with the IPs and netmask, so I presumed I do not need to add anything else.
The use case: Cluster of workers hitting the Amazon Product Advertising API through multiple IPs.
What am I doing wrong?