From owner-freebsd-questions@freebsd.org Wed Feb 15 22:54:58 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F5F9CE06E4 for ; Wed, 15 Feb 2017 22:54:58 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 215DFE83 for ; Wed, 15 Feb 2017 22:54:58 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-it0-x236.google.com with SMTP id c7so5539918itd.1 for ; Wed, 15 Feb 2017 14:54:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=IqLnFtrwlMyvhOe4Aw1u4yff0U5ZNGYRVqJH2sjsi3A=; b=azJn5UAcweityx/tkes8S6h548wdr1FltabKSiqP+S/rJokO6mBs4OXbbjuDww30nf 7dmGExtJlax/NK8Tq4hUFGL88GkGUoJ7EQQQa7sUUvNJACK+5wFMVRhRiHa+OAE4Kl1g 3bI/FSBrEK3ElzrIfqrnSsjaR2NGfF3B3jH+kShzfJKM4sYkNLnsYfrnU8VBZKb4HrPX K3BfQ5LffbJtT4DKk18rKf0vDofmUVOk1a9On0DUdCuey82h+sHKYqvfpkxpqEiUYPf1 y45DRqbV7aiDgkD2MFEcQzeYfL6x5uDnbQ0zHY8ZLqfQtT3CArEWP7f5vSDgkuHzTsxQ NZAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=IqLnFtrwlMyvhOe4Aw1u4yff0U5ZNGYRVqJH2sjsi3A=; b=b/RQsdJYM6JHh1/I5MnI9qCuBPOYC2ZL6/pXcygBQAar6kM2/r27XArXJwRTaTqivA +dITP4DVwBBRD3MAtAYUzFHdjG+3QLiu0ua01eAwmp0T5/ICpmGDJqbmIIjgKI3Ohkz5 /fMql0iZPVkyHacz/69uD2I37XY/fRWyV2DMTcjYrRdTM+mdhIq4gTh7yGlCNDHVNQXO mLF6bMNAFE/Uexn5PlzNirb1hZsFBMMnfxcdGst8lxIS5GJ+/OU+kSw3YQee73bPc94c DTHNqR9JOWFO9BKNGPdvI3oE3q6to5YRXHMSTikR5qbHWtJsB15jWVyfun+RUuS2GXrO fiPg== X-Gm-Message-State: AMke39lYe1nJAm819NNDx8T3bQB9sLZ802zHGYk78L9TEzbXJrGLdtW4zdgJ8gZdRui/d35Ik/8PxbkhHqRIfw== X-Received: by 10.36.166.78 with SMTP id r14mr11092463iti.51.1487199297473; Wed, 15 Feb 2017 14:54:57 -0800 (PST) MIME-Version: 1.0 References: <58A4D488.20709@gmail.com> In-Reply-To: <58A4D488.20709@gmail.com> From: Ben Woods Date: Wed, 15 Feb 2017 22:54:46 +0000 Message-ID: Subject: Re: vimage and ipv4 addresses To: Ernie Luzar , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2017 22:54:58 -0000 On Thu, 16 Feb 2017 at 6:22 am, Ernie Luzar wrote: > Testing RELEASE 11.0 vimage. Using the bridge/epair method to configure > network access for vnet jails. Issuing "ifconfig epairXb ipv4-address" > command. A single ip address works fine, but if I say > 10.0.10.2,10.10.10.3 I get error saying "bad value" If I issue the > ifconfig command two times, once using each ip address then only the > last ip address issued shows on the epairxb ifconfig list in the vnet > jail. Is this telling me that a vnet jail can only have a single ipv4 ip > address? Is the syntax of the command incorrect? > > On the other hand doing basically the same thing with ipv6 does not work > that way. If I issue "ifconfig epairXb int6 ipv6-address" using a single > ipv6 ip address it works fine, but if I say fc00::2,fc00::3 I get error > saying "bad value" If I issue the ifconfig command two times, once using > each ip address then both ipv6 address issued shows on the epairxb > ifconfig list in the vnet jail. > > Any input greatly appreciated I believe you need to use the alias keyword to set multiple ip addresses on an interface. See this handbook article on how to set it in /etc/rc.conf https://www.freebsd.org/doc/handbook/configtuning-virtual-hosts.html See the ifconfig(8) man page for how to set it on the fly: http://man.freebsd.org/ifconfig Good luck! -Ben -- -- From: Benjamin Woods woodsb02@gmail.com