ENROLLMENT No : 21BEIT30122 NAME : MAITRI SHAH
PRACTICAL: 11
AIM: - Configuration of DHCP server in packet tracer
Introduction:
Dynamic Host Configuration Protocol (DHCP) is a standardized networking protocol used
on Internet Protocol (IP) networks for dynamically distributing network configuration parameters,
such as IP addresses for interfaces and services. With DHCP computers request IP addresses and
networking parameters automatically from a DHCP server
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.
223
ENROLLMENT No : 21BEIT30122 NAME : MAITRI SHAH
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 Host Configuration Protocol (DHCP) is a standardized networking protocol used on
Internet Protocol (IP) networks for dynamically distributing network configuration parameters, such
as IP addresses for interfaces and services. With DHCP computers request IP addresses and
networking parameters automatically from a DHCP server
DHCP server may have three methods of allocating IP-addresses:
• 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.
224
ENROLLMENT No : 21BEIT30122 NAME : MAITRI SHAH
Topology-1 Screen Shot
IP Range: 122.0.0.1 to 122.0.0.245
Network ID: 122.0.0.0
Gateway and its subnet: 122.0.0.1 255.0.0.0
Excluded IP range from DHCP: 0.0.0.0
IP Range for DHCP: 122.0.0.1 to 122.0.0.245
Steps:
Steps for Topology-1
1. Create a topology.
2. Configure the server.
3. In the server , go to the DHCP services and fill up the required information.
4. Check Client1 IP Allocation through DHCP.
5. Check Client2 IP Allocation through DHCP.
6. Check Client3 IP Allocation through DHCP.
7. Check Client4 IP Allocation through DHCP.
225
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
1. Topology-1 Server Configuration Screen Shot (IP Assignment and DHCP Table)Topology-1
226
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
2. Topology-1 Client-1 IP Allocation through DHCP Screen Shot
Topology-1 Client-2 IP Allocation through DHCP Screen Shot
227
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-1 Client-3 IP Allocation through DHCP Screen Shot
Topology-1 Client-4 IP Allocation through DHCP Screen Shot
228
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-2 Screen
Shot
IP Range: 10.0.0.0 to 10.10.10.245
Network ID: 10.0.0.0
Gateway and its subnet: 10.0.0.1 255.0.0.0
Excluded IP range from DHCP: 10.0.0.1 to 10.0.0.2
IP Range for DHCP: 10.0.0.1 to 10.0.0.245
Steps:
Steps for Topology 2
1. Create a topology.
2. Configure Router0 with the help of CLI. ( Steps are mentioned after Screenshot of Router Configuration. )
3. Check Client1 IP Allocation through Router.
4. Check Client2 IP Allocation through Router.
5. Check Client3 IP Allocation through Router.
6. Check Client4 IP Allocation through Router.
229
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
1. Topology-2 Router Configuration through CLI Screen Shot
Mentioned all Commands to Configure Router to work as DHCP Server:
Router>enable
Router#configure terminal
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 10.10.10.1 255.0.0.0
Router(config-if)# no shut
Router(config-if)#exit
Router(config)#ip dhcp pool test1
Router(dhcp-config)#network 10.0.0.0 255.0.0.0
Router(dhcp-config)#default-router 10.0.0.1
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 10.10.10.1 10. 10.10.2
Router(config)#exit
230
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-2 Client-1 IP Allocation through Router Screen Shot
Topology-2 Client-2 IP Allocation through Router Screen Shot
231
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-2 Client-3 IP Allocation through Router Screen Shot
Topology-2 Client-4 IP Allocation through Router Screen Shot
232
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3 Screen Shot
IP Range: 20.0.0.1 to 20.0.0.245
Network ID: 20.0.0.0
Gateway and its subnet: 15.0.0.1 255.0.0.0
Excluded IP range from DHCP: 20.0.0.1 20.0.0.10
IP Range for DHCP: 20.0.0.11 to 20.0.0.245
Steps for Topology 3 1. Create a topology.
2. Configure the server.
3. In the server , go to the DHCP services and fill up the required
information.
4. Configure Router0 with the help of CLI.
5. Check Client1 IP Allocation through DHCP Sverer.
6. Check Client2 IP Allocation through DHCP Sverer.
7. Check Client3 IP Allocation through DHCP Sverer.
8. Check Client4 IP Allocation through DHCP Sverer.
Topology-3 Server Configuration Screen Shot (IP Assignment and DHCP Table
233
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
234
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3: Router-0 Configuration Screen Shot (IP Allocation to f0/0 & f1/0, CLI)
235
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3 Client-1 IP Allocation through DHCP Server Screen Shot Router-0
236
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3 Client-2 IP Allocation through DHCP Server Screen Shot Router-0
Topology-3 Client-3 IP Allocation through DHCP Server Screen Shot Router-0
237
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3 Client-4 IP Allocation through DHCP Server Screen Shot Router-0
Topology-4 Screen Shot
Steps for Topology 4
1. Create a topology.
2. Configure the server.
3. In the server , go to the DHCP services and fill up the required information.
4. Configure Router0 with the help of CLI.(f0/0 , f0/1 , CLI)
5. Configure Router1 with the help of CLI.(f0/0 , f0/1 , CLI)
6. Check Client1 IP Allocation through DHCP Sverer for Router0.
7. Check Client2 IP Allocation through DHCP Sverer for Router0.
8. Check Client1 IP Allocation through DHCP Sverer for Router1.
9. Check Client2 IP Allocation through DHCP Sverer for Router1.
238
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
239
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Router 0
IP Range: 192.168.2.1 to 192.168.2.245
Network ID: 192.168.2.0
Gateway and its subnet: 192.168.1.1 255.255.255.0
Excluded IP range from DHCP: 192.168.2.1 192.168.2.10
IP Range for DHCP: 192.168.2.11 to 192.168.2.245
Router 1
IP Range: 192.168.3.1 to 192.168.3.245
Network ID: 192.168.3.0
Gateway and its subnet: 192.168.1.1 255.255.255.0
Excluded IP range from DHCP: 192.168.3.1 192.168.3.10
IP Range for DHCP: 192.168.3.11 to 192.168.3.245
Topology-3 Server Configuration Screen Shot (IP Assignment and DHCP Table)
240
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3: Router-0 Configuration Screen Shot (IP Allocation to f0/0 & f1/0, CLI)
241
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
242
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3: Router-1 Configuration Screen Shot (IP Allocation to f0/0 & f1/0, CLI)
243
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3 Client-1 IP Allocation through DHCP Server Screen Shot Router-0
244
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3 Client-2 IP Allocation through DHCP Server Screen Shot Router-0
Topology-3 Client-1 IP Allocation through DHCP Server Screen Shot Router-1
245
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-3 Client-2 IP Allocation through DHCP Server Screen Shot Router-1
Topology-5 Screen Shot
246
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Steps for Topology 5
1. Create a topology.
2. Configure the server.
3. In the server , go to the DHCP services and fill up the required information.
4. Configure Router0 with the help of CLI.( f0/0 & S3/0 & S2/0,RIP,CLI )
5. Configure Router1 with the help of CLI.( f0/0 & S3/0 & S2/0,RIP,CLI )
6. Configure Router2 with the help of CLI ( f0/0 & S3/0 & S2/0,RIP,CLI )
7. Check Client1 IP Allocation through DHCP Sverer for Router1.
8. Check Client2 IP Allocation through DHCP Sverer for Router1.
9. Check Client3 IP Allocation through DHCP Sverer for Router1.
10. Check Client1 IP Allocation through DHCP Sverer for Router2.
11. Check Client2 IP Allocation through DHCP Sverer for Router2.
12. Check Client3 IP Allocation through DHCP Sverer for Router2.
Router 0
Network ID: 15.0.0.0
Gateway and its subnet: 15.0.0.1 255.0.0.0
Router 1
IP Range: 18.0.0.1 to 18.0.0.245
Network ID: 18.0.0.0
Gateway and its subnet: 18.0.0.1 255.0.0.0
Excluded IP range from DHCP: 18.0.0.1 to 18.0.0.10IP
Range for DHCP: 18.0.0.11 to 18.0.0.245
Router 2
IP Range: 19.0.0.1 to 19.0.0.245
Network ID: 19.0.0.0
Gateway and its subnet: 19.0.0.1 255.0.0.0
Excluded IP range from DHCP: 19.0.0.1 19.0.0.10
IP Range for DHCP: 19.0.0.11 to 19.0.0.245
Topology-5 Server Configuration Screen Shot (IP Assignment and DHCP Table)
247
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
248
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-5: Router-0 Configuration Screen Shot (IP Allocation to f0/0 & S3/0 & S2/0,RIP,CLI)
249
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
250
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-5: Router-1 Configuration Screen Shot (IP Allocation to f0/0 & S3/0 & S2/0,RIP,CLI)
251
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-5: Router-2 Configuration Screen Shot (IP Allocation to f0/0 & S2/0 & S3/0,RIP,CLI)
252
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
253
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-5 Client-1 IP Allocation through DHCP Server Screen Shot Router-0
Topology-5 Client-2 IP Allocation through DHCP Server Screen Shot Router-0
254
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-5 Client-3 IP Allocation through DHCP Server Screen Shot Router-0
Topology-5 Client-1 IP Allocation through DHCP Server Screen Shot Router-1
255
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Topology-5 Client-2 IP Allocation through DHCP Server Screen Shot Router-1
Topology-5 Client-3 IP Allocation through DHCP Server Screen Shot Router-1
256
ENROLLMENT NUMBER : 21BEIT30122 NAME : MAITRI SHAH
Lab Exercise
1. What is scope?
2. List types of IP address Allocation methods with its brief
3. What is IP reservation?
Sign of Faculty.
257