(RADIATOR) DHCP configuration questions

Ingvar Bjarnason ingvarbj at centrum.is
Thu Oct 2 16:05:40 CDT 2003


Hi Wyman,

    We tried the DHCP approach for dynamic ip assignments but gave up
because of performance issues (dhcpd was overrun when the number of requests
exceeded a certain limit).   We are currently using a MySQL table for ip
assignments.   You can use radiators built in logic to separate your users
into groups and just use an authby inside a handler for assignments each
time specifying a separate pool.   You can also have multiple
AddressAllocator clauses if you want to set different timeout values.

            Hope this helps.
                                                  Ingvar


        <AuthBy DYNADDRESS>
                AddressAllocator adsldhcpallocator
                PoolHint XDSL1
                MapAttribute   yiaddr, Framed-IP-Address
                MapAttribute   subnetmask, Framed-IP-Netmask
                StripFromReply PoolHint
        </AuthBy>

# Assignment of addresses from SQL server pool
#
<AddressAllocator SQL>
        Identifier xdsldhcpallocator
        DBSource        dbi:mysql:radius:192.168.10.10
        DBUsername      xxxxxx
        DBAuth              xxxxxx
        Timeout 10
        FailureBackoffTime 120
        DefaultLeasePeriod   8640000
        LeaseReclaimInterval 8640000
        FindQuery   select TIME_STAMP, YIADDR, SUBNETMASK, DNSSERVER from
RADPOOL where POOL='%0' and STATE=0 order by TIME_STAMP LIMIT 1
        AllocateQuery   update RADPOOL set STATE=1,TIME_STAMP=%0, EXPIRY=%1,
USERNAME='%U' where YIADDR='%3' and STATE=0 and TIME_STAMP %4
        ReclaimQuery  select database()
        <AddressPool XDSL1>
                Subnetmask      255.255.255.255
                Range 157.157.124.1 157.157.124.254
                Range 157.157.125.1 157.157.125.254
        </AddressPool>
        <AddressPool XDSL2>
                Subnetmask      255.255.255.255
                Range 157.157.124.1 157.157.124.254
                Range 157.157.125.1 157.157.125.254
        </AddressPool>
</AddressAllocator>



mysql> describe RADPOOL;
+------------+----------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+----------+------+-----+---------+-------+
| STATE | int(11) | | | 0 | |
| TIME_STAMP | int(11) | YES | | NULL | |
| EXPIRY | int(11) | YES | | NULL | |
| USERNAME | char(50) | YES | MUL | NULL | |
| POOL | char(50) | | | | |
| YIADDR | char(50) | | PRI | | |
| SUBNETMASK | char(50) | | | | |
| DNSSERVER | char(50) | YES | | NULL | |
+------------+----------+------+-----+---------+-------+
8 rows in set (0.00 sec)



----- Original Message ----- 
From: "Wyman Eric Miles" <wymanm at is.rice.edu>
To: <radiator at open.com.au>
Sent: Thursday, October 02, 2003 6:33 PM
Subject: (RADIATOR) DHCP configuration questions


>
> We're using the latest Radiator and ISC DHCP servers under Solaris.
>
> I've scoured the Radiator documentation, the archives of this mailing
> list, and the archives of the ISC mailing list, and haven't been able to
> piece together enough useful information to answer the following:
>
> 1) We'd like to have a series of groups, each with different configuration
> options -- session timeout, dynamic address IP range, password for
> accessing that group, etc.
>
> How do we define those, both in the radius.cfg and the syntax of the file
> itself?
>
> 2) For each of those groups, we'd like to call upon an ISC DHCP server on
> another host to assign an address appropriate to the group definition.
>
> What's that config look like, both in radius and in dhcpd.conf?
>
> I've experimented with ISC's class definitions, to no avail, primarily
> because I can't figure out how to get Radiator to a) get the necessary
> per-user config from an external file or files and b) pass it along to the
> DHCP server in the proper format.
>
> Has anyone done this?  Does anyone have any examples to share?
>
>
> Wyman Miles
> Manager of Infrastructure, Rice University, Texas.
> (713) 348-5827, e-mail:wymanm at rice.edu, pager:wymanm at pager.rice.edu
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.
>

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list