From owner-freebsd-questions@FreeBSD.ORG Fri Feb 11 14:32:16 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 B9BD51065673 for ; Fri, 11 Feb 2011 14:32:16 +0000 (UTC) (envelope-from universite@ukr.net) Received: from otrada.od.ua (universite-1-pt.tunnel.tserv24.sto1.ipv6.he.net [IPv6:2001:470:27:140::2]) by mx1.freebsd.org (Postfix) with ESMTP id 269EF8FC13 for ; Fri, 11 Feb 2011 14:32:15 +0000 (UTC) Received: from [10.0.0.10] (phenom.otrada.od.ua [10.0.0.10]) (authenticated bits=0) by otrada.od.ua (8.14.4/8.14.4) with ESMTP id p1BEWA9n017641 for ; Fri, 11 Feb 2011 16:32:10 +0200 (EET) (envelope-from universite@ukr.net) X-Authentication-Warning: otrada.od.ua: Host phenom.otrada.od.ua [10.0.0.10] claimed to be [10.0.0.10] Message-ID: <4D55485F.5050301@ukr.net> Date: Fri, 11 Feb 2011 16:31:59 +0200 From: "Vladislav V. Prodan" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4D547675.60506@ukr.net> <4D54D22F.2060607@infracaninophile.co.uk> <4D5531D3.8040906@ukr.net> <4D5538DF.2050309@gmail.com> In-Reply-To: <4D5538DF.2050309@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED,AWL autolearn=failed version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mary-teresa.otrada.od.ua X-Virus-Scanned: clamav-milter 0.97 at mary-teresa.otrada.od.ua X-Virus-Status: Clean Subject: Re: how to add a few hundred ip on one interface? 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, 11 Feb 2011 14:32:16 -0000 11.02.2011 15:25, Guillermo Fernando Cotone wrote: > On 02/11/2011 09:55 AM, Vladislav V. Prodan wrote: >> And this construction work? >> >> ipv4_addrs_ed0="192.0.2.129/27 192.0.2.1-2/28 192.0.2.4-5/28" >> > It would work only if all the IPs were on the same subnet. If you want > to use different subnets you need to implement vlans on that interface > first. > man rc.conf ... One can configure more than one IPv4 address with the ipv4_addrs_ variable. One or more IP addresses must be provided in Classless Inter-Domain Routing (CIDR) address notation, whose last byte can be a range like 192.0.2.5-23/24. In this case the address 192.0.2.5 will be configured with the netmask /24 and the addresses 192.0.2.6 to 192.0.2.23 with the non-conflicting netmask /32 as explained in the ifconfig(8) alias section. With the inter- face in question being ed0, an example could look like: ipv4_addrs_ed0="192.0.2.129/27 192.0.2.1-5/28" ... -- Vladislav V. Prodan VVP24-UANIC +38[067]4584408 +38[099]4060508 vlad11@jabber.ru