[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


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.



Table 72: pool.dhc [Settings] Syntax 
Parameter
Function

LeaseTime

Set to the lease time, in seconds, to request from the DHCP server.

Default value is 1 day.

MinLeaseTime

Set to the minimum lease time, in seconds. Offers from DHCP servers with lease time less than this minimum are ignored.

Default value is the value set for LeaseTime.

TargetAddress

Set to the address to which DISCOVER messages are sent.

Default value is 255.255.255.255, the local broadcast address.

This entry should normally remain unchanged, to allow DHCP DISCOVER messages to be broadcast.


[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 value
DCHP option = RADIUS attribute or literal value
M

The DHCP option contains of the following fields (brackets ([ ]) indicate optional text). Fields are not separated by spaces.

[vendor-specific] option [offset] format



Table 73: pool.dhc [Request] Syntax 
Parameter
Function

vendor-specific

Set to v if this is a vendor-specific option, or omit otherwise.

option

Set to the DHCP option in the format, nnn.

offset

Set to a period followed by the number of bytes into the option where the value is located, or a plus-sign (+) to indicate a list of values in the DHCP option - each to be mapped to an instance of the RADIUS attribute.

format

Set to the format of the DHCP option, which can be one of the following:

  • n32—a 32-bit integer
  • n16—    16-bit integer
  • n8    —8-bit integer
  • s or string    —string
  • i or ip—    IP address

The following are examples of DCHP option fields:

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:

The text can include escape sequences, where the backslash character (\) is the escape character. Table 74 lists escape sequences.

Table 74: Escape Code Sequences  
Escape Code
Function

\a

7

\b

8

\f

12

\n

10

\r

13

\t

9

\y

11

\nnn

A decimal value between 0 and 255.

\xnn

A hexadecimal value between 00 and FF

\\

A literal backslash \

\"

A double-quote

\char

A single character, interpreted literally



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-Id
60s = "\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 option
RADIUS attribute = DHCP option
M

See the [Request] section for information on how to specify the RADIUS attribute and the DHCP option values.

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 = 1ip
Framed-MTU = 26n16

Reconfiguring 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:

  1. Modify the dhcp.ini file and the pool.dhc files as required.
  2. Restart the RADIUS process by issuing the HUP signal to the Steel-Belted Radius Carrier process:

kill -HUP ProcessID

Steel-Belted Radius Carrier reads the modified files and configures its DHCP pools.


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]