From owner-freebsd-questions@FreeBSD.ORG Fri Jan 13 12:41:31 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F059B16A41F for ; Fri, 13 Jan 2006 12:41:31 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from hermes2.cf.ac.uk (hermes2.cf.ac.uk [131.251.0.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 742C443D4C for ; Fri, 13 Jan 2006 12:41:27 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from fenrir.insrv.cf.ac.uk ([131.251.50.213]) by hermes2.cf.ac.uk with esmtp (Exim 4.34) id 1ExOFC-00031P-Bu; Fri, 13 Jan 2006 12:41:26 +0000 In-Reply-To: <43C81E6D.5010702@mail.ru> References: <43C81E6D.5010702@mail.ru> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-5--64904436" Message-Id: <28BD0476-A2EE-4AD1-9E83-1E406366322A@submonkey.net> Content-Transfer-Encoding: 7bit From: Ceri Davies Date: Fri, 13 Jan 2006 12:41:25 +0000 To: Maxim Vetrov X-Pgp-Agent: GPGMail 1.1.1 (Tiger) X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: Cardiff University Sophos AV Cc: freebsd-questions@FreeBSD.org Subject: Re: dhclient fixed leases X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2006 12:41:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-5--64904436 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 13 Jan 2006, at 21:41, Maxim Vetrov wrote: > Hi to all, > > I can't configure dhclient to use fixed lease on a network with no > dhcp server. I use my notebook to connect to several different > networks. Some of them have dhcp servers, some do not. Just tired > of manual config on the latter. I've done man dhclient.conf and > found that I can cope with that. so there is my dhclient.conf: > > timeout 15; > retry 180; > reboot 5; > > lease { > interface "sis0"; > fixed-address 10.0.1.4; > option routers 10.0.1.5; > option host-name "mobile"; > option subnet-mask 255.255.255.248; > expire 5 2010/1/1 00:00:00; > renew 5 2010/1/1 0:0:0; > rebind 5 2010/1/1 0:0:0; > } > > interface "sis0" { > send dhcp-lease-time 600; > send host-name "mobile"; > request broadcast-address,routers,subnet-mask,domain- > name,domain-name-servers,time-servers,netbios-name-servers; > } > > When it boots these messages are displayed: > > Trying recorded lease 10.0.1.4 > > bound: renewal in 125116757 seconds. > and nothing happen. > > The peer's address on the othe side of cross-wired cable is > 10.0.1.5 netmask 255.255.255.248. When I > > ifconfig sis0 inet 10.0.1.4 netmask 255.255.255.248 up > and ping connection is alive. > > What do I do wrong? Pass, but I found the same when I tried this a few weeks ago. Then Santa gave me a new access point which came free with a whole bunch of other problems so I didn't look into it too hard. I'm glad it's not just me, though. Ceri --Apple-Mail-5--64904436 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFDx5/1me8yCsQvJJ0RAloQAJ9jw/lR5DkVkuC5lvYXvzlabLN5ngCgr/fL PhroIIbDLmkTb2mg4nweL88= =ooZq -----END PGP SIGNATURE----- --Apple-Mail-5--64904436--