Skip to content
Related Articles

Related Articles

DHCP Server Configuration in Cisco

View Discussion
Improve Article
Save Article
  • Last Updated : 22 Jun, 2022
View Discussion
Improve Article
Save Article

DHCP is a network management protocol used in networks to dynamically assign IP addresses and other network configuration information like default gateway, mask, DNS server address, etc. It is an application layer protocol. 

In this article, we will know about DHCP server configuration using Cisco Packet Tracer.

Steps to Configure and Verify DHCP Server in Cisco Packet Tracer:

Step 1: First, open the cisco packet tracer desktop and select the devices given below:

S.NODeviceModel-NameUnit
1.PCPC5
2.SwitchPT-Switch2
3.RouterPT-Router1
4.ServerServer-PT1
  • Now create a network topology as shown below the image.
  • Use an Automatic connecting cable to connect the devices with others.

 

Step 2: Configure the Server with IPv4 address and Subnet Mask according to the Data given above.

  • To assign an IP address in Server, click on Server-PT.
  • Then, go to desktop and IP configuration and there you will find IPv4 configuration.
  • Add IPv4 address, subnet mask, and Default Gateway.
ParametersAddress value
IPv4 Address172.168.10.2
Subnet Mask255.255.255.0
Default-Gateway172.168.10.1

 

2. Assigning IP address using the ipconfig command.

  • We can also assign an IP address with the help of a command.
  • Go to the command prompt of the server
  • Then, type ipconfig <IPv4 address><subnet mask><default gateway>(if needed)
example: ipconfig 172.168.10.2  255.255.255.0 172.168.10.1

 

Step 3: Configuring the DHCP server.

To configure the DHCP server first,

  • Click on Server then, Go to services.
  • Click on DHCP and turn on the services and, configure the DHCP server with the help of the data given below.
    • Delete the default values of Start IP Address and subnet Mask then save the info.
    • Create two new pools.

POOL1 and POOL2 and fill the data as shown in the images below. 

 

 

Step 4: Configuring Router with IPv4 Address and Subnet Mask.

IP Addressing Table for Router:

S.NODeviceInterfaceIPv4 AddressSubnet Mask
1.router0FastEthernet0/0172.168.10.1255.255.255.0
FastEthernet0/1192.168.10.1255.255.255.0
  • To assign an IP address in router0, click on router0.
  • Then, go to config and then Interfaces, and make sure to turn on the ports.
  • Then, configure the IP address in FastEthernet according to IP addressing Table.
  • Fill IPv4 address and subnet mask.

Step 5: Configuring the PCs and changing the IP configuration.

  • To assign an IP address in PC0, click on PC0.
  • Then, go to desktop and IP configuration and there you will find IPv4 configuration.
  • Change its state from static to DHCP.
  • It will automatically fetch the data and configure itself.

 

  • Repeat the same procedure with other PCs to configure them thoroughly.

Output:

 

You can also refer to the articles  DHCP server and Working of Dynamic Host Configuration Protocol for more details.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!