Need help setting up dhcp server

mister moo moleque_da_rua at
Wed Mar 19 03:33:52 UTC 2008

 Re: Need help setting up dhcp server

>Date: Mon, 17 Mar 2008 23:04:40 -0700 (PDT)
>From: mister moo <moleque_da_rua at>
>Subject: Need help setting up dhcp server
>To: dhcp-users at
>I have edited and re-edited the configuration file
>the server and I am not able to start it on the
>Here is a copy of the file:
>ddns-update-style none;
>option domain-name-servers,;
>default-lease-time 86400;
>max-lease-time 604800;
>subnet netmask {
>        range 
>        option subnet-mask;
>        option broadcast-address;
>        option routers;

>        option interfaces eth1

This is not a valid statement. What are you trying to
achieve here?
There is no need to bind a subnet to an interface.
dhcpd works out what
the ip addresses are on the subnet and sorts this out
># Pooter
>subnet netmask {
>	range;

This range includes the network and broadcast
addresses, along with the
router and your fixed address host. Either leave the
whole line out or
reduce the size
You need a router definition in this subnet
	option routers;
>	}
># fingers
>host {
>	hardware ethernet 1;Ethernet  HWaddr

Wrong format for the ethernet address, should look
	hardware ethernet 00:15:F2:7A:DC:83;
>	fixed-address;
This is not a valid IP address, it is the same as the
subnet network
address. Try
>	}

Do you actually have two separate subnets, with a
router (or host
acting as a router) in between? Or one network with
two IP address
ranges on it?

If it's the latter then you need to add a
"shared_network" around the
two subnets.

There is an example config in the dhcpd.conf man page
that shows all
these settings. The rest of your file looks ok.

So the two subnet definitions could look like this:

subnet netmask {
        option subnet-mask;
        option broadcast-address;
        option routers;
subnet netmask {
	option routers;
# fingers
host {
	hardware ethernet 00:15:F2:7A:DC:83;



I had to share a NIC between two machines. The shared
NIC became eth2 on the host machine- I did not know
how to properly disable with ifconfig. Now the
embedded NIC- eth1- is what I am trying to use as a
So, the setup I would like to have is: Server (AMD64)
dc0 (eth2) as the interface for the ISP and rl0 (eth1)
as the server interface for a local machine. 
Whenever I restart with eth1 enabled, my connection to
my ISP slows down or becomes non-existant.

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

More information about the dhcp-users mailing list