From owner-freebsd-net@FreeBSD.ORG Tue Mar 20 15:15:47 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EADE106566B for ; Tue, 20 Mar 2012 15:15:47 +0000 (UTC) (envelope-from timon@timon.net.nz) Received: from frost.plasmahost.ru (plasmahost.ru [178.63.60.242]) by mx1.freebsd.org (Postfix) with ESMTP id 9E84E8FC1A for ; Tue, 20 Mar 2012 15:15:46 +0000 (UTC) Received: from timon.home.timon.net.nz ([87.242.97.5]) (AUTH: PLAIN timon@timon.net.nz, TLS: TLSv1/SSLv3, 256bits, CAMELLIA256-SHA) by frost.plasmahost.ru with ESMTPSA; Tue, 20 Mar 2012 15:14:50 +0000 id 0002797C.000000004F689EED.00015879 Message-ID: <4F689DE6.1040103@timon.net.nz> Date: Tue, 20 Mar 2012 19:10:30 +0400 From: Alexandr Matveev User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0) Gecko/20120209 Thunderbird/10.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Assign a large number of IPv6 addresses X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2012 15:15:47 -0000 Hello. I have a IPv6 subnet and I have a number of servers, that act like a accelerator with nginx. Those are behind load-balancers. I give each website a unique combination of IP addresses from a pool (so each website has a different set of four IP addresses). I need to assign those IP addresses to accelerators, so they accept the packets that comes from the balancers. I need to assign all of addresses (500,000 IPs) from IPv6 subnet to a single FreeBSD interface. If I do that, FreeBSD hangs. Right now this is working with IPv4 addresses, but there are only 100 of them. Since IPv6 networks are bigger - more addresses can be added to unique combination. On Linux I can mark this network as 'local', so it accepts all packets that come to those addresses. Can I do this on FreeBSD and how? This is the linux command I use: ip -6 route add local 2a00:15f8:f000::/64 dev eth0 -- Alexandr Matveev