hi list! i've two services: radius server and dhcp server. does anyone know if i can assign static address according to realm and not to mac? thanks in advance and best regards, marco -- 4it *4IT **S.r.l. **Marco Perugini* *| system administrator** * --------------------------------------------------------- Via Udine 30-36, 00161 Roma Phone +39 06 97601680 Mobile +39 339.39.81.246 Fax +39 06 97601683 m.perugini@4it.it <mailto:m.perugini@4it.it> www.4it.it <http://www.4it.it/> "Il presente messaggio e gli eventuali allegati sono di natura confidenziale. Qualora vi fosse pervenuto per errore, vi preghiamo di cancellarlo immediatamente dal vostro sistema e di avvisare il mittente. Grazie." "This electronic mail transmission and any accompanying attachments contain confidential information. If you have received this communication in error, please immediately delete the E-mail and either notify the sender. Thank you."
hi alan, first of all thanks for your feedback! now i'm going to explain better: i'm in WiMax context with freeradius 2.1.1 and i want to differentiate several clients to assign addresses according with realm; here's an example: i've client1@realm1, client2@realm1 and client3@realm1 and there's also client4@realm2. now i'd love that my dhcp assigns IPs from 10.x.x.x pool to the realm1's clients and IPs from 20.x.x.x pool to the realm2's client. so do you know if it's possible to do with classic dhcp server [dhcpd]? or with freeradius's embedded dhcp server? or i'm guessing something impossible? thanks in advance for your attention and sorry for my bad english, marco Alan DeKok ha scritto:
marco perugini wrote:
hi list! i've two services: radius server and dhcp server. does anyone know if i can assign static address according to realm and not to mac?
The DHCP side of the server can assign IP's based on whatever you want.
Alan DeKok.
-- 4it *4IT **S.r.l. **Marco Perugini* *| system administrator** * --------------------------------------------------------- Via Udine 30-36, 00161 Roma Phone +39 06 97601680 Mobile +39 339.39.81.246 Fax +39 06 97601683 m.perugini@4it.it <mailto:m.perugini@4it.it> www.4it.it <http://www.4it.it/> "Il presente messaggio e gli eventuali allegati sono di natura confidenziale. Qualora vi fosse pervenuto per errore, vi preghiamo di cancellarlo immediatamente dal vostro sistema e di avvisare il mittente. Grazie." "This electronic mail transmission and any accompanying attachments contain confidential information. If you have received this communication in error, please immediately delete the E-mail and either notify the sender. Thank you."
marco perugini wrote:
hi alan, first of all thanks for your feedback! now i'm going to explain better: i'm in WiMax context with freeradius 2.1.1 and i want to differentiate several clients to assign addresses according with realm; here's an example: i've client1@realm1, client2@realm1 and client3@realm1 and there's also client4@realm2. now i'd love that my dhcp assigns IPs from 10.x.x.x pool to the realm1's clients and IPs from 20.x.x.x pool to the realm2's client.
Ah. That's a very good use-case.
so do you know if it's possible to do with classic dhcp server [dhcpd]?
No. It's pretty much impossible.
or with freeradius's embedded dhcp server? or i'm guessing something impossible?
It's possible, but it requires some code changes. The server can send and receive DHCP packets. It can allocate IPs from SQL for RADIUS queries. But it can't yet allocate IPs from SQL for DHCP packets. What you *can* do is allocate IPs when the user logs in. The NAS will ignore the IP address in the Access-Accept, but the IP will still be in the SQL database. Then, when the DHCP packet comes in, SELECT the IP based on the MAC address, and return it to the user. This should actually work in the current server... Alan DeKok.
participants (2)
-
Alan DeKok -
marco perugini