On Fri, 3 May 2002, Ben Casado wrote:

> This is what we have did to the radiusd.conf file. With this we only get
> addresses form that range, and that is not what we want.
>
> ===================
>         ippool {
>                 session-db = "manati.db"
>                 ip-index =  196.12.162.64
>                 range-start = 196.12.162.65
>                 range-stop = 196.12.162.126
>                 netmask = 255.255.255.224
>                 cache-size = 5000
>         }
>
> ===================
>
> we have tried various things but cannot get it to give addresses based on
> the nas identifier. what are we doing wrong?
>
> Thanks
>
> Ben

That's not the idea behind the ip_pool module. The idea is to assign ip's from
the same pool to all the access servers and not maintain separate pools for each
nas. In any case if you want to assign different addresses to each nas you can
create one instance of the ippool module for each nas. Then in your authorize
section make sure you have the files (users file) module before the ip pool
modules. In your users file do something like this:

DEFAULT NAS-IP-Address == 66.108.198.79, Pool-Name := "pool1"

DEFAULT NAS-IP-Address == 66.108.198.80, Pool-Name := "pool2"

while your authorize section will look like this:

authorize {
        files
        pool1
        pool2
        [...]
}

--
Kostas Kalevras         Network Operations Center
[EMAIL PROTECTED]      National Technical University of Athens, Greece
Work Phone:             +30 10 7721861
'Go back to the shadow' Gandalf




- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to