From owner-freebsd-questions@FreeBSD.ORG Wed Jul 27 08:17:07 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 AC72E106564A for ; Wed, 27 Jul 2011 08:17:07 +0000 (UTC) (envelope-from cybernautape@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7A42E8FC0A for ; Wed, 27 Jul 2011 08:17:07 +0000 (UTC) Received: by iyb11 with SMTP id 11so2030027iyb.13 for ; Wed, 27 Jul 2011 01:17:06 -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=skTe9zNun0kVXeh2KUkbCQazsCK6HeTCB6hMZNIt/3M=; b=YjAJroLiLx3e1HZKTtW6cx+xvNrW3zBU2NWcSVZmAARozcBfjYt1P3RVThoyHatWnY qU9muyOIBF4yaxD+KCII8zzSJZw874Xop0nMiQlRsHcFU9kmaNiLyz7NPzGE1CAfLeHN R9NAd/hUdX2nWBquYgd9fx2tbiUuya8aE92iE= MIME-Version: 1.0 Received: by 10.42.162.73 with SMTP id w9mr312368icx.417.1311754626203; Wed, 27 Jul 2011 01:17:06 -0700 (PDT) Received: by 10.43.132.68 with HTTP; Wed, 27 Jul 2011 01:17:06 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 Jul 2011 03:17:06 -0500 Message-ID: From: Edgar Rodolfo To: dave jones Content-Type: text/plain; charset=ISO-8859-1 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 08:17:07 -0000 2011/7/26, dave jones : > Hi, > > 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. of course, if you system FreeBSD has ifconfig_em0="DHCP" enable, it will recive parameters as ip, dns, gateway; is necessary that where you connect your laptop e.g. router or switch, should be the network working with some dhcp server, many router for default have it enable... > > Regards, > Dave. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Edguitar ;) http://cybernautape.blogspot.com