Subnet Statement

Every DHCP server must have a subnet statement. This statement tells the server which subnet it is serving. Inside is the range of addresses that are available, as are any options or declarations that are different from the global section. The subnet statement displays all the options and declarations that pertain to it in braces (see Listing 23.3).

Code Listing 23.3. A Sample Subnet Statement
subnet 192.168.10.0 netmask 255.255.255.0 {
  range 192.168.10.65 192.168.10.91;
  range 192.168.10.191 192.168.10.250;
  range 192.168.0.253;
  option netbios-name-servers 192.168.10.30;
  default-lease-time 1209600;
}

In Listing 23.3, the subnet statement specifies the network address and netmask of the network with which you are working. Then, ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.