I have two NICs in my server. One is connected to my cable modem/internet (eth0) and uses DHCP for configuration. The other is connected to a LAN (eth1) and has a static IP.
I have configured the server to provide DHCP and this works - machines added to the LAN get an IP address.
However, the server is unable to resolve web address when the LAN NIC is up. Doing:
sudo ifconfig eth1 down
the server can access the web (Firefox can load web pages). But if I do:
sudo ifconfig eth1 up
then the server can't access the internet (Firefox times out trying to load web pages).
Why is this happening?
EDIT: As reqested, the interfaces file:
auto eth0, eth1 mapping eth0 eth1 script /etc/networks/get-mac-address.sh map 00:19:66:82:61:f7 internet map 00:27:19:b2:12:2b lan iface internet inet dhcp gateway 192.168.1.2 iface lan inet static address 192.168.1.2 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255