rlm_redis_ippool_tool

O'Connell, Ryan ryan.oconnell at viasat.com
Wed Mar 9 01:07:59 CET 2016


Thanks guys.  I was able to get it work like this.

[root at dhcp02 ~]# rlm_redis_ippool_tool -x -a 192.0.1.0/29 127.0.0.1:6379 local
rlm_redis_ippool_tool [1] - Opening additional connection (0), 1 of 10 pending slots used
Adding 192.0.1.0 to pool "{local}:pool" (13)
Adding 192.0.1.1 to pool "{local}:pool" (13)
Adding 192.0.1.2 to pool "{local}:pool" (13)
Adding 192.0.1.3 to pool "{local}:pool" (13)
Adding 192.0.1.4 to pool "{local}:pool" (13)
Adding 192.0.1.5 to pool "{local}:pool" (13)
Adding 192.0.1.6 to pool "{local}:pool" (13)
Added 7 address(es)/prefix(es)


I think I got confused because “man rlm_redis_ippool_tool” says that “-a” is for “print all active entries”.

Thanks,
Ryan






On 3/8/16, 3:51 PM, "Freeradius-Users on behalf of Arran Cudbard-Bell" <freeradius-users-bounces+ryan.oconnell=viasat.com at lists.freeradius.org on behalf of a.cudbardb at freeradius.org> wrote:

>
>> On 8 Mar 2016, at 18:50, Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:
>> 
>> 
>>> On 8 Mar 2016, at 17:06, O'Connell, Ryan <ryan.oconnell at viasat.com> wrote:
>>> 
>>> Looking for an example/guidance of using the rim_redis_ippool_tool to add a subnet to a fresh installation (Redis running localhost)?  I have the (3.1.0) server up and connected to Redis and can submit a simulated request but there are no IP’s to assign.  I have tried following the help (-h) and man pages for the tool without success.  Debug output below.
>> 
>> 
>> -f is for specifying server connections options, not lease information.
>> 
>> You should use -a to add additional IP addresses to the pool.
>> 
>> rlm_redis_ippool_tool -x -a 192.0.2.0/24 127.0.0.1:6379
>> 
>> Note: With CIDR format the broadcast address will not be added.
>> 
>> You can mask of starting addresses for routers like this
>> 
>> rlm_redis_ippool_tool -x -a 192.0.2.5/24 127.0.0.1:6379
>> 
>> 192.168.2.5-192.168.2.254
>> 
>> And manually mask off end addresses with a range e.g.
>> 
>> rlm_redis_ippool_tool -x -a 192.168.2.5-192.168.2.200 127.0.0.1:6379
>
>Also need to add the pol name as the last argument of all those commands
>
>Arran Cudbard-Bell <a.cudbardb at freeradius.org>
>FreeRADIUS development team
>
>FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
>



More information about the Freeradius-Users mailing list