2 ######################################################################
4 # This is a virtual server that handles DHCP.
8 # This code is experimental, and SHOULD NOT be used in a
9 # production system. It is intended for validation and
10 # experimentation ONLY.
12 # In order for this to work, you will need to run configure:
14 # $ ./configure --with-dhcp
16 # $ vi share/dictionary
18 # ## Un-comment the line containing $INCLUDE dictionary.dhcp
19 # ## Then, save the file.
23 # DHCP is NOT enabled by default.
25 # The goal of this effort is to get the code in front of
26 # people who are interested in another DHCP server.
27 # We NEED FEEDBACK, patches, bug reports, etc. Especially patches!
29 # Please contribute, or this work will be nothing more than
34 # A: It allows the server to receive DHCP packets, and to
35 # respond with static, pre-configured DHCP responses.
37 # Q: Does it do static/dynamic IP assignment?
38 # A: No. Or, maybe. Try it and see.
40 # Q: Does it read ISC configuration or lease files?
41 # A: No. Please submit patches.
43 # Q: Does it have DHCP feature X?
44 # A: No. Please submit patches.
46 # Q: Does it support option 82?
49 # Q: Does it support other options?
50 # A: Maybe. See dictionary.dhcp. Please submit patches.
52 # Q: It doesn't seem to do much of anything!
57 ######################################################################
60 # The DHCP functionality goes into a virtual server.
64 # Define a DHCP socket.
66 # The default port below is 6700, so you don't break your network.
67 # If you want it to do real DHCP, change this to 67, and good luck!
69 # You can also bind the DHCP socket to an interface.
70 # See below, and raddb/radiusd.conf for examples.
72 # This lets you run *one* DHCP server instance and have it listen on
73 # multiple interfaces, each with a separate policy.
75 # If you have multiple interfaces, it is a good idea to bind the
76 # listen section to an interface. You will likely also need one
77 # listen section per interface.
85 # Packets received on the socket will be processed through one
86 # of the following sections, named after the DHCP packet type.
87 # See dictionary.dhcp for the packet types.
90 DHCP-Message-Type = DHCP-Offer
93 # The contents here are invented. Change them!
95 DHCP-Domain-Name-Server = 127.0.0.1
96 DHCP-Domain-Name-Server = 127.0.0.2
97 DHCP-Subnet-Mask = 255.255.255.0
98 DHCP-Router-Address = 192.168.1.1
99 DHCP-IP-Address-Lease-Time = 86400
100 DHCP-DHCP-Server-Identifier = 192.168.1.1
103 # Do a simple mapping of MAC to assigned IP.
105 # See below for the definition of the "mac2ip"
110 # If the MAC wasn't found in that list, do something else.
111 # You could call a Perl, Python, or Java script here.
122 DHCP-Message-Type = DHCP-Ack
125 # The contents here are invented. Change them!
127 DHCP-Domain-Name-Server = 127.0.0.1
128 DHCP-Domain-Name-Server = 127.0.0.2
129 DHCP-Subnet-Mask = 255.255.255.0
130 DHCP-Router-Address = 192.168.1.1
131 DHCP-IP-Address-Lease-Time = 86400
132 DHCP-DHCP-Server-Identifier = 192.168.1.1
135 # Do a simple mapping of MAC to assigned IP.
137 # See below for the definition of the "mac2ip"
142 # If the MAC wasn't found in that list, do something else.
143 # You could call a Perl, Python, or Java script here.
152 # If there's no named section for the packet type, then the packet
153 # is processed through this section.
162 ######################################################################
164 # This next section is a sample configuration for the "passwd"
165 # module, that reads flat-text files. It should go into
166 # radiusd.conf, in the "modules" section.
168 # The file is in the format <mac>,<ip>
170 # 00:01:02:03:04:05,192.168.1.100
171 # 01:01:02:03:04:05,192.168.1.101
172 # 02:01:02:03:04:05,192.168.1.102
174 # This lets you perform simple static IP assignment.
176 ######################################################################
179 # filename = ${confdir}/mac2ip
180 # format = "*DHCP-Client-Hardware-Address:=DHCP-Your-IP-Address"