pool.dhc Files
Each pool listed in the [Pools] section of the dhcp.ini file must be a corresponding
pool.dhc file that configures that pool.[Settings] Section
The [Settings] section of the
pool.dhc file (Table 72) controls DHCP lease information.
[Request] Section
The [Request] section allows options in the DHCP DISCOVER and REQUEST messages to be constructed from attributes in the RADIUS Access-Request and from pre-configured literal values in the following way:
[Request]DHCP option=RADIUS attribute or literal valueDCHP option=RADIUS attribute or literal valueMThe
DHCP optioncontains of the following fields (brackets ([ ]) indicate optional text). Fields are not separated by spaces.[vendor-specific]option[offset]format
The following are examples of
DCHP optionfields:
- 1ip (The "Subnet Mask" option as an IP address)
- 3+ip (The "Router" option as a list of IP address, each to be mapped to an instance of the RADIUS attribute)
- 6.4ip (The "DNS Server" option as a second IP address in list (each IP address is 4 bytes))
- 12s (The "Host Name" as a string)
The RADIUS attribute can be set to the name of any attribute defined in any dictionary. A literal value can be specified instead of a RADIUS attribute. This value must be text enclosed in double-quotes ("").
The string is interpreted based on the format of the DHCP option:
- IP addresses must be specified in dotted notation; for example, 127.0.0.1 for IPv4 networks.
- Integers are expressed in decimal format; for example, 100.
- Strings are expressed as any text sequence.
The text can include escape sequences, where the backslash character (\) is the escape character. Table 74 lists escape sequences.
NOTE: You must use an escape character to include a literal backslash (\) or double-quote (") in the string.
An escape sequence can be used to set an option to an arbitrary binary value. This is useful, for example, when setting the Vendor Class Identifier option (60).
The following example sets the DHCP Host Name option to the RADIUS Calling-Station-Id, and sets the DHCP Vendor Class Identifier option to a binary string:
[Request]12s = Calling-Station-Id60s = "\x01\x02\x03\x04\x05"[Reply] Section
The [Reply] section allows RADIUS Access-Accept attributes to be constructed from options the DHCP server returns in an ACK message, in the following way:
[Reply]RADIUS attribute=DHCP optionRADIUS attribute=DHCP optionMSee the [Request] section for information on how to specify the
RADIUS attributeand theDHCP optionvalues.
NOTE: In contrast to the [Request] section, the left and right sides of the equal sign are reversed to account for the direction in which the data is being set.
The following example returns the RADIUS Framed-IP-Netmask attribute from the DHCP Subnet Mask option and sets the RADIUS Framed-MTU attribute from the DHCP Interface MTU option:
[Reply]Framed-IP-Netmask = 1ipFramed-MTU = 26n16Reconfiguring Pools
DHCP pool information is loaded at startup from the dhcp.ini file and all associated
pool.dhc files. DHCP pools can be added, deleted, and modified dynamically by doing the following:
- Modify the dhcp.ini file and the
pool.dhc files as required.- Restart the RADIUS process by issuing the HUP signal to the Steel-Belted Radius Carrier process:
Steel-Belted Radius Carrier reads the modified files and configures its DHCP pools.