Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to figure out how to assign IP addresses from an ippool to mobile units. Ideally, I would like a unit to receive the same IP at each request. There is no data source to use to populate static entries for each unit, so I would prefer each unit to get an IP assigned from a pool first time it connects and then keep that address.

Currently, I have the following pool:

ippool dapool {
    range-start = X.X.0.5
    range-stop = X.X.0.254
    netmask = 255.255.255.0
    # should have room for all IPs:
    cache-size = 260
    session-db = ${db_dir}/db.ippool
    ip-index = ${db_dir}/db.ipindex
    override = yes
    maximum-timeout = 0
    key = "%{Calling-Station-Id}"
}

I thought that choosing a key that is unique for the requesting unit would do the trick, but apparently not.

1) Is it possible to achieve what I want?

2) Is there any good documentation that I should have read instead of pestering serverfault? I can't seem to find much useful documentation on FreeRadius beyond what is listed in the config files.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I failed to find an answer to this problem and in the end accepted random the semi-random IP assignment that above config resulted in.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.