[luau] PROBLEMS WITH DHCP

Jeffrey Wong jmwong at hoku.net
Sun Jun 2 19:45:01 PDT 2002


IIRC, if you don't explicitly tell dhcpd which network interfaces to bind
to, it will default to only the first interface it finds, usually
eth0.  I'm assuming that eth0 is the external interface, and the actual
interface you want to serve dhcp requests over is on a different
interface, say eth1.  For each interface that dhcp binds to there must be
at least one subnet declaration that covers the network directly attached
to the interface, even if its just an empty declaration.  (e.g.)
subnet 192.168.1.0 netmask 255.255.255.0 {}

In order to force dhcpd to bind to the correct interface (and only that
one) you have to edit /etc/rc.d/init.d/dhcpd and add the interface names
to end of the line that starts dhcpd.  On my box (RH 6.2) the line in
question reads:

     daemon /usr/sbin/dhcpd eth2

Which will force dhcpd to bind only to eth2.

Hope this solves your problem.

Jeff

On Sun, 2 Jun 2002, Jason Smallwood wrote:

> Here is my dhcpd.conf
> 
> 
> subnet 192.168.0.0 netmask 255.255.255.0 {
>      # default gateway
>      option routers          192.168.0.1;
>      option subnet-mask      255.255.255.0;
> 
>      # Customize these DNS Servers
>      # (these are for Oahu Verizon DSL)
>      option domain-name-servers  2.2.2.1,2.2.2.2,2.2.2.3,2.2.2.4;
> 
>      range 192.168.0.2 192.168.0.254;
>      default-lease-time 21600;
>      max-lease-time 43200;
>  }
> 
> 
> 
> _______________________________________________
> LUAU mailing list
> LUAU at videl.ics.hawaii.edu
> http://videl.ics.hawaii.edu/mailman/listinfo/luau
> 




More information about the LUAU mailing list