Freeradius as DHCP server (static IP + some options)
Leo Combes
combesl at gmail.com
Mon Jan 21 21:32:41 CET 2013
Hello.
I successfully run ISC-DHCP server for provisioning modems in an ISP's
network, but what I wanted to try is something more modern and with
database support.
I want to try using Freeradius as DHCP server, but first I want to know if
it is possible with these requirements:
- Need to deliver fixed IP (or static) according to mac-address.
- Need to provide, in addition to the IP, some DHCP options. Option 1
(Subnet mask), Option 3 (Routers), Option 6 (DNS server), Option 15
(Domainname), Option 18 (Extensions path), Option 66 (TFTP server name),
Option120 (SIP Servers DHCP Option).
- The IP and Options corresponding to each mac-address has to be stored in
mysql.
According dhcpdump, the dhcp client request looks like this:
TIME: 2013-01-21 16:23:30.787
IP: 0.0.0.0 (0:13:96:0:f9:84) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: 8e22cb4d
SECS: 0
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 00:13:96:00:f9:84:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 1 (DHCPDISCOVER)
OPTION: 61 ( 8) Client-identifier 01:00:13:96:00:f9:84:00
OPTION: 51 ( 4) IP address leasetime -256 ()
OPTION: 51 ( 4) IP address leasetime -1 ()
OPTION: 55 ( 11) Parameter Request List 1 (Subnet mask)
3 (Routers)
6 (DNS server)
15 (Domainname)
18 (Extensions path)
66 (TFTP server name)
120 (SIP Servers DHCP Option)
135 (???)
213 (???)
214 (???)
215 (???)
Freeradius 2.2.0 can provide this functionality just configuring it, or it
would be necessary to use modules or developments that aren't available yet?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130121/b78b1eae/attachment.html>
More information about the Freeradius-Users
mailing list