Documente Academic
Documente Profesional
Documente Cultură
PRACTICAL: 11
Date:___________
AIM: - Configuration of DHCP server in packet tracer
Introduction:
The DHCP server assigns a client an IP address taken from a predefined scope for a given amount of
time. If an IP address is required for longer than the lease has been set for, the client must request an
extension before the lease expires. If the client has not requested an extension on the lease time, the
IP address will be considered free and can be assigned to another client. If the user wishes to change
IP address then they can do so by typing "ipconfig /release", followed by "ipconfig /renew" in the
command prompt. This will remove the current IP address and request a new one. Reservations can
be defined on the DHCP server to allow certain clients to have their own IP address (this will be
discussed a little later on). Addresses can be reserved for a MAC address or a host name so these
clients will have a fixed IP address that is configured automatically. Most Internet Service Providers
use DHCP to assign new IP addresses to client computers when a customer connects to the internet -
this simplifies things at user level.
The above diagram displays a simple structure consisting of a DHCP server and a number of client
computers on a network.
The DHCP Server itself contains an IP Address Database which holds all the IP addresses available
for distribution. If the client (a member of the network with a Windows 2000 Professional/XP
operating system, for example) has "obtain an IP address automatically" enabled in TCP/IP settings,
then it is able to receive an IP address from the DHCP server.
Dynamic allocation: A network administrator reserves a range of IP addresses for DHCP, and
each client computer on the LAN is configured to request an IP address from the DHCP
server during network initialization. The request-and-grant process uses a lease concept with a
controllable time period, allowing the DHCP server to reclaim (and then reallocate) IP
addresses that are not renewed.
Automatic allocation: The DHCP server permanently assigns an IP address to a requesting
client from the range defined by the administrator. This is like dynamic allocation, but the
DHCP server keeps a table of past IP address assignments, so that it can preferentially assign
to a client the same IP address that the client previously had.
Static allocation: The DHCP server allocates an IP address based on a preconfigured mapping
to each client's MAC address. This feature is variously called static DHCP assignment by DD-
WRT, fixed-address by the dhcp documentation, address reservation by Netgear, DHCP
reservation or static DHCP by Cisco and Linksys, and IP address reservation or MAC/IP
address binding by various other router manufacturers.
Manual: where user or administrator have to insert IP address according to network range. It
is time consuming process.
Configure Static IP address on server. This is necessary because for client pc to request for
and address from the server, it has to sent the request to a specific address i.e. the IP address
of the server.
Now go on your PC and on their IP Configuration tabs , enable DHCP. Every PC should be able to
obtain the an IP address, default gateway and DNS server, as defined above. For ex, to enable DHCP
on PC1:
3. Net map for configuration of network with DHCP Server via Router
IP of server : 192.168.2.2
Default gateway: 192.168.2.1
Add the command ip helper-address 192.168.2.1 on the interface configuration mode of 0/0 on router
0.
Lasty enable DHCP on PCs in LANs. The PCs will obtain their address from the DHCP
server.
For example, here is PC3 IP configuration:
Lab Exercise
1. What is scope?
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
3. What is IP reservation?
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Sign of Faculty.