From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 08:24:25 2008 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 51A841065699 for ; Mon, 27 Oct 2008 08:24:25 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2D1578FC0C for ; Mon, 27 Oct 2008 08:24:23 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPA id 226200652; Mon, 27 Oct 2008 10:24:23 +0200 Message-ID: <49057AB6.7040701@FreeBSD.org> Date: Mon, 27 Oct 2008 10:24:22 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: Ganbold References: <49053DC1.8060101@micom.mng.net> In-Reply-To: <49053DC1.8060101@micom.mng.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 27 Oct 2008 11:22:03 +0000 Cc: "freebsd-net@freebsd.org" Subject: Re: multiple IP pools in mpd5 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: Mon, 27 Oct 2008 08:24:25 -0000 Hi. Ganbold wrote: > Is it possible to specify multiple IP pools in mpd5? Yes. It supports both multiple pools and multiple subnets in a pool. > Something like: > > set ippool add pool1 102.179.16.20 102.179.17.254 > set ippool add pool1 102.179.17.1 102.179.17.254 > > set ipcp ranges 102.179.16.13/32 ippool pool1 > > Or: > > set ippool add pool1 102.179.16.20 102.179.17.254 > set ippool add pool2 102.179.17.1 102.179.17.254 > > set ipcp ranges 102.179.16.13/32 ippool pool1 pool2 > > Which one is correct syntax? First one. But you have made mistake in address ranges as they are overlapping. Probably you have meant: set ippool add pool1 102.179.16.20 102.179.16.254 set ippool add pool1 102.179.17.1 102.179.17.254 set ipcp ranges 102.179.16.13/32 ippool pool1 -- Alexander Motin