Re: dhclient.conf or DHCP

From: K Anderson (freebsduser_at_comcast.net)
Date: 11/30/03

  • Next message: Gary Kline: "php4..."
    Date: Sat, 29 Nov 2003 20:56:00 -0800
    To: Mike Maltese <mike@pcmedx.com>
    
    

    Mike Maltese wrote:
    >>I have my freebsd DHCP server set up and working great. Well great for
    >>Windows clients, but not much so for BSD clients.
    >>
    >>Under the Windows clients I just set the host name and when the DHCP
    >>gets a request it dutifully does the job of assigning an IP address as
    >>well as putting in the proper DNS entries. I have tried the same for
    >>another BSD computer and it gets the IP address just fine but the
    >>request doesn't get passed on to DNS for updating.
    >>
    >>I tried the dhclient.conf being blank and then also tried putting in
    >>entries as suggested by man 5 dhclient.
    >>
    >>Any ideas on getting BSD to have the same behavior as Windows?
    >>
    >>This is what I have for dhcpd.conf
    >>
    >>option domain-name "squeaks.net";
    >>option domain-name-servers msmouse.squeaks.net,204.127.198.4;
    >>server-name "msmouse";
    >>server-identifier 192.168.100.250;
    >>key rndc-key {
    >> algorithm hmac-md5;
    >> secret "wouldn't you like to know";
    >>};
    >>
    >>zone squeaks.net. {
    >> primary 192.168.100.250;
    >> key rndc-key;
    >>}
    >>
    >>zone 100.168.192.in-addr.arpa. {
    >> primary 192.168.100.250;
    >> key rndc-key;
    >>}
    >>
    >>default-lease-time 600;
    >>max-lease-time 7200;
    >>
    >># If this DHCP server is the official DHCP server for the local
    >># network, the authoritative directive should be uncommented.
    >>authoritative;
    >>
    >># ad-hoc DNS update scheme - set to "none" to disable dynamic DNS updates.
    >>ddns-update-style interim;
    >>
    >># Use this to send dhcp log messages to a different log file (you also
    >># have to hack syslog.conf to complete the redirection).
    >>log-facility local7;
    >>
    >># No service will be given on this subnet, but declaring it helps the
    >># DHCP server to understand the network topology.
    >>
    >># This is a very basic subnet declaration.
    >>
    >>subnet 192.168.100.0 netmask 255.255.255.0 {
    >> range 192.168.100.1 192.168.100.99;
    >> next-server 192.168.100.250;
    >> option routers 192.168.100.105;
    >> use-host-decl-names on;
    >>}
    >>
    >>dhclient.conf is...
    >>interface "ed0" {
    >> send host-name "pixie.squeaks.net";
    >> request subnet-mask, broadcast-address, time-offset, routers,
    >> domain-name, domain-name-servers, host-name;
    >> script "/sbin/dhclient-script";
    >> require subnet-mask, domain-name-servers;
    >>}
    >
    >
    >
    > Try ommiting the domain name. All you should really need in dhclient.conf is
    >
    > send host-name "pixie";
    >
    >
    >
    You the man! Thanks.

    Probably never would have figured that one out. I was assuming that when
    the DHCP request was made that something would have picked up the
    hostname from someplace else like, ooooh, hostname. I happen to do a
    tcpdump and could have sworn I saw the hostname or something looking
    like it in the dump during the request phase.

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Gary Kline: "php4..."

    Relevant Pages

    • Re: dhclient.conf or DHCP
      ... > I have my freebsd DHCP server set up and working great. ... but not much so for BSD clients. ... > Under the Windows clients I just set the host name and when the DHCP ...
      (freebsd-questions)
    • dhclient.conf or DHCP
      ... I have my freebsd DHCP server set up and working great. ... but not much so for BSD clients. ... Under the Windows clients I just set the host name and when the DHCP ...
      (freebsd-questions)
    • Re: television cable internet service
      ... I had a windows box laying around for the technician ... >connect to their network. ... >area differs from the seattle area, but they should all be BSD friendly. ... this might also be helpful until you get DHCP server set ...
      (freebsd-questions)
    • Re: Router incompatibility with Vista
      ... Depending on what apps are run the user may have to define static ip's ... Most computer operating systems will request the last leased address when contacting the DHCP server, to provide continuity, and most DHCP servers will grant that request unless a different device has taken the address for some reason. ... The other problem that seems to missed in this thread is the difference between routers and computers providing DHCP services. ...
      (uk.telecom.broadband)
    • DHCP man in the middle attack
      ... from the NIC to the DHCP server. ... this may cause problems with the man in the middle attack. ... The client sends a DHCP request, informing the DHCP server that the clients NIC wishes to be ... extern int datalink; ...
      (Vuln-Dev)