From owner-freebsd-questions@FreeBSD.ORG Thu May 6 17:39:59 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 13107106564A for ; Thu, 6 May 2010 17:39:59 +0000 (UTC) (envelope-from prvs=0735040e64=usenet@iecc.com) Received: from gal.iecc.com (gal.iecc.com [64.57.183.53]) by mx1.freebsd.org (Postfix) with ESMTP id 9945F8FC15 for ; Thu, 6 May 2010 17:39:58 +0000 (UTC) Received: (qmail 68278 invoked by uid 8); 6 May 2010 17:13:16 -0000 To: freebsd-questions@freebsd.org Path: not-for-mail From: John Levine Newsgroups: iecc.lists.freebsd-questions Date: Thu, 6 May 2010 17:13:16 +0000 (UTC) Organization: Taughannock Networks, Trumansburg NY Lines: 20 Message-ID: NNTP-Posting-Host: news.iecc.com X-Trace: gal.iecc.com 1273165996 61493 64.57.183.58 (6 May 2010 17:13:16 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Thu, 6 May 2010 17:13:16 +0000 (UTC) Cleverness: some X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: johnl@joyce.lan (John L) Subject: 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: Thu, 06 May 2010 17:39:59 -0000 I run FreeBSD 8.0 on my laptop, works great, when I take it with me I open it up, wpa_supplicanr finds a network and DHCP configures it. On a few networks, though, I want to use a different network setup than the one that DHCP provides. Is there any reasonable way to arrange so that when I'm connected to specific network SSIDs, It runs a config script I write rather than running dhclient, perhaps with a shim in front of dhclient? The situation, in case you're wondering, is that the wifi in most of the local coffee shops is run by the same ISP that hosts my servers, and when I'm on their network, I want to set up in my IP range rather than the default one DHCP offers. It is a pain to have to kill dhclient and do the ifconfig and route commands manually. TIA, John