From owner-freebsd-net@FreeBSD.ORG Wed Jul 25 10:33:20 2007 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 C1B6016A417 for ; Wed, 25 Jul 2007 10:33:20 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.freebsd.org (Postfix) with ESMTP id 71FC913C467 for ; Wed, 25 Jul 2007 10:33:20 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=daemon.micom.mng.net) by publicd.ub.mng.net with esmtpa (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IDdoZ-0008yT-UN; Wed, 25 Jul 2007 18:09:55 +0800 Message-ID: <46A72173.7070907@micom.mng.net> Date: Wed, 25 Jul 2007 18:09:55 +0800 From: Ganbold User-Agent: Thunderbird 2.0.0.5 (X11/20070724) MIME-Version: 1.0 To: Alexander Motin References: <1159971789.00612536.1159960802@10.7.7.3> <4524055D.7060906@mavhome.dp.ua> <4529C408.5070807@micom.mng.net> <452A008B.8040804@mavhome.dp.ua> <452A0F2A.3000901@micom.mng.net> <452A164A.9080507@mavhome.dp.ua> <45814888.1060301@micom.mng.net> <45814B40.4080004@mavhome.dp.ua> In-Reply-To: <45814B40.4080004@mavhome.dp.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: mpd and vlan 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: Wed, 25 Jul 2007 10:33:20 -0000 Alexander Motin wrote: > Hi. > > Ganbold wrote: >> Is it possible to give static IP addresses to the users using mpd? >> How it should be done? User is authenticating with radius server. > > Your RADIUS server should send FRAMED_IP_ADDRESS attribute to mpd > specifying required IP address. When mpd will get that attribute it > will propose it to client instead of specified in "set ipcp ranges" > option. > I tried it in mpd-3.18, Radius server sends Framed IP Address, however mpd still assigns IP specified in "set ipcp ranges 192.168.5.2/32 192.168.5.169/25" What could be a problem? How to solve this issue? thanks, Ganbold -- Science! true daughter of Old Time thou art! Who alterest all things with thy peering eyes. Why preyest thou thus upon the poet's heart, Vulture, whose wings are dull realities? How should he love thee? or how deem thee wise? Who wouldst not leave him in his wandering To seek for treasure in the jewelled skies, Albeit he soared with an undaunted wing? Hast thou not dragged Diana from her car? And driven the Hamadryad from the wood To seek a shelter in some happier star? Hast thou not torn the Naiad from her flood, The Elfin from the green grass, and from me The summer dream beneath the tamarind tree? -- Edgar Allen Poe, "Science, a Sonnet"