Date: Sun, 27 Nov 2005 13:41:11 +0100 From: Jonas Wolz <jwolz1@gmail.com> To: freebsd-stable@freebsd.org Subject: Re: dhclient problem with static leases Message-ID: <dmc9h8$ktb$1@sea.gmane.org> References: <dmc4i8$9mt$1@sea.gmane.org> <20051127114252.GG1383@sun.unixguru.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dmc9h8$ktb$1>