From owner-freebsd-questions@freebsd.org Thu Feb 16 14:41:18 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 879D6CE1962 for ; Thu, 16 Feb 2017 14:41:18 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (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 4A5061A9D for ; Thu, 16 Feb 2017 14:41:18 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x235.google.com with SMTP id x75so26674187itb.0 for ; Thu, 16 Feb 2017 06:41:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=LxzWzU7UMQDu2nIZtthpL8AE2Snp+xvci+ICPds9LaQ=; b=W9OBu+P++Vt+PZ/or9g3NfoNVdhoCM2mZ4sYpcvnAByXTqTDujd+wMaWubPhNfmRxn XGeQPjyMBYMOFSnAfqT3xS5zcgaseGJnZZqaK2WJnjzFjRHg8BlHtbsNqSmp22OYqnyW sq0VcqW7tLppFKzlmCyMQzcWGjQKnrbHWvOlCVdlMVAw2/sCJ+YThQrlP6lncFhIoYwf /DF34Z52p7LipgMP3iHWnPa+QcV3O3cBr9YHQob0IbQ+krkQ8CMzFdzi+HwhimFBtG4d TH6TWzi0vB4dKOZek3C7LP6FaV//8LqYVp0TkzJb8TIQvRlLkEASYF+h+jTpcOYYdeRQ pxiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=LxzWzU7UMQDu2nIZtthpL8AE2Snp+xvci+ICPds9LaQ=; b=XYdaADNYabJLET+/1oPIkppnzsCRPqJNcEttfW34xXZ9sHoVo5x8lOhcYeuauekdob ShhHR2iWI+dGIE+tedSP/K01xzr7WZNJUYbm7ELa87sjHPakihCQ7yObUt8vRJFHp5Qq P+yOZGN0GbOrYkC1XD3HDzSq8oSqGQcg+uiiGJZ8NLmO4+3qXSib4T+8jbcYTzFH2ECy kdyMk+9dQUoq1zD2o9CrE9v/ACTMigIJzMopAjER+t0vSmeISs7/CMbKh33kPqo5w0j3 MG1I2inKofuKH221DAb/qU6PGXBlIoSwpnVf27rZQGpNvs/HhjZw8kfqGg53BOvql3w7 XOUQ== X-Gm-Message-State: AMke39lN40SQKf9Du/Y+tQAXMNA9DqaXKGMK7pqQfHloYXA0yi/UQKyksxzvVdCfMM2BxQ== X-Received: by 10.36.17.9 with SMTP id 9mr14502700itf.84.1487256077788; Thu, 16 Feb 2017 06:41:17 -0800 (PST) Received: from [10.0.10.3] (cpe-24-165-207-226.neo.res.rr.com. [24.165.207.226]) by smtp.googlemail.com with ESMTPSA id d143sm3313524iod.18.2017.02.16.06.41.17 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 06:41:17 -0800 (PST) Message-ID: <58A5BA14.60106@gmail.com> Date: Thu, 16 Feb 2017 09:41:24 -0500 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Ben Woods CC: "freebsd-questions@freebsd.org" Subject: Re: vimage and ipv4 addresses References: <58A4D488.20709@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 16 Feb 2017 14:41:18 -0000 Ben Woods wrote: > > 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 Thanks that was the solution. First ipv4 address without alias and the remaining ipv4 addresses as an alias. This also works for ipv6.