![]() |
Note |
---|---|
IP pools can currently only be used with IPv4 DHCP. |
Overview
An IP pool is used to offer other subsystems access to a cache of DHCP IP addresses. These addresses are gathered into a pool by internally maintaining a series of DHCP clients (one DHCP client per IP address). More than one DHCP server can be used by a pool and can either be external or be local DHCP servers defined in cOS Core itself. Multiple IP Pools can be set up with different identifying names.External DHCP servers can be specified in one of two ways:
As the single DHCP server on a specific interface
One or more can be specified by a list of unique IP addresses.
When using a DHCP server that is defined in cOS Core itself, the following should be noted:
The IP address of the server should be specified in the pool as the localhost address object (the loopback IPv4 address 127.0.0.1).
The DHCP server should be configured with its Interface property set to the value core.
Setup of an IP pool using an internally configured DHCP server is further described in an article in the Clavister Knowledge Base at the following link:
https://kb.clavister.com/354854609
IP Pools with IPsec Config Mode
A primary usage of IP Pools is with IKE Config Mode which is a feature used for allocating IP addresses to roaming clients connecting through IPsec tunnels. For more information on this see Section 10.3.11, Config Mode.Basic IP Pool Options
The basic options available for an IP Pool are:Specify DHCP server IP(s) in preferred ascending order to be used. This option is used instead of the behind interface option.
Using the IP loopback address 127.0.0.1 indicates that the DHCP server is cOS Core itself.
This is an optional setting used to specify which offered IPs are acceptable. In most cases this will be set to the default of all-nets so all addresses will be acceptable. Alternatively, a set of acceptable IP ranges can be specified.
This filter option is used in the situation where there may be a DHCP server response with an unacceptable IP address.
Advanced IP Pool Options
Advanced options available for IP Pool configuration are:A "simulated" virtual DHCP server receiving interface. This setting is used to simulate a receiving interface when an IP pool is obtaining IP addresses from internal DHCP servers. This is needed since the filtering criteria of a DHCP server includes a Receive Interface.
An internal DHCP server cannot receive requests from the IP pool subsystem on an interface since both the server and the pool are internal to cOS Core. This setting allows such requests from a pool to appear as though they come from a particular interface so that the relevant DHCP server will respond.
Memory Allocation for Prefetched Leases
As mentioned in the previous section, the Prefetched Leases option specifies the size of the cache of leases which is maintained by cOS Core. This cache provides fast lease allocation and can improve overall system performance. It should be noted however that the entire prefetched number of leases is requested at system startup and if this number is too large then this can degrade initial performance.As leases in the prefetch cache are allocated, requests are made to DHCP servers so that the cache is always full. The administrator therefore has to make a judgment as to the optimal initial size of the prefetch cache.
Listing IP Pool Status
The CLI command ippools can be used to look at the current status of an IP pool. The simplest form of the command is:Device:/>
ippool -show
This displays all the configured IP pools along with their status. The status information
is divided into four parts:
Zombies - The number of allocated but inactive addresses.
In progress - The number of addresses that are in the process of being allocated.
Free maintained in pool - The number of addresses that are available for allocation.
Used by subsystems - The number of addresses that are allocated and active.
Other options in the ippool command allow the administrator to change the pool size and to free up IP addresses. The complete list of command options can be found in the CLI Reference Guide.
Example 5.5. Creating an IP Pool
This example shows the creation of an IP Pool object that will use the DHCP server on IP address 28.10.14.1 with 10 prefetched leases. It is assumed that this IP address is already defined in the address book as an IP object called ippool_dhcp
Command-Line Interface
Device:/>
add IPPool ip_pool_1
DHCPServerType=ServerIP
ServerIP=ippool_dhcp
PrefetchLeases=10
InControl
Follow similar steps to those used for the Web Interface below.
Web Interface