Problem with OpenBSD dhclient

From: Jonas Wolz (jonas.wolz_at_freenet.de)
Date: 11/21/05

  • Next message: Jayesh Jayan: "How to check if a processor in the machine is dead"
    To: freebsd-questions@freebsd.org
    Date: Mon, 21 Nov 2005 20:28:59 +0100
    
    

    Hello,

    I recently upgraded from FreeBSD 5.4 to 6.0 and now my dhclient
    configuration (which did work perfectly with the ISC dhclient) doesn't work
    anymore.
    On my laptop I'm using a static lease in dhclient.conf (attached below) as
    it is roaming between different networks.

    On the network without the DHCP server dhclient shows the following
    messages, but leaves sis0 unconfigured (it doesn't configure the default
    gateway or resolv.conf, too):

    DHCPDISCOVER on sis0 to 255.255.255.255 port 67 interval 5
    DHCPNACK from 192.168.0.1 rejected.
    DHCPOFFER from 192.168.123.254 rejected.
    DHCPOFFER from 192.168.0.1 rejected.
    DHCPOFFER from 192.168.0.1 rejected.
    DHCPDISCOVER on sis0 to 255.255.255.255 port 67 interval 6
    DHCPOFFER from 192.168.123.254 rejected.
    DHCPOFFER from 192.168.0.1 rejected.
    No DHCPOFFERS received.
    Trying recorded lease 134.60.220.229
    bound: renewal in 855549552 seconds.

    If dhclient gets its lease from a "real" DHCP server everything works fine.

    Does anybody know a workaround or is the OpenBSD dhclient just buggy?

    Jonas

    dhclient.conf:
    --------------
    # $FreeBSD: src/etc/dhclient.conf,v 1.3 2001/10/27 03:14:37 rwatson Exp $
    #
    # This file is required by the ISC DHCP client.
    # See ``man 5 dhclient.conf'' for details.
    #
    # In most cases an empty file is sufficient for most people as the
    # defaults are usually fine.
    #

    timeout 10;
    retry 36000;

    reject 192.168.0.1;
    reject 192.168.5.50;
    reject 192.168.123.254;
    reject 192.168.0.254;

    lease {
       interface "sis0";
       fixed-address 134.60.220.229;
       option subnet-mask 255.255.254.0;
       option routers 134.60.220.99;
       option domain-name-servers 134.60.220.1;
       option domain-name "wh-hms.uni-ulm.de";
    # option dhcp-lease-time 654321; # lang genug ;)
    # option dhcp-renewal-time 65321;
    # option dhcp-rebinding-time 65321;
       option dhcp-lease-time -1;

       # Dummy-Werte:
       renew 0 2033/01/01 00:00:00;
       rebind 0 2033/01/02 00:00:00;
       expire 0 2033/01/03 00:00:00;
    }

    _______________________________________________
    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: Jayesh Jayan: "How to check if a processor in the machine is dead"

    Relevant Pages

    • dhclient problem with static leases
      ... I recently upgraded from FreeBSD 5.4 to 6.0 and now my dhclient ... configuration (which did work perfectly with the ISC dhclient) doesn't work ... DHCPOFFER from 192.168.123.254 rejected. ...
      (freebsd-stable)
    • Re: dhclient/dhclient.conf change in -CURRENT?
      ... >> DHCPOFFER from 207.136.3.254 ... >> DHCPACK from 207.136.3.254 ... > Dhclient is definitly NOT the problem here. ... It was working with the WI driver from 5.0 through 5.1-CURRENT ...
      (freebsd-current)
    • Re: dhclient/dhclient.conf change in -CURRENT?
      ... > Sending on Socket/fallback ... > DHCPOFFER from 207.136.3.254 ... > DHCPACK from 207.136.3.254 ... Dhclient is definitly NOT the problem here. ...
      (freebsd-current)
    • Re: dhclient sucks
      ... > The ISC dhclient would probe multiple interfaces simultaneously. ... > With the old ISC client, leaving the ssid blank was sufficient. ...
      (freebsd-current)