Unlicensed-356-360_7-PDF_Windows Server 2008 R2 Unleashed

advertisement
Exploring the Dynamic Host Configuration Protocol (DHCP)
333
NOTE
configured to forward client DHCP broadcast packets directly to the DHCP server.
Therefore, in large organizations, it is important to include the network architecture
team in any discussions on DHCP design.
Examining DHCP and Dynamic DNS
Using the DNS service in Windows Server 2008 R2, clients can automatically register
themselves in the DNS database through a mechanism called Dynamic DNS (DDNS). For
more information on this concept, refer to Chapter 10.
DHCP in Windows Server 2008 R2 integrates directly with DDNS to provide for automatic
registration of clients into DNS. By default, all Windows 2000 or higher clients will
perform this function by themselves, but DHCP servers can perform Dynamic DNS registration for DHCP clients that are not able to register themselves. Also, DHCP servers can
be configured to always register the Dynamic DNS entry on behalf of the client. In many
cases, this is ideal because the DHCP service will own the record and can remove it from
the DNS zone when the lease expires. These settings can be configured at the DHCP server
level and within each DHCP scope properties, through the DHCP administrative console.
A DHCP scope is a set of included and excluded IP addresses and networking options that
define the configuration that DHCP clients will be sent. How to plan and configure DHCP
scopes is detailed in the next section.
Installing DHCP and Creating New Scopes
DHCP installation historically has been two parts: Install the service and then later configure the service. In Windows Server 2008 R2, DHCP Server role installation has been
streamlined through the use of the Add Roles Wizard. This wizard installs the DHCP
Server service and automatically invokes the New Scope Wizard, which can be used to
establish and configure DHCP scopes. To install and configure a Windows Server 2008 R2
system as a DHCP server, follow these steps:
1. Click Start, click All Programs, click Administrative Tools, and select Server
Manager. If prompted for User Account Control verification, click Continue to
confirm the action.
2. In Server Manager, click the Roles node in the left pane to display the Roles
Summary information in the right pane. Then click the Add Roles link in the right
pane to initiate the Add Roles Wizard.
3. After reading the Before You Begin information, click Next to continue.
4. On the Select Server Roles page, select the check box next to DHCP Server, and then
click Next to continue.
11
In most real-world implementations of DHCP, the routers between network segments are
334
CHAPTER 11
DHCP/WINS/Domain Controllers
5. On the Introduction to DHCP Server page, helpful information is displayed to learn
more about the DHCP server. Click on any of the informative links as desired and
after reading the information, click Next to continue the installation.
6. On the Select Network Connection Bindings page, check the box next to the desired
network connections that will host the DHCP Server service, as illustrated in Figure
11.3, and click Next to continue.
FIGURE 11.3 Verifying Binding options for the DHCP install.
7. At this point, the Add Roles Wizard displays the Specify IPv4 DNS Server Settings
page. Enter the name of the parent domain that clients will use for name resolution.
Enter the name of the preferred DNS server IPv4 IP address and the alternate DNS
server IPv4 IP address. Click the Validate button to check the IP addresses of the
preferred and alternate DNS servers. Once the DNS server IP addresses are validated,
click Next to continue.
8. On the Specify IPv4 WINS Server Settings page, click the option button to indicate
whether WINS is required on the network. If required, specify the IP addresses for
the primary and, if needed, alternate server. Click Next to continue.
9. On the Add or Edit DHCP Scopes page, click Add and then type a descriptive name
for the scope such as Headquarters Network DHCP Scope. Type in the starting IP
address and ending IP address. Select whether the subnet is a wired or wireless
network, which will set the DHCP address lease duration to either eight days or
eight hours. In addition, type in a subnet mask for the subnet in question, and a
default gateway if the DHCP client needs to communicate with separate networks, as
Exploring the Dynamic Host Configuration Protocol (DHCP)
FIGURE 11.4 Defining the address in the Add or Edit DHCP Scopes page of the Add Roles
Wizard.
10. If DHCPv6 is required, select Enable DHCPv6 Stateless Mode for This Server to
configure the server for DHCPv6 stateless operation; otherwise, select Disable
DHCPv6 Stateless Mode for This Server. If Disable is selected, DHCPv6 can manually
be configured later from the DHCP server MMC snap-in. Click Next to continue.
11. If you enabled DHCPv6 Stateless mode in the preceding step, you must configure
the IPV6 DNS Server settings. On the Specify IPv6 DNS Server Settings page, enter
the parent domain and the necessary IPv6 addresses into the Preferred DNS and
Alternate DNS server information fields and click Next when finished.
12. On the Authorize DHCP Server page, select whether to use the current or alternate
credentials used to authorize the DHCP server in the domain. DHCP servers must be
authorized by Active Directory before they can be used to manage and distribute IP
addresses. If the account used to install the DHCP Server service has the necessary
group membership, select the Use Current Credentials option button and click Next
to continue. If you are not sure, click the Skip Authorization of this DHCP Server in
AD DS option and click Next to continue. Ask the Active Directory domain administrator to authorize the DHCP server later.
13. On the Confirm Installation Selections page, review the information for accuracy
and click Install to continue the DHCP server installation and configuration process.
14. The Add Roles Wizard then indicates that the server has successfully become a DHCP
server, as indicated in Figure 11.5. Click Close to close the wizard.
11
illustrated in Figure 11.4. Also if the DHCP server will be used immediately, check
the Activate this Scope check box and click OK to complete the creation of the
scope. If no additional scopes will be created, click Next to continue.
335
CHAPTER 11
336
DHCP/WINS/Domain Controllers
FIGURE 11.5 Completion of the Add Roles Wizard for the DHCP server.
Administrators will now be able to see the newly created DHCP server reflected in Server
Manager. It will be located beneath the Roles node in the Server Manager tree in the left
pane. The Roles Summary section will also reflect the newly created DHCP server in the
right pane.
NOTE
It is recommended that all tests utilizing DHCP be conducted in a lab environment. In
addition, testing in production will be difficult because the Authorization Component
of DHCP will also make it impossible to enable scopes on a Windows Server 2008
R2 DHCP server, as described in the “Examining DHCP Authorization” section later in
this chapter.
Exploring DHCP Changes in Windows Server 2008 R2
As previously discussed, two improvements have been made to the functionality of DHCP
in Windows Server 2008 R2. These improvements allow for an increased level of functionality beyond the major improvements made in Windows 2000, Windows Server 2003, and
Windows Server 2008. Even though there are new improvements, the architecture and
design decisions that might have been made in previous Windows Server versions will still
remain valid, but the new functionality will enhance these best-practice designs.
Exploring DHCP Changes in Windows Server 2008 R2
337
Automating DHCP Database Backup and Restore
ent) server has been streamlined in Windows Server 2008 R2. No longer do administrators
need to export Registry keys and manually move databases between servers or use the
DHCP import/export tool from Microsoft to migrate DHCP. The backup and restore process
can be accomplished directly from the MMC, and the migration of DHCP server data can
be performed using tools included with the Windows Server 2008 R2 operating system.
The DHCP Server service on Windows Server 2008 R2 will back itself up automatically
each hour to the %systemroot%\system32\dhcp\backup. Of course, only the most recent
backup is maintained in this folder; if historic backup is required, an administrator should
enable Volume Shadow Copy on the drive that contains the system root and also perform
periodic backups of the DHCP server using Windows Backup or another backup solution,
such as Microsoft Data Protection Manager. When a DHCP administrator is going to make
changes to a DHCP server, it is a best practice to manually perform a backup of the DHCP
database and configuration by performing the following steps:
1. Open the DHCP management console (Start, All Programs, Administrative Tools,
DHCP). If prompted, click Continue to confirm the action.
2. Right-click the server name and choose Backup, as illustrated in Figure 11.6.
FIGURE 11.6 Backing up a DHCP database.
3. Specify a location for the backup file, and click OK. The backup files will then be
saved into the location you chose.
11
The process of backing up all DHCP settings and restoring them onto the same (or a differ-
Download