From owner-freebsd-questions@FreeBSD.ORG Fri Sep 4 18:12:56 2009 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 0444D1065670 for ; Fri, 4 Sep 2009 18:12:56 +0000 (UTC) (envelope-from pb@ludd.ltu.se) Received: from mother.ludd.ltu.se (mother.ludd.ltu.se [130.240.16.3]) by mx1.freebsd.org (Postfix) with ESMTP id 84B428FC14 for ; Fri, 4 Sep 2009 18:12:55 +0000 (UTC) Received: from sister.ludd.ltu.se (root@sister.ludd.ltu.se [130.240.16.77]) by mother.ludd.ltu.se (8.13.6+Sun/8.12.10) with ESMTP id n84I2ZM4005871 for ; Fri, 4 Sep 2009 20:02:35 +0200 (MEST) Received: from sister.ludd.ltu.se (pb@localhost [127.0.0.1]) by sister.ludd.ltu.se (8.13.6+Sun/8.12.2) with ESMTP id n84I2Zmw028298 for ; Fri, 4 Sep 2009 20:02:35 +0200 (MEST) Received: (from pb@localhost) by sister.ludd.ltu.se (8.13.6+Sun/8.13.6/Submit) id n84I2YYC028296 for freebsd-questions@freebsd.org; Fri, 4 Sep 2009 20:02:34 +0200 (MEST) From: Peter B Message-Id: <200909041802.n84I2YYC028296@sister.ludd.ltu.se> To: freebsd-questions@freebsd.org Date: Fri, 4 Sep 2009 20:02:34 +0200 (MEST) X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: One MAC, two IP with DHCP (dhclient) how? 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, 04 Sep 2009 18:12:56 -0000 In an enviroment where the ethernet network interface is connected to a public ethernet network (internet). And a IPv4 address assignment scheme is static. One can simple add primary IP by: ifconfig inet 1.2.3.4 And an additional aliases with: ifconfig inet 1.2.3.5 alias This alias IP can then be used within a jail(8) enviroment. So far all is perfectly fine. But in an enviroment where the primary IP is retrieved or set with DHCP by using: dhclient How does one request an additional IP beside the primary one ..? Setting an alias directly with ifconfig won't work because the upstream network won't route it. Should one set an explicit xid or Client ID somehow? and how is that done in such case? (option dhcp-client-identifier data-string; in dhclient.conf)