Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 2010 11:23:25 +0200
From:      Erik Norgaard <norgaard@locolomo.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: dhcpd doesn't sent route information
Message-ID:  <4BD2B88D.30609@locolomo.org>
In-Reply-To: <20100423131402.GA3428@localhost>
References:  <20100423131402.GA3428@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On 23/04/10 15:14, Onur Aslan wrote:

> Do you have any idea?

Still haven't solved the problem?

I just looked over your dhclient.conf:

#prepend domain-name-servers 127.0.0.1;
prepend domain-name-servers 8.8.8.8, 8.8.8.4;
#request subnet-mask, broadcast-address, time-offset, routers,
#	domain-name, domain-name-servers, domain-search, host-name,
#	netbios-name-servers, netbios-scope, interface-mtu,
#	rfc3442-classless-static-routes, ntp-servers;
request subnet-mask, broadcast-address;

Seems like you don't request router information.

As for dhcpd.conf, I don't know if you have a real need to keep static 
addresses, if you do use fixed-address then your dhcpd.conf can only be 
good for that subnet.

I have:

subnet 192.168.0.0 netmask 255.255.254.0 { # Server subnet
     default-lease-time 3600;
     max-lease-time 86400;

     option routers 192.168.0.1;
     option domain-name-servers ns1.example.com;
     option domain-name "example.com";

     pool {
         range 192.168.1.1 192.168.1.127;
         deny unknown-clients;
     }
     pool {
         range 192.168.1.128 192.168.1.254;
         allow unknown-clients;
     }
}

group {
     use-host-decl-names on;

     host myhost {
         hardware ethernet 00:ab:cd:de:f0:12;
     }
}

With this my host declarations are good for any subnet I may define, and 
I can set special options for known clients as needed - say I only want 
to send router information to known clients, unknown clients will only 
have access to the local network. Of course, this kind of security is 
easy to circumvent. But I do use it to avoid non-diskless clients 
suddenly booting off the network.

BR, Erik

-- 
Erik Nørgaard
Ph: +34.666334818/+34.915211157                  http://www.locolomo.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BD2B88D.30609>