Re: dhclient problem with static leases

From: Jonas Wolz (jwolz1_at_gmail.com)
Date: 11/27/05

  • Next message: Eric Anderson: "Re: ACPI problems with Dell laptops"
    To: freebsd-stable@freebsd.org
    Date: Sun, 27 Nov 2005 13:41:11 +0100
    
    

    Richard Arends wrote:
    > Removing /var/db/dhclient.leases* fixed the
    > problem not getting a lease for me and several other people over here.

    I'm currently not at the location with the network without a DHCP server,
    but IIRC I tried that already and it didn't help.
    It also seems to me that my problem is a bit different:
    In my case dhclient gets its "lease", but doesn't configure the interface
    according to it if it is a static lease (and not a lease received from a
    DHCP server):

    If there is a DHCP server everything works:

    nobby:/etc# /etc/rc.d/netif start
    DHCPDISCOVER on sis0 to 255.255.255.255 port 67 interval 4
    DHCPOFFER from 192.168.2.1
    DHCPREQUEST on sis0 to 255.255.255.255 port 67
    DHCPACK from 192.168.2.1
    bound to 192.168.2.3 -- renewal in 7200 seconds.
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
            inet6 ::1 prefixlen 128
            inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
            inet 127.0.0.1 netmask 0xff000000
    sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            options=8<VLAN_MTU>
            inet6 fe80::2c0:9fff:fe28:2460%sis0 prefixlen 64 scopeid 0x1
            inet 192.168.2.3 netmask 0xffffff00 broadcast 192.168.2.255
            ether 00:c0:9f:28:24:60
            media: Ethernet autoselect (100baseTX <full-duplex>)
            status: active
    nobby:/etc#

    If there isn't a DHCP server (simulated in my home network by shutting the
    DHCP server down):

    nobby:/etc# rm /var/db/dhclient.leases.sis0
    nobby:/etc# /etc/rc.d/netif start
    DHCPDISCOVER on sis0 to 255.255.255.255 port 67 interval 4
    DHCPDISCOVER on sis0 to 255.255.255.255 port 67 interval 6
    DHCPDISCOVER on sis0 to 255.255.255.255 port 67 interval 1
    No DHCPOFFERS received.
    Trying recorded lease 134.60.220.229
    bound: renewal in 855056052 seconds.
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
            inet6 ::1 prefixlen 128
            inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
            inet 127.0.0.1 netmask 0xff000000
    sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            options=8<VLAN_MTU>
            inet6 fe80::2c0:9fff:fe28:2460%sis0 prefixlen 64 scopeid 0x1
            ether 00:c0:9f:28:24:60
            media: Ethernet autoselect (100baseTX <full-duplex>)
            status: active
    nobby:/etc#

    As you can see, dhclient seems to "get" the static lease but doesn't
    correctly bind to it in the latter case.

    Jonas

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


  • Next message: Eric Anderson: "Re: ACPI problems with Dell laptops"

    Relevant Pages

    • Re: Can not logon cause physical address change
      ... a tcp/ip address from your DHCP server so machine wasn't ... So I deleted the reserviced IP lease for my laptop on the DHCP ... > could not repair my connection, contact your isp or network administrator. ...
      (microsoft.public.windows.server.networking)
    • Re: DHCP Lease Behaviour
      ... Here is the expected behavior for Windows CE dhcp client. ... ultimately it should detect the new DHCP server and try to obtain a lease. ... don't have a DHCP server on your customer's network or for some reason it is ...
      (microsoft.public.windowsce.platbuilder)
    • Re: copy dhcp settings
      ... When the users have network issues your reputation as a network ... A single DHCP server could ... >> who believes it has a valid lease but that the new DHCP server knows ... I simply set the lease period ...
      (microsoft.public.windows.server.networking)
    • Re: Cant change my internal and external ip addresses
      ... > Jason thanks for the answers bu here i have some more to ask on what ... Try ipconfig /displaydns ... ipconfig /release releases your lease on the IP address you had. ... Then you have to be able to tell the DHCP server to issue the address you want. ...
      (comp.security.firewalls)
    • Re: Cant change my internal and external ip addresses
      ... There is a DHCP server at your ISP which issues your router with an IP ... > a) ipconfig /release release my lease on the IP address i have and also ... DHCP and lease times allows your ISP to assign you an IP address of their choice ...
      (comp.security.firewalls)