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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to