From owner-freebsd-questions@FreeBSD.ORG Wed Jul 27 03:00:56 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2543F1065672 for ; Wed, 27 Jul 2011 03:00:56 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id AA4918FC15 for ; Wed, 27 Jul 2011 03:00:55 +0000 (UTC) Received: by ewy1 with SMTP id 1so1373794ewy.13 for ; Tue, 26 Jul 2011 20:00:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IUFSqk8elqay9XK6B8+7pbW3fC4IQjoNXnU+/4zyrwU=; b=I5Tymh2ZbvtPw+rllti2StWhIQyw0vbq8jK4hyT4FCF0CtAkdpvH8pqqieZdcjiKUc Ef2tMgh0fq87XYCrP8jm3V1E8Y9rZ7Kf5qBLCqku3l5doFNqXF4GyN8EdhvNBvaa02Xg KErwOZsC1yYwKUlUUZNeJmmMUjB2mpmn+Lm1U= MIME-Version: 1.0 Received: by 10.223.127.215 with SMTP id h23mr300723fas.126.1311735654531; Tue, 26 Jul 2011 20:00:54 -0700 (PDT) Received: by 10.223.124.67 with HTTP; Tue, 26 Jul 2011 20:00:54 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Jul 2011 22:00:54 -0500 Message-ID: From: Adam Vande More To: dave jones Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: How to get ip address automatically from different dhcp server 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: Wed, 27 Jul 2011 03:00:56 -0000 On Tue, Jul 26, 2011 at 9:49 PM, dave jones wrote: > I cat get an IP address from dhcp server by adding the line in > /etc/rc.conf: > > ifconfig_em0="DHCP" > > If I move my laptop to another place, I have to manually run "dhclient em0" > to get an IP. Otherwise, it won't get an IP automatically. > > My question is it's possible to get ip address automatically from different > dhcp server? thanks. > devd does this. See /etc/devd.conf -- Adam Vande More