Protocol: IP Address IP
Protocol: IP Address IP
Protocol: IP Address IP
Once the client receives a DHCPACK, then all ownership and maintenance
of the lease is the responsibility of the client. For example, a client may
refuse an offer that is detailed in the DHCPACK message, and it is the
client's responsibility to do so. Clients are supposed to test the addresses that
have been offered to them by conducting ARP broadcasts. So if another node
responds to the ARP, the client would assume that the offered address is in
use. At this point, the client would reject the offer by sending a
DHCPDECLINE message to the offering server, and would also send
another DHCPDISCOVER packet, thereby starting the process yet again.
Once the client has the lease, it must be renewed prior to the lease expiration
through another DHCPREQUEST message. If a client finishes using a lease
prior to its expiration date, the client is supposed to send a DHCPRELEASE
message to the server so that the lease can be made available to other nodes.
If the server doesn't hear from the client by the end of the lease, it marks the
lease as non-renewed, and makes it available for other clients to use.
This sequence of events is pretty straightforward and leaves a lot of room to
correct any miscommunication between the clients and the servers. This is a
good thing, because most of the implementations that we studied at in our
labs didn't follow the letter of the law very well. Only because of the
negotiation model's failure-centric approach does the technology work at all.
When setting up a DHCP server, the first thing you have to do is define a
scope. A scope is a list of valid IP addresses you want the DHCP server to be
able to assign to clients. When a machine requests TCP/IP information from
the DHCP server, the information is provided from the scope you created.
Authorsnote
Every DHCP server is required to have at least one scope. You can, however,
create multiple scopes on a DHCP server to administer different subnets.
About
scopes
When you create a scope, you must select the range of IP addresses and you
must specify the appropriate scope options to include. These options are
what we were referring to above when we mentioned that you can assign
other network information to your clients at the time they are given an IP
address.
There are two types of scope options: Global and Scope. Global options are
propagated to all the scopes that you create on that DHCP server, while
Scope options are only for the individual scope that you are working with.
For example, if you have different scopes for several different subnets and
each subnet will have a different default gateway but will share the same
DNS servers, you would want to set the DNS servers as a Global option
while the default gateways would be set separately in each scope as a Scope
option.
Table A shows a list of all of the Global and Scope options available in a
Windows 2000 DHCP server.
Table A
Time Offset
Trailer Encapsulation
Router
Time Server
Ethernet Encapsulation
Name Servers
DNS Servers
Keepalive Interval
Log Servers
Keepalive Garbage
Cookie Servers
LPR Servers
NIS Servers
Impress Servers
NTP Servers
Resource Location
Servers
Host Name
WINS/NBNS Servers
NetBIOS Scope ID
Swap Server
Root Path
Extensions Path
IP Layer Forwarding
NIS+ Servers
Bootfile Name
Max DG Reassembly
Size
Default IP Time-to-Live
MTU Option
Finger Servers
Broadcast Address
Perform Router
Discovery
If you create a scope and later run out of IP addresses, dont fret. You can
create an additional scope and your new scope will assign IP addresses
where your previous scope ended.
To define a scope using the Create Scope Wizard:
From the Action menu, select New Scope to launch the Create Scope
Wizard, and then click Next.
Type a name and description of your scope (Figure C) and click Next.
Figure C
Enter the start and end IP addresses of your scope. Remember to also assign
the appropriate subnet mask as well (Figure D). Click Next.
Figure D
This window is where you specify all of your static IP addresses to exclude
from your scope (Figure E). Add any exclusions and click Next.
Figure E
Enter the amount of time the lease is active (Figure F) and click Next.
Figure F
1. The next screen asks you whether you want to configure your DHCP
options now or later. For this article, we will select Yes, I Want To
Configure These Options Now and click Next.
2. Enter your domain name and add the IP addresses for your DNS
servers as shown in Figure G.
Figure G
Figure H
Click Finish.
Superscopes
Some networks implement superscopes, which are collections of scopes that
are grouped to allow multiple logical subnets on one physical network. For
more information on creating superscopes, see Microsofts article Q161571:
Using DHCP Superscopes to Serve Multiple Logical Subnets.
Adding
reservations
In addition to specifying exclusions, you can add reservations to your DHCP
server. By adding a reservation, you ensure that a machine always receives
the same IP address from the DHCP server.
To add a reservation:
From the DHCP console, click the + sign next to the scope you created.
Click Reservations and select Action | New Reservation, as shown in
Figure J.
Figure J
Enter a friendly name for the reservation and the IP address you want to
assign to the computer or device.
Enter the MAC address of the computer or device. (For Windows NT/2000
machines, you can find the MAC address by running ipconfig/all from the
command prompt of the machine.)
Enter a description and then choose the following reservation type: DHCP,
BOOTP (going across a router), or both, as shown in Figure K. Click Add.
Figure K
Authorizing
the
DHCP
server
and
activating
scopes
Remember that after you install and configure your DHCP server, you will
need to authorize your scope before it can be activated. Authorizing your
DHCP server allows you to prevent hackers from configuring rogue DHCP
servers.
To authorize your DHCP server:
1. From the DHCP console, click on the DHCP icon.
2. From the Action menu, select Manage Authorized Servers, as shown
in Figure L.
Figure L
1. Click Authorize and enter the name or IP address for your server
(Figure M).
Figure M
1. Now youre ready to activate your DHCP server and bring it online.
Click the scope you created and choose Activate from the Action
menu (Figure N).
Figure N
Troubleshooting DHCP
After configuring DHCP, the easiest way to troubleshoot is to use Ipconfig
from a command prompt in Windows NT/2000. To view all TCP/IP
information on a machine. just typeipconfig/all from a command prompt. To
release a DHCP lease, type ipconfig/release; to renew a lease, type
ipconfig/renew.
On Windows 98 machines, you must use the Winipcfg utility to access
TCP/IP information. You can access this utility by choosing Start | Run and
typing winipcfg (Figure O). From there, you can click the Release and
Renew buttons to access other options.
Figure O