Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
-
Upload
mahmmoud-mahdi -
Category
Documents
-
view
241 -
download
0
Transcript of Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
1/48
Mahmmoud A. Mahdi
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
2/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
3/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
4/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
5/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
6/48
9. On the specify IPv4 WINS Server Setting page. Then, leave the selection specifying that WINS is not required for
applications on the network and click Next.
10. On the Add Or Edit DHCP Scopes page, read all of the text
on the page, and then click Add. The Add Scope dialog box appears.
11. Use the following information to complete the fields in theAdd Scope dialog box:
Scope Name: Nwtraders.msft IPv4
Starting IP Address: 192.168.0.20
Ending IP Address: 192.168.0.254 Subnet Mask: 255.255.255.0
Default Gateway(optional): 192.168.0.1
Subnet Type: Wired (lease duration will be six days)
Activate this scope: Enabled
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
7/48
12. After you have entered the appropriate values inthe Add Scope dialog box, click OK
13. On the Add Or Edit DHCP Scopes page, click Next.
14. On the Configure DHCPv6 Stateless Mode page,read all of the text on the page.
Then, leave the Enable DHCPv6 Stateless Mode For ThisServer option selected and click Next.
15. On the Specify IPv6 DNS Server Setting page, readall of the text on the page.
Then verify Then, verify that nwtraders.msft is specifiedas the parent domain and that fd00::1 is specified as thepreferred DNS Server IPv6 address. Click Next.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
8/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
9/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
10/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
11/48
4. After the command prompt completes successfully
and the prompt reappears, type the following:
netsh interface ipv4 set dnsserver local area
connection dhcp
5. After the command prompt completes successfully
and the prompt reappears, type ipconfig/all.
The Ipconfig output shows that DHCP is enabled and
that Boston has received a new IP address 192.168.0.20.
6. Log off both computers.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
12/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
13/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
14/48
After you add the DHCP Server role, you can
perform further configuration tasks by
using the DHCP console. These tasks include:
1. Configuring exclusions.
2. Creating address reservations.
3. Adjusting the lease duration of a scope
4. Configuring additional scope or server options.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
15/48
An exclusion range is a set of one or more IPaddresses that is included within the rang of adefined scope but that you do not want to lease
to DHCP clients. For example:
define a new scope whose address range is192.168.0.10-192.168.0.254. You might have a number of preexisting servers whose
static addresses might lie within this range-for examplebetween 192.168.0.200 and 129.168.0.210.
You might have servers with isolated static addresses, suchas 192.168.0.99
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
16/48
To add an exclusion range:
1. In the DHCP console tree navigate to DHCP \
\ IPv4 \Scope\Address Pool.2. Right-click the Address Pool folder.
3. Choose New Exclusion Range.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
17/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
18/48
4. In the Add Exclusion dialog box that opens,
configure the range of addresses that you want
to exclude from the address rang.
If you want to exclude a single address, specify the
Start IP Address and the End IP Address as the
same address
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
19/48
Adding an exclusion range
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
20/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
21/48
To create a reservation in the DHCP console
tree
1. Navigate to DHCP \server node \ IPv4 \ Scope\Reservation.
2. Right-click the Reservation folder.
3. And then choose New Reservation.
4. In the New Reservation dialog box that opens,
specify a name, IP address, and MAC address for
the reservation.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
22/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
23/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
24/48
You can modify the lease duration to be
used for assigning IP address leases.
To adjust the length of lease duration:1. Open the properties of the scope whose lease
duration you want to adjust.
2. You can adjust the lease duration in the General
tab in the Lease Duration For DHCP Clients
area.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
25/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
26/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
27/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
28/48
To see the built-in options that you can
configure:
1. In the DHCP console navigate to DHCP\Servernode\IPv4\Scope\Scope options.
2. Right-click the Scope Options folder.
3. And then choose Configure Options.
4. Then use the Scope Options dialog box to
choose an option for the scope.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
29/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
30/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
31/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
32/48
An option class is a client category that enablesthe DHCP server to assign options only toparticular clients within a scope.
Options classes can be of two types:1. Vendor classes: are used to assign vendor-specificoptions to DHCP clients identified as a vendor type.
For example: you can configure clients that can beidentified as running Windows 2000 to enable or disable
NetBIOS.2. User classes: are used to assign options to any set
of clients identified as sharing a common need forsimilar DHCP options configuring.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
33/48
What is the default user class?
It is a class to which all DHCP clients belong and
the class in which all options are created bydefault.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
34/48
User classes enable you to apply a particularconfiguration of DHCP options to any subset of DHCPclients you define.
To implement a user class:
1. Define the class at the DHCP server by assigning an ID and aset of options for the class.
2. Assign selected client computers to that class by using theIpconfig/ setclassidcommand.
A custom user class is helpful when you need to assign
distinct options to distinct sets of client computers. For example, your network might require certain clients to
be assigned a special default gateway that allows them tobypass the company firewall.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
35/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
36/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
37/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
38/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
39/48
5. After defining a new class and specifying an ID string for thatclass , the new user class appears in the User Class drop-down list box in the Advanced Tap of the Scope Optionsdialog box.
6. You can then select that user class and define a set of optionsthat will be assigned only to members of the class.
7. Finally, you need to populate the class, for the desiredcomputers to inherit the options defined for the new class,you need to set the class ID of appropriate client computersto match the ID you have defined for that class at the DHCP
server. You can do this by executing the Ipconfig/setclassidcommand at a
command prompt at each client computer.
ipconfig/setclassid local area connection sample ID
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
40/48
8. After you run this command on a DHCP client,
the client will inherit the options defined for
the class in addition to the options defined for
the default user class. If the two optionsconflict , such as with the definition of a
default gateway, the option defined for the
more specific class takes precedence over the
setting defined for the Default User Class.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
41/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
42/48
To configure a DHCP server on a Server Coreinstallation of windows 2008: Install the DHCP server role by typing the following
command:
start/w ocsetup DHCPServerCore Even though this command installs the DHCP Server service, it
dose not automatically start.
To start the service for the first time, use the followingcommand:
net start dhcpserver To configure the DHCP Service to start automatically,
type the following command:sc config dhcpserver start= auto
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
43/48
To add scopes and configure the server, you cansimply connect to the server from the DHCPconsole on a computer running a full installation ofWindows Server 2008.
If you want to configure a Server Core installation as aDHCP client for IPv4,type the following commandwhere local area connection is the name of theconnection on the network:
netsh interface ipv4 set address local area connection dhcp
To configure the server to obtain a DNS serveraddress through DHCP, type the followingcommand:netsh interface ipv4 set dnsserver local area connection dhcp
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
44/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
45/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
46/48
Exercise 1: Creating an Exclusion Range
In this exercise, you will create an exclusion rangeon Dcsrv1 for the address range 192.168.0.200-
192.168.0.210.1. Log on to Nwtraders from Dcsrv1 as a domain
administrator.
2. Open the DHCP console by clicking Start, pointing
to Administrative Tools, and then choosing DHCP.3. In the DHCP console tree, navigate to
DHCP\dcsrv1. nwtraders.msft \ IPv4 \ Scope[191.168.0.0]Nwtraders.msft\ Address Pool.
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
47/48
-
7/29/2019 Lesson 6: Dynamic Host Configuration Protocol DHCP (Part2)
48/48
Contact Me: [email protected]