To install DHCP using the Server Manager click on Start. Select Server Manager. Or from the Quick Launch Taskbar. Select Roles. Then Add Roles. Click Next to continue. Select DHCP Server. Click Next to continue. Then Click Next. Select Network connection. Then Click Next. DNS settings fill in the Parent Domain. IPv4 Address of Preferred and any Alternate DNS servers. Ensure these addresses can be validated. Click Next. IPv4 Address of the WINS Server, If Required. Enter IPv4 Address of the WINS Server, Next to continue.
Use the buttons below to navigate through the lesson
To create the first scope click Add. Add Scope box fill in all sections. Subnet Type choose Wired or Wireless. Note the lease duration varies. Ensure Activate this scope is ticked. click Next to continue. The new Scope has been added. Additional scopes can be added if Required. Click Next to continue.
DHCPv6 refers to DHCP for IPv6. Stateless mode refers to the default addressing mode for IPv6 hosts, in which addresses are configured without the help of a DHCP server. Options can still be obtained from the DHCP server.
When an IPv6 host is configured to obtain an address automatically, instead of using a DHCP server, the host in stateless mode self-configures an address compatible with the local subnet by exchanging Router Solicitation and Router Advertisement messages with a neighbouring IPv6 router.
You can disable stateless mode on the DHCP server and enable it to respond to IPv6 hosts that have been enabled for stateful addressing. When stateful addressing is then enabled on IPv6 hosts, they request an address and potentially other IPv6 configuration options (such as DNS server addresses) from a DHCP server by using the DHCPv6 protocol.
If you choose to disable stateless addressing on the DHCP server on the Configure DHCPv6 Stateless Mode page, you will later need to create a scope for an IPv6 address range by using the DHCP console. To do so, right-click the IPv6 node in the DHCP console tree, choose New Scope and then follow the prompts in the New Scope Wizard.
To enable stateful addressing on an IPv6 host, type the following command:
netsh interface ipv6 set interface interface_name managedaddress=disabled
To enable the IPv6 host to obtain DHCP options from a DHCPv6 server, type the following command:
netsh interface ipv6 set interface interface_name otherstateful=enabled.
Click Next to continue. DNS settings for IPv6, fill in Parent Domain. IPv6 address of the DNS server. You can use ipconfig /all on the DNS server to obtain its IPv6 address.
Alternate DNS server IPv6 address can be added and validated. Click Next to continue.
Authorize DHCP Server you can;-
- Use current credentials.
- Use alternate credentials.
- Skip authorization and complete later. Note the caution.
Click Next to continue. Summary page review settings. Click Install. Install starts. DHCP Server installation succeeded. Click Close to complete.
To install DHCP on Server core, Log on to Server core server, type the command;-
start /w ocsetup DHCPServerCore and press enter.
Note the syntax of the command and the capitalisation as server roles must be in this format.
Command Prompt returns when the installation has completed.
Although the DHCP role is installed the service will need to be started.
To start DHCP, type the command. net start dhcpserver
To change the startup type of the service type the command sc config dhcpserver start= auto and press Enter.
The startup type has been successfully changed to automatic.
To add scopes to the DHCP server core, you need to attach to this server from another machine via an MMC with the DHCP snap in added.
Right click DHCP and select Add Server.
Fill in the IP Address of the server and click OK. The server is added to the console.
Expand the Server. Expand IPv4. Red arrow indicates this server is not authorized in Active Directory.
To Authorize right click the server and select Authorize.
Green Arrow indicates server is now authorized. Scopes can now be added and configured.
To install scopes please refer to Setting up DHCP scopes module.