Deploy BRANCH1-DHCP1

Applies To: Windows Server 2012

Before deploying this component of the branch network, you must perform the steps in the following sections of the Windows Server 2012 Core Network Guide:

To deploy BRANCH1-DHCP1, which is the computer running the Dynamic Host Configuration Protocol (DHCP) server role, you must complete these steps in the following order:

  • Install Dynamic Host Configuration Protocol (DHCP)

  • Create and Activate a New DHCP Scope

Note

To perform these procedures by using Windows PowerShell, open PowerShell and type the following cmdlets on separate lines, and then press ENTER. You must also replace the scope name, IP address start and end ranges, subnet mask, and other values in this example with the values that you want to use.

Install-WindowsFeature DHCP -IncludeManagementTools

Add-DhcpServerv4Scope -name "Branch1" -StartRange 192.168.11.1 -EndRange 192.168.11.254 -SubnetMask 255.255.255.0 –State Active

Add-DhcpServerv4ExclusionRange –ScopeID 192.168.11.0 –StartRange 192.168.11.1 –EndRange 192.168.11.15

Set-DhcpServerv4OptionValue -OptionID 3 -Value 192.168.11.1 -ScopeID 192.168.11.0 -ComputerName BRANCH1-DHCP1.corp.contoso.com

Add-DhcpServerInDC -DnsName BRANCH1-DHCP1.corp.contoso.com

If you plan on installing a second subnet in your branch office, type the following cmdlets to create a second scope on your DHCP server, and then press ENTER. You must also replace the scope name, IP address start and end ranges, subnet mask, and other values in this example with the values that you want to use.

Add-DhcpServerv4Scope -name "Branch2" -StartRange 192.168.12.1 -EndRange 192.168.12.254 -SubnetMask 255.255.255.0 –State Active

Add-DhcpServerv4ExclusionRange –ScopeID 192.168.12.0 –StartRange 192.168.12.1 –EndRange 192.168.12.15

Set-DhcpServerv4OptionValue -OptionID 3 -Value 192.168.12.1 -ScopeID 192.168.12.0 -ComputerName BRANCH1-DHCP1.corp.contoso.com

Install Dynamic Host Configuration Protocol (DHCP)

You can use this procedure to install and configure the DHCP Server role using the Add Roles and Features Wizard.

Membership in Domain Admins, or equivalent, is the minimum required to perform this procedure.

To install DHCP

  1. On BRANCH1-DHCP1, in Server Manager, click Manage, and then click Add Roles and Features. The Add Roles and Features Wizard opens.

  2. In Before You Begin, click Next.

    Note

    The Before You Begin page of the Add Roles and Features Wizard is not displayed if you have previously selected Skip this page by default when the Add Roles and Features Wizard was run.

  3. In Select Installation Type, ensure that Role-Based or feature-based installation is selected, and then click Next.

  4. In Select destination server, ensure that Select a server from the server pool is selected. In Server Pool, ensure that the local computer is selected. Click Next.

  5. In Select Server Roles, in Roles, select DHCP Server, and then click Next. In Add features that are required for DHCP Server, click Add Features. Click Next.

  6. In Select features, click Next, and in DHCP Server, review the information that is provided, and then click Next.

  7. In Confirm installation selections, click Restart the destination server automatically if required. When you are prompted to confirm this selection, click Yes, and then click Install. The Installation progress page displays status during the installation process. When the process completes, the message “Configuration required. Installation succeeded on ComputerName” is displayed, where ComputerName is the name of the computer upon which you installed DHCP Server. In the message window, click Complete DHCP configuration. The DHCP Post-Install configuration wizard opens. Click Next.

  8. In Authorization, specify the credentials that you want to use to authorize the DHCP server in Active Directory Domain Services, and then click Commit. After authorization is complete, click Close.

Create and Activate a New DHCP Scope

You can use this procedure to create a new DHCP scope using the DHCP Microsoft Management Console (MMC). When you complete the procedure, the scope is activated and the exclusion range that you create prevents the DHCP server from leasing the IP addresses that you use to statically configure your servers and other devices that require a static IP address.

Membership in DHCP Administrators, or equivalent, is the minimum required to perform this procedure.

To create and activate a new DHCP Scope

  1. On BRANCH1-DHCP1, in Server Manager, click Tools, and then click DHCP. The DHCP MMC opens.

  2. In DHCP, double-click the server name. For example, if the DHCP server name is BRANCH1-DHCP1.corp.contoso.com, double-click BRANCH1-DHCP1.corp.contoso.com.

  3. Right-click IPv4, and then click New Scope. The New Scope Wizard opens.

  4. In Welcome to the New Scope Wizard, click Next.

  5. In Scope Name, in Name, type a name for the scope. For example, type Subnet 1.

  6. In Description, type a description for the new scope, and then click Next.

  7. In IP Address Range, do the following:

    1. In Start IP address, type the IP address that is the first IP address in the range. For example, type 192.168.11.1.

    2. In End IP address, type the IP address that is the last IP address in the range. For example, type 192.168.11.254. Values for Length and Subnet mask are entered automatically, based on the IP address you entered for Start IP address.

    3. If necessary, modify the values in Length or Subnet mask, as appropriate for your addressing scheme.

    4. Click Next.

  8. In Add Exclusions, do the following:

    1. In Start IP address, type the IP address that is the first IP address in the exclusion range. For example, type 192.168.11.1.

    2. In End IP address, type the IP address that is the last IP address in the exclusion range, For example, type 192.168.11.15.

  9. Click Add, and then click Next.

  10. In Lease Duration, modify the default values for Days, Hours, and Minutes, as appropriate for your network, and then click Next.

  11. In Configure DHCP Options, select Yes, I want to configure these options now, and then click Next.

  12. In Router (Default Gateway), do one of the following:

    • If you do not have routers on your network, click Next.

    • In IP address, type the IP address of your router or default gateway. For example, type 192.168.11.1. Click Add, and then click Next.

  13. In Domain Name and DNS Servers, do the following:

    1. In Parent domain, type the name of the DNS domain that clients use for name resolution. For example, type corp.contoso.com.

    2. In Server name, type the name of the DNS computer that clients use for name resolution. For example, if you have a Read-Only Domain Controller in your branch office named RODC1, type RODC1.

    3. Click Resolve. The IP address of the DNS server is added in IP address. Click Add, wait for DNS server IP address validation to complete, and then click Next.

  14. In WINS Servers, because you do not have WINS servers on your network, click Next.

  15. In Activate Scope, select Yes, I want to activate this scope now.

  16. Click Next, and then click Finish.

Important

To create new scopes for additional subnets, repeat this procedure. Use a different IP address range for each subnet that you plan to deploy, and ensure that DHCP message forwarding is enabled on all routers that lead to other subnets.