IP Address Ranges

A common requirement is for a network segment in which some hosts are always present and have fixed addresses (either fixed in their own configurations or fixed addresses provided by DHCP). In such cases, you need to restrict the range of addresses that is offered by DHCP. This is done using the range keyword as in the example file in the preceding section:

range 192.168.1.16 192.168.1.127;

This means that dynamic addresses between 192.168.1.16 and 192.168.1.127 will be provided to clients that request an address.

Note that like most of the configuration file, this line is enclosed within the subnet declaration:

subnet 192.168.1.0 netmask 255.255.255.0 { }

Was this article helpful?

0 0

Post a comment