Jason Guidry wrote:
> 
> dhcpd keeps complaing that I have not made a subnet declaration for
my the
> NIC connected to the modem (eth1).  I'm obviously not serving connections
> from this interface, and it isn't listed in dhcpd.interfaces.  how do I make
> a declaration for this interface?  is DHCP _really_ the easiest way to go
> about sharing my connection?
> 
> --------------------------<my
> dhcpd.conf>-----------------------------------------
> 
>         default-lease-time 600;
>         max-lease-time 7200;
>         option  domain-name "home.net";
>         option  domain-name-servers 192.168.1.3, 192.168.1.5;
> 
>         subnet 192.168.0.0 netmask 255.255.255.0 {
>                 option routers 192.168.0.1;
>                 option broadcast-address 192.168.0.255;
>                 range 192.168.0.2 192.168.0.127;
>         }
> 
> #wireless net
> 
> subnet 10.0.0.0 netmask 255.255.255.0 {
> option routers 10.0.0.1;
> option broadcast-address 10.0.0.255;
> range 10.0.0.2 10.0.0.127;
> }
> 


There are two ways to approach this...

1) Start dhcpd specifying the interface(s) you want it to work with on
the command line - it will ignore all others.

        dhcpd -q eth0

In this example -q is quiet and dhcpd monitors only eth0.

2) Put an empty subnet declaration for your other network - no range or
other statements in that subnet declaration. This method will allow the
normal dhcpd startup scripts to work unmodified and has the benefit that
if your network changes later you only update dhcpd.conf and go - you
won't have to remember to also change the startup script.

        subnet 10.74.1.0 netmask 255.255.255.0 {
        }

This declares a subnet but with no range dhcpd will not respond to
requests yet your default startup scripts will work ok.

Hope this helps.


--
Mike Rambo
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to