Professional Documents
Culture Documents
ipconfig /setclassid
MCSA 70-642
Dynamic Host Configuration Protocol (DHCP) allows you to assign IP addresses, subnet masks, and other configuration information to client computers on a local network. When a DHCP server is available, computers that are configured to obtain an IP address automatically request and receive their IP configuration from that DHCP server upon starting. Every computer needs an address to communicate on an IP network, and this address can be provided either manually or automatically. For IPv4, the great majority of devices on a network receive their configurations automatically through a DHCP server. DHCP servers can also assign IPv6 addresses, but this arrangement is not as common because by default, IPv6 hosts configure their own addresses.
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
3. Respond with DHCP Request In the third stage of DHCP negotiation, the DHCP client responds to the DHCP Offer message and requests the IP address contained in this DHCP Offer message. Alternatively, the DHCP client might request the IP address that was previously assigned. 4. Confirm with DHCP Ack If the IP address requested by the DHCP client is still available, the DHCP server responds with a DHCP Ack (acknowledgement) message. The client can now use the IP address.
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
available, the DHCP client tries to renew the DHCP lease again after half the remaining lease period has passed. If the DHCP server is not available when 87.5 percent of the lease time has elapsed, the DHCP client attempts to locate a new DHCP server and possibly acquire a different IP address. If the DHCP client shuts down normally, or if an administrator runs the command Ipconfig /release, the client sends a DHCP Release message to the DHCP server that assigned the IP address. The DHCP server then marks the IP address as available and can reassign it to a different DHCP client. If the DHCP client disconnects suddenly from the network and does not have the opportunity to send a DHCP Release message, the DHCP server will not assign the IP address to a different client until the DHCP lease expires. For this reason, its important to use a shorter DHCP lease period (for example, six hours instead of six days) on networks where clients frequently connect and disconnectsuch as in wireless networks.
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
046 WINS/NBT Node Type. A preferred NetBIOS name resolution method for the DHCP client to usesuch as b-node (0x1) for broadcast only, or h-node (0x8) for a hybrid of point-to-point and broadcast methods. 051 Lease. An option that assigns a special lease duration only to remote access clients. This option relies on user class information advertised by this client type.
DHCP options are usually assigned to an entire scope, but they can also be assigned at the server level and apply to all leases within all scopes defined for a DHCP server installation. Finally, they can also be assigned on a per-computer basis at the reservation level.
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
NOTE: ENABLING STATEFUL ADDRESSING DIRECTLY ON IPV6 HOSTS To enable stateful addressing on an IPv6 host, type the following command:
netsh interface ipv6 set interface interface_name managedaddress=enabled
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
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
Lesson Summary
When a computer without an IPv4 address is configured to obtain an address automatically, the computer, upon starting, broadcasts DHCP Discover packets on the network. If a DHCP server lies within broadcast range of the computer, that server will receive the message and respond by providing the client computer with an IPv4 address configuration. This configuration includes at least an IPv4 address and a subnet mask and usually other settings as well (such as a default gateway and DNS server). When a DHCP server assigns a computer an address, it assigns that address in the form of a lease. The DHCP server keeps track of leased addresses so that no address is assigned to two clients. Before your DHCP server can provide IP address leases to clients, a range of IP addresses must be defined at the DHCP server. This range, known as a scope, defines a single physical subnet on your network to which DHCP services are offered. DHCP options provide clients with additional configuration parameters, such as DNS or WINS server addresses, along with an address lease. To deploy a DHCP server, use the Add Roles Wizard to add the DHCP Server role. The Add Roles Wizard guides you through an initial DHCP configuration and enables you to select network bindings, specify DNS and WINS server addresses, add DHCP scopes, configure DHCPv6 stateless mode, and specify IPv6 DNS server settings.
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
Adding exclusions
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
NOTE: DELETING LEASES In the DHCP console, the Address Leases node displays which IP addresses are currently leased to which clients. If you want to end the lease for a given address or client, you can simply delete that lease by right-clicking the lease and then choosing Delete. Normally, if you want to end the lease of any particular computer, you can use the Ipconfig /release command on that computer. However, by using the DHCP console, you can end the leases of many clients at once. This option is useful, for example, if you want many clients to obtain a new address (because of new exclusions or reservations affecting those clients). Another case in which deleting many leases is useful is when you want to assign a newly defined DHCP option to many clients. By deleting the address leases, the DHCP clients will be forced to renew their leases and obtain the new addresses or new options.
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
After you run this command on a DHCP client, the client will inherit the options defined for that class in addition to the options defined for the default user class. If the two options conflict, 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.
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
Configuring DHCP to Perform Dynamic DNS Updates for Clients By default, whenever a DHCP server provides an address lease to a client running Windows 2000 or later, that DHCP server automatically attempts to register a pointer (PTR) record for the client in a reverse lookup zone on the DNS server. However, DHCP servers do not register host (A) records on behalf of clients by default. This is
not a problem whenever clients running Windows 2000 or later are configured with a primary DNS suffix (such as in AD DS environments), because such DHCP clients can register their own host (A) records directly with the DNS server. However, for computers not running Windows or Windows NT, and for all computers in workgroup environments, DHCP clients do not automatically register host (A) records in DNS. In these cases, you might want to change the DHCP servers default DNS update behavior so that it can perform more types of updates on behalf of its clients. To modify a DHCP servers DNS update behavior, use the DNS tab of a scopes Properties dialog box in the DHCP console.
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
a resource record on behalf of a client running an older version of Windows, and then the client computer is upgraded, the client will no longer be able to update its DNS record. You can prevent these types of problems by adding the DHCP server to the built-in security group called DnsUpdateProxy in AD DS. When members of DnsUpdateProxy create resource records, the resource records have no security information. These records can therefore be updated by any computer, even in zones requiring secure updates. However, as soon as the first DHCP server or client that is not a member of the DnsUpdateProxy group modifies such a record, that server or client then becomes its owner. After that point, only the owner can update the record in zones requiring secure updates.
Even though this command installs the DHCP Server role, it does not automatically start the DHCP Server service or configure the service to start automatically by default upon starting. To start the service for the first time, use the following command:
net start dhcpserver
To configure the DHCP service to start automatically, type the following command. (Be sure to include the space after the equal sign.)
sc config dhcpserver start= auto
If you want to configure a Server Core installation as a DHCP client for IPv4, type the following command, where local area connection is the name of the connection on the network:
netsh interface ipv4 set address "local area connection" dhcp
To configure the server to obtain a DNS server address through DHCP, type the following:
netsh interface ipv4 set dnsserver "local area connection" dhcp
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
Lesson Summary
After you deploy a DHCP server, you might want to perform additional configuration by using the DHCP console. For example, you can create exclusion ranges, create reservations, adjust the lease duration, and configure additional options. An exclusion is an address within a scopes address range that cannot be leased to DHCP clients. You can use exclusions to make a scopes address range compatible with static addresses already assigned to computers on a network. A DHCP reservation is a particular address that a DHCP server assigns to a computer owning a particular MAC address. An options class is a client category that enables the DHCP server to assign options only to particular clients within a scope. Vendor classes are used to assign vendor-specific options to DHCP clients identified as a vendor type. User classes are used to assign options to any set of clients identified as sharing a common need for similar DHCP options configuration. The Default User class is a class to which all DHCP clients belong and the class in which all options are created by default. You can create a custom user class when you need to assign distinct options to distinct sets of client computers. After you create a custom user class and assign options to it, you can assign a client to a class by using the Ipconfig /setclassid command.
Chapter Summary
DHCP servers provide clients with IP addresses. DHCP clients are those that have been configured to receive an address automatically. When such clients have no address, they send a network broadcast requesting the service of a DHCP server. If a DHCP server lies within broadcast range, it will answer the request and provide the client with an address from an address range you configure. Each range of contiguous addresses that can be assigned to DHCP clients is known as a scope. Addresses are leased to clients for a finite amount of time. The DHCP server keeps track of leased addresses in a local database. DHCP options are configuration settings that a DHCP server can assign to clientssettings such as a default gateway address and DNS server address. You can deploy a DHCP server by using the Add Roles Wizard to add the DHCP Server role. When you choose this role, the Add Roles Wizard gives you an opportunity to configure the basic features of a DHCP server. These features include a DHCP scope and basic DHCP options.
ipconfig /renew
ipconfig /setclassid
MCSA 70-642
You can also configure a DHCP server by using the DHCP console after you run the Add Roles Wizard. You can use the DHCP console to add new scopes, create exclusion ranges, create reservations, adjust the lease duration, and configure additional options.