Example 3.11 illustrates that global values for options can be overridden with new
values for specific subnets. The global values for default lease time and maximum
lease time values are set to 30 days and 45 days, respectively; those values are set to
90 days and 120 days, respectively, within the server subnet declaration.
Extending a Lease and Moving Between Subnets
Using the configuration file in Example 3.11, let’s take a closer look at some of the
examples from Chapter 2. The section “Using DHCP to Configure Computers”
describes the steps in configuring a GSI client,
desktop1
, when it is first connected to
the 192.168.12.0 subnet of the GSI network. When the DHCP server,
dhcpserve
,
receives the initial broadcast message from
desktop1
, the server determines that
desktop1
is connected to the 192.168.12.0 subnet. From the configuration file, the
DHCP server determines that
desktop1
should receive an address in the range
192.168.12.1 to 192.168.12.253. To accompany that selected address, the DHCP
server selects the subnet-specific values for the subnet mask and default router, and it
selects global values for the domain name and domain name servers. Because
desktop1
did not request a specific lease time, the DHCP server chooses a lease time
of 30 days, and the server returns the parameters in Table 3.2 to
desktop1
. At the
same time, the server records the information about the allocated address and lease
time on disk.
TABLE 3.2 Initial Parameters for desktop1
Option Name Option Value
IP address 192.168.12.25
Subnet mask 255.255.255.0
Default router 192.168.12.254
Domain name genericstartup.com
Domain name servers dns1.genericstartup.com, dns2.genericstartup.com
Lease time 30 days (2,592,000 seconds)
Extending a GSI Lease
The section ”Restarting desktop1” in Chapter 2 describes the sequence of events that
occur when
desktop1
restarts while it is still connected to the 192.168.12.0 subnet. In
that situation,
desktop1
broadcasts a DHCP message to confirm its address,
192.168.12.25. The DHCP server on
dhcpserve
receives the confirmation request, and
it consults its configuration and lease data. Based on the entry for the 192.168.12.0
subnet, the server confirms that 192.168.12.25 is a valid address for the network
segment to which
desktop1
is currently connected. The server then consults the lease
data and confirms that
desktop1
has a valid lease on 192.168.12.25. Having estab-
lished the validity of the requested address, the DHCP server extends the lease on
CHAPTER 3 Configuring the DHCP Server40
005 3273 CH03 10/3/02 5:05 PM Page 40