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

iface eth0 inet static

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,;

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.

log-facility local7;

subnet netmask {
  interface eth0;
  option routers;
  option subnet-mask;
  option broadcast-address;
  option domain-name-servers,;
  option ntp-servers;
  option netbios-name-servers;
  option netbios-node-type: 8;

Thanks in advance!

  • I don't think you need a gateway on eth0 - a gateway is "if nothing else matches send the request to this IP" thing, so it should generally be the IP of your DSL modem, and be configured on the interface which is physically connected to the modem. Apart from that, it's not quite clear what you're trying to achieve and what the problems are. "nothing works at all" is such a wonderful description... – Sergey Jan 11 '13 at 23:37
  • @Sergey eth0 is connected to the switch. You should take a look again because everything is explained. – Sein Oxygen Jan 12 '13 at 0:03
  • I'd suggest to split this question into at least 3 separate questions and solve the problem in steps: 1. properly configure network adapters (see my previous comment) so you can access internet from this machine; 2. Configure NAT so other machines connected to the switch can access internet via this machine while configured manually; 3. Configure DHCP; 4. deal with network boot. You'll find that many questions are already answered on this site or elsewhere in details. – Sergey Jan 12 '13 at 0:21

you can do it by adding following commands to terminal

route del default
route add default gw

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.