*** xref:mods-available/detail.adoc[Detail Module]
*** xref:mods-available/detail.example.com.adoc[Detail Module (Sample)]
*** xref:mods-available/detail.log.adoc[Detail Module (Log Sample)]
-*** xref:mods-available/dhcp_sqlippool.adoc[DHCP SQL-IP-Pool Module]
*** xref:mods-available/dhcpv4.adoc[DHCPv4 Module]
*** xref:mods-available/dict.adoc[Dict Module]
*** xref:mods-available/digest.adoc[Digest Module]
-See raddb/mods-available/dhcp_sqlippool for the IP Pool configuration.
-
-See raddb/policy.d/dhcp_sqlippool for the "glue" code that allows
-the RADIUS based "sqlippool" module to be used for DHCP.
+See raddb/mods-available/sqlippool for the IP Pool configuration.
See raddb/mods-config/sql/ippool/ for the schemas.
dhcp_common
# mac2ip
# &control.IP-Pool.Name := "local"
-# dhcp_sqlippool
+# sqlippool
# &reply.Message-Type = Offer
# ok
}
dhcp_common
# mac2ip
# &control.IP-Pool.Name := "local"
-# dhcp_sqlippool
+# sqlippool
if (ok) {
&reply.Your-IP-Address := "%{&request.Requested-IP-Address || &request.Client-IP-Address}"
}
}
recv Decline {
# &control.IP-Pool.Name := "local"
-# dhcp_sqlippool
+# sqlippool
ok
}
recv Inform {
#}
recv Release {
# &control.IP-Pool.Name := "local"
-# dhcp_sqlippool
+# sqlippool
ok
}
recv Lease-Query {
&reply.Subnet-Mask = 255.255.255.0
&reply.Router-Address = 192.0.2.1
&reply.IP-Address-Lease-Time = 7200
-# &reply.IP-Address-Lease-Time = "${modules.sqlippool[dhcp_sqlippool].lease_duration}"
+# &reply.IP-Address-Lease-Time = "${modules.sqlippool[sqlippool].lease_duration}"
&reply.Server-Identifier = &control.Server-Identifier
}
#
# This is a virtual server that handles DHCP.
#
-# See raddb/mods-available/dhcp_sqlippool for the IP Pool configuration.
-#
-# See raddb/policy.d/dhcp_sqlippool for the "glue" code that allows
-# the RADIUS based "sqlippool" module to be used for DHCP.
+# See raddb/mods-available/sqlippool for the IP Pool configuration.
#
# See raddb/mods-config/sql/ippool/ for the schemas.
#
# Or, allocate IPs from the DHCP pool in SQL. You may need to
# set the pool name here if you haven't set it elsewhere.
# &control.IP-Pool.Name := "local"
-# dhcp_sqlippool
+# sqlippool
# Set the type of packet to send in reply.
#
# Or, allocate IPs from the DHCP pool in SQL. You may need to
# set the pool name here if you haven't set it elsewhere.
# &control.IP-Pool.Name := "local"
-# dhcp_sqlippool
+# sqlippool
if (ok) {
&reply.Your-IP-Address := "%{&request.Requested-IP-Address || &request.Client-IP-Address}"
# If using IPs from a DHCP pool in SQL then you may need to set the
# pool name here if you haven't set it elsewhere and mark the IP as declined.
# &control.IP-Pool.Name := "local"
-# dhcp_sqlippool
+# sqlippool
ok
}
# If using IPs from a DHCP pool in SQL then you may need to set the
# pool name here if you haven't set it elsewhere and release the IP.
# &control.IP-Pool.Name := "local"
-# dhcp_sqlippool
+# sqlippool
ok
}