From owner-freebsd-questions@FreeBSD.ORG Fri May 7 14:56:38 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56588106566B for ; Fri, 7 May 2010 14:56:38 +0000 (UTC) (envelope-from prvs=0736664c62=johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [64.57.183.53]) by mx1.freebsd.org (Postfix) with ESMTP id E0E858FC16 for ; Fri, 7 May 2010 14:56:37 +0000 (UTC) Received: (qmail 32742 invoked from network); 7 May 2010 14:29:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:subject:in-reply-to:references:mime-version:content-type:user-agent:cleverness; s=k1005; bh=KRe5VJFlLI8Sy5Cv9r3chctwdceVEoTduva8o0Lb+1g=; b=tpL6yeJDntHNPvMpabkXleWAyCwjUUBspmxPkxzdEvdIZPqwl6Z11S/6+t9hxjuErdA9xjBnq9MkzJrUBqPH9nq+6pw66Igw4KzYbsEx5grq43Fv2RviWA/L5z+at9ifXetitHbHAupYejgy15VWx8m6uzbPxRSPrXVeTZXOFzw= Received: (ofmipd 64.57.183.62) with (DHE-RSA-AES256-SHA encrypted) SMTP; 7 May 2010 14:29:35 -0000 Date: 7 May 2010 10:29:53 -0400 Message-ID: From: "John R. Levine" To: freebsd-questions@freebsd.org In-Reply-To: <44r5loc6a2.fsf@lowell-desk.lan> References: <44r5loc6a2.fsf@lowell-desk.lan> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Cleverness: None detected MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: Using different IP config than what DHCP provides 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, 07 May 2010 14:56:38 -0000 >> than the default one DHCP offers. It is a pain to have to kill >> dhclient and do the ifconfig and route commands manually. > > There are enough hooks in dhclient-script(8) to do this, assuming you > have some way for the system to recognize where it is programatically. Ah, right. It looks like can put it in /etc/dhclient-enter-hooks, check for the SSID and change $new_host_name, $new_ip_address, $new_subnet_mask, $new_broadcast_address, and $new_routers. Regards, John Levine, johnl@iecc.com, Primary Perpetrator of "The Internet for Dummies", Information Superhighwayman wanna-be, http://www.johnlevine.com, ex-Mayor "More Wiener schnitzel, please", said Tom, revealingly.