OS = Ubuntu 12.04.4 Server
This is running in VMware player and the NIC's are "custom" bridged network adapters which basically show up as a regular NIC on a network. I want to set this up as a webserver.
I edited my /etc/network/interfaces file to this:
Code:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.2.120
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.0.255
gateway 192.168.2.254
dns-nameservers 8.8.8.8 8.8.4.4
# NAS Network
auto eth1
iface eth1 inet static
address 10.0.0.209
netmask 255.255.255.0
gateway 10.0.0.1
# Cable network
auto eth2
iface eth2 inet static
address 192.168.1.120
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
I can't see any of these NIC's on the network and can't ping them and can't ping out of the machine. The network works with the default install of DHCP.
for eth1 I copied it from a working Kubuntu desktop machine that is using the same NIC setup on VMplayer - I just changed the IP address from 206 to 209. It is on an isolated network with no router or gateway (just switched).
eth0 is a DSL connection and the data is correct.
eth2 is a cable connection and again, data is correct.
I was following a guide for "the perfect server" on howtoforge for this interfaces file. I usually don't include the "network, broadcast and dns-nameservers part" so I'm not sure if this is correct.
Does anyone see a problem? Is there a way to prioritize NIC's for data?