From owner-freebsd-questions@FreeBSD.ORG Wed Jul 27 02:49:44 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 6A932106566B for ; Wed, 27 Jul 2011 02:49:44 +0000 (UTC) (envelope-from s.dave.jones@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2A5238FC0C for ; Wed, 27 Jul 2011 02:49:43 +0000 (UTC) Received: by vxg33 with SMTP id 33so1118700vxg.13 for ; Tue, 26 Jul 2011 19:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Yv6HG11y7noFDqy1jipMcXSW4KbgwQIoarv8ugrHie4=; b=VKGqcFMcwi+J/Ri8OrxU+ZDTQZrV8DlJGavgyIgANLq+JjTLwb6cj/xNBbgHLsPvJN 5BIlm9OXCzfapNSyCSlW7IBPAIZL9NqwNQcuIiyQvXS2VV+jPoDQWxrjjXGsWY/3E7ql aaDVEhT/zccFTbxR/HAZWXeQye/U0xSsAlvvM= MIME-Version: 1.0 Received: by 10.52.188.68 with SMTP id fy4mr6640406vdc.91.1311734982426; Tue, 26 Jul 2011 19:49:42 -0700 (PDT) Received: by 10.52.111.162 with HTTP; Tue, 26 Jul 2011 19:49:42 -0700 (PDT) Date: Wed, 27 Jul 2011 10:49:42 +0800 Message-ID: From: dave jones To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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 02:49:44 -0000 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. Regards, Dave.