From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 04:22:52 2004 Return-Path: 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 79C4C16A4CE for ; Fri, 6 Feb 2004 04:22:52 -0800 (PST) Received: from hotmail.com (law11-f60.law11.hotmail.com [64.4.17.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id B857243D1D for ; Fri, 6 Feb 2004 04:22:51 -0800 (PST) (envelope-from weiwuzhang@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 6 Feb 2004 04:22:51 -0800 Received: from 218.85.105.132 by lw11fd.law11.hotmail.msn.com with HTTP; Fri, 06 Feb 2004 12:22:51 GMT X-Originating-IP: [218.85.105.132] X-Originating-Email: [weiwuzhang@hotmail.com] X-Sender: weiwuzhang@hotmail.com From: "Zhang Weiwu" To: freebsd-questions@freebsd.org Date: Fri, 06 Feb 2004 20:22:51 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 06 Feb 2004 12:22:51.0552 (UTC) FILETIME=[F0881A00:01C3ECAB] Subject: to let dhclient renew ip address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: zhangweiwu@realss.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 12:22:52 -0000 I am using a notebook (5.2 on a Thinkpad T40). Sometimes I move it from one room to another (managed by different dhcp server), and I cannot figure out a fast way to tell the dhclient(8) to renew my address. I read the manuals. It seems the only way I can do is to: weiwu>su (su to root) #setenv interface fxp0 #setenv reason RENEW #dhclient-script (.... dhclient output) Isn't there a faster way to do it? I am courious why not dhclient be designed to just renew the address upon receiving a signal, say INT? _________________________________________________________________ 享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com