After 4 hours of trying to configure this I'm getting mad.
I've the next setup:
eth0: is the on board lan adapter and this one connect directly to a switch. eth1: is the lan adapter (pci card) that connects directly to the main router and internet.
I'm trying to connect multiple machines to this computer running a dhcp-server (isc-dhcp-server) on it. And then configure the other machines to boot using lan.
This my current settings for interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo eth1 eth0
iface lol inet loopback
iface eth1 inet static
address 192.168.0.200
netmask 255.255.255.0
gateway 192.168.0.1
network 192.168.0.0
dns-nameservers 192.168.0.1 8.8.8.8
iface eth0 inet static
address 10.0.0.100
netmask 255.255.255.0
gateway 10.0.0.1
network 10.0.0.0
Note: With this configuration nothing works at all. If i remove the configuration of eth0 i can connect to internet an my router without problems. Otherwise nothing works.
And this my configuration to the dhcp:
ddns-update-style none;
option domain-name-servers 8.8.4.4, 8.8.8.8;
default-lease-time 600;
max-lease-time 7200;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
log-facility local7;
subnet 10.0.0.0 netmask 255.255.255.0 {
interface eth0;
range 10.0.0.100 10.0.0.200;
option routers 10.0.0.2;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.254;
option domain-name-servers 10.0.0.1, 10.0.0.2;
option ntp-servers 10.0.0.1;
option netbios-name-servers 10.0.0.1;
option netbios-node-type: 8;
}
Thanks in advance!