How to Configure DHCP in Cisco Router using Packet Tracer


OBJECT: Simulation of DHCP Configuration in Cisco Router
REQUIRED SOFTWARE: Cisco Packet Tracer 8.1.1

Network Diagram

Setup this network:

How to Configure DHCP in Cisco Router using Packet Tracer
Router#config t
Router(config)#int fa 0/0
Router(config-if)#ip address
Router(config-if)#no shut
Router(config)#ip dhcp pool gyancs
Router(config)#ip dhcp excluded-address

Introduction to DHCP 

When a host in a Computer Network wants to contact another host, then its pass must be a unique IP address. Whether it is LAN or WAN. We can also configure these IP addresses manually on every host.

But if the network is large enough then this approach will not work. In large networks you cannot manually assign IP addresses by going to each host pass. DHCP is used to solve this problem.

DHCP Protocol provides IP address to hosts. These IP addresses are assigned dynamically. DHCP always maintains a pool of IP addresses. When a host tries to connect to the network, it asks for an IP address request from DHCP.

DHCP provides the IP address to the host upon request. When the host leaves the network, this IP address comes back to the DHCP pool and becomes available for other Hosts.

The Dynamic Host Control Protocol is the Client / Server Protocol. Whose Port Number is 67.

Assigning an IP address to hosts is the first task of DHCP. But DHCP provides many information hosts besides IP address. A list of some such common information is given below.

  • IP address (Ex.

  • Subnet Mask (Ex

  • Domain Name (Ex. 

  • Default Gateway (Ex.

  • DNS Server Address 

Advantages of DHCP Protocol

Now we want to know what benefits you get from DHCP.

  • Changing the IP address in DHCP reduces the chances of errors.

  • You do not need to manage the IP address list by using DHCP. Also you do not need to manage which IP address is empty and which has been assigned. DHCP does this work automatically.

When we move the host to another network, DHCP assigns a new IP address.

Process of IP Address Configuration with DHCP

There are a few steps from requesting a host to providing an IP address. These steps are explained below.

  1. First DHCP client (host) broadcasts DHCP discover message for available DHCP servers. It is used to discover the DHCP server in the message network.

  2. After this, the DHCP server that receives this message sends an offer message to the client. The DHCP server shows its own existence through the offer message.

  3. It then broadcasts the request message to the client server for IP address and regarding information.

  4. The server then sends the information to the client via an unicast acknowledgment message.

Configuring DHCP (Dynamic Host Configuration Protocol)

DHCP server has an important role in any network. When we DHCP server can be configured on a router or switch. If you do DHCP server configuration then we should have the following information.


  • We should have a network ID. If you do not define the network ID of a subnet, then by default all the addresses are assigned.

  • We should know which IP addresses are already being used. Such as any addresses that are being used for printers, routers or other purposes. Such IP addresses are exclude in the DHCP configuration.

  • We should also know the IP address of the default router (default gateway) of the network.

You must also know the IP address of the DNS (Domain Name System) server.

Based on the above information, which is required to configure any DHCP server. The following steps are given to configure the DHCP server below. You can easily configure DHCP by following these steps.


  • We first exclude addresses that are already being used or reserved for another purpose.a

  • After that you create a pool with unique name for the subnet.

  • After this, we set the network ID and subnet mask that will be used to assign IP addresses to Server Hosts.

  • After this we do the address setting of the default gateway.

  • Then later do the address setting of the DNS server.

If we do not want to use the lease time in advance, then we can set the lease time in days, hours and minutes.


Which is as follows?

router(config)#ip dhcp excluded-address
router(config)#ip dhcp pool gyancs

See from the example above that the range of IP address is first exclude. After this a DHCP pool named gyancs has been created.

Later the network and subnet mask is given. Network is defined by NID. After this the default gateway and DNS server are defined.

Download Cisco Packet Tracer 6.22
Download Cisco Packet Tracer 8.1.1


Dear Students, This Purpose of Preparation of Computer Network Online Test is in 30 Questions English. There is a collection of questions asked in the CCNA Exam. On answering each question one point will be given. And it is mandatory to bring 50% marks to pass. To start the test you have to click on Start Button. All the questions will have to be answered. Go to Last and click on Finish Button, after which your Result will appear on the screen. After clicking Finish, there will be three option shows below 1.Restart Quiz 2.View Question 3.Show Leader-board. After filling your name and e-mail id by clicking on the show leader-board, click on send, after which your result will be shown.



1. In OSI network architecture the dialogue control and token management are responsibilities of ________

Answer is D)
session layer

2. Which one of the following is not a function of network layer?

Answer is A)
None of the these

3. The interactive transmission of data within a time sharing system may be best suited to __________

Answer is D)
half duplex

4. How many OSI layers are covered in the X.25 standard?

Answer is B)

5. The third layer of OSI model is _____

Answer is B)
network layer

6. The X.25 standard specifies a _________

Answer is B)
DTE/DCE interface

7. Which of the following signals is not standard RS-232-C signal?

Answer is D)

8. What is the minimum number of wires needed to send data over a serial communication link layer?

Answer is C)

9. Number of bits per symbol used in Baudot code is _______

Answer is D)

10. How much power a light emitting diode can couple into an optical fiber?

Answer is D)
100 microwatts

11. The transmission signal coding method of TI carrier is called _________

Answer is D)

12. Which data communication method is used to transmit the data over a serial communication link?

Answer is C)
Full duplex.

13. The receive equalizer reduces delay distortions using ________

Answer is C)

14. In communication satellite, multiple repeaters are known as

Answer is A)

15. In a synchronous modem, the receive equalizer is known as ___________ analyzer.

Answer is D)

16. Which of the following systems provides the highest data rate to an individual device?

Answer is D)
Computer bus

17. While transmitting odd -parity coded symbols, the number of zero in each symbol is _______

Answer is A)

18. A protocol is a set of rules governing a time sequence of events that must take place _________

Answer is D)
between peers

19. What is the main function of the transport layer?

Answer is C)
Process-To-Process Message Delivery

20. Session layer checkpoints _____

Answer is D)
allow just a portion of a file to be resent

21. o deliver a message to the correct application program running on a host , the _______ address must be consulted.

Answer is D)

22. When a host on network A sends a message to a host on network B, which address does the router look at?

Answer is B)

23. Which of the following is possible in a taken passing bus network?

Answer is D)
In-service expansion

24. One important characteristics of the hub architecture of ARC-net is

Answer is D)
directionalized transmission

25. What is the main purpose of a data link content mirror?

Answer is D)
To detect problems in protocol

26. Which of the following is not a standard synchronous communication protocol?

Answer is A)

27. IPV6 has _____ bit addresses.

Answer is D)

28. In fiber optics,the signal source is ______ waves.

Answer is D)

29. In an optical fiber the inner core is ______ the cladding.

Answer is D)
more dense than

30. The inner core of an optical fiber is _____ in composition.

Answer is D)
glass or plastic

About me