I'm running Ubuntu 12.04 Server on VirtualBox. I'm trying to setup two interfaces with static IP addresses. If I only attach one network interface then eth0 works fine, but once I attach my second interface, eth0 doesn't work but eth1 does. I'm doing this because eth0 is my management subnet and eth1 is my admin/employee subnet. Below is how I've configured the /etc/network/interfaces file. Any help would be greatly appreciate. Thanks.
# This file describes the network interfaces available on your system
# and how to active them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.192.168.60
netmask 255.255.254.0
gateway 10.192.168.1
network 10.192.168.0
broadcast 10.192.169.255
dns-nameserver 192.168.1.21
# The secondary network interface
auto eth1
iface eth1 inet static
address 192.168.0.11
netmask 255.255.248.0
gateway 192.168.0.1
network 192.168.0.0
broadcast 192.168.7.255
dns-nameserver 192.168.1.21
route
and consider what interface should go to external networks, if any. If your eth0 works as intended, you should drop thegateway
in eth1. edit: sorry this was meant as comment - not answer