From owner-freebsd-questions@FreeBSD.ORG Fri Jan 13 11:41:22 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 A867A16A41F for ; Fri, 13 Jan 2006 11:41:22 +0000 (GMT) (envelope-from muxas@mail.ru) Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12E1643D4C for ; Fri, 13 Jan 2006 11:41:17 +0000 (GMT) (envelope-from muxas@mail.ru) Received: from [80.243.73.98] (port=57579 helo=[80.243.73.98]) by mx2.mail.ru with asmtp id 1ExNIw-00055U-00 for freebsd-questions@FreeBSD.org; Fri, 13 Jan 2006 14:41:15 +0300 Message-ID: <43C81E6D.5010702@mail.ru> Date: Fri, 13 Jan 2006 21:41:01 +0000 From: Maxim Vetrov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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 11:41:22 -0000 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? Muxas