0% found this document useful (0 votes)
34 views4 pages

DHCP Execution

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views4 pages

DHCP Execution

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

11.

DHCP EXECUTION
Practical Execution: Configure Dynamic Host
Configuration Protocol (DHCP) Using Cisco Packet Tracer

Step-by-Step Execution (GUI Method)


1. Launch Cisco Packet Tracer:
Open Cisco Packet Tracer software.
2. Create a New Network:
Drag and drop PCs, Switches, and Routers onto the workspace to create a basic
network.
Connect the PCs to the Switch using Copper Straight-Through cables and the
Switch to the Router using Copper Straight-Through cables.
3. Assign IP Addresses to Router Interfaces:
Click on the Router to open its Config tab.
Assign IP addresses to the router interfaces connected to the network.
Example:
Router interface GigabitEthernet0/0: 192.168.1.1/24 (for the LAN network)
Router interface GigabitEthernet0/1: 192.168.2.1/24 (for the WAN network)
4. Enable DHCP on Router:
Go to the CLI tab of the router and enter the following commands to configure DHCP on
the router:

Router> enable
Router# configure terminal
Router(config)# ip dhcp pool LAN_POOL
Router(dhcp-config)# network 192.168.1.0 255.255.255.0
Router(dhcp-config)# default-router 192.168.1.1
Router(dhcp-config)# dns-server 8.8.8.8
Router(dhcp-config)# lease 0 12
Router(dhcp-config)# exit
Router(config)# ip dhcp excluded-address 192.168.1.1 192.168.1.10
Router(config)# exit

Explanation:
ip dhcp pool LAN_POOL: Defines the DHCP pool named "LAN_POOL".
network 192.168.1.0 255.255.255.0: Defines the IP address range for the DHCP
pool.
default-router 192.168.1.1: Specifies the default gateway (router's interface IP).
dns-server 8.8.8.8: Specifies Google's DNS server.
lease 0 12: Defines the lease time for DHCP-assigned addresses.
ip dhcp excluded-address: Excludes the first 10 addresses from the DHCP pool
(for static assignments).
5. Configure DHCP on PCs:
Go to each PC and open the Config tab.
Under the IP Configuration section, select DHCP to automatically obtain an IP address
from the DHCP server (router).
6. Verify DHCP Configuration:
On PC1, go to the Command Prompt and type:

ipconfig

Verify that the IP address and other network details have been automatically
assigned (e.g., 192.168.1.x, Subnet Mask, Gateway).
On PC2, repeat the same steps to ensure it also gets a DHCP-assigned IP address.

Step-by-Step Execution (CLI Method)


1. Launch Cisco Packet Tracer:
Open Cisco Packet Tracer and create the network topology as described above.
2. Assign IP Addresses to Router Interfaces:
Enter the following commands to configure IP addresses on the router’s interfaces:

Router> enable
Router# configure terminal
Router(config)# interface gigabitethernet0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# interface gigabitethernet0/1
Router(config-if)# ip address 192.168.2.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit

3. Enable DHCP on Router:


To configure DHCP on the router, use the following commands:

Router(config)# ip dhcp pool LAN_POOL


Router(dhcp-config)# network 192.168.1.0 255.255.255.0
Router(dhcp-config)# default-router 192.168.1.1
Router(dhcp-config)# dns-server 8.8.8.8
Router(dhcp-config)# lease 0 12
Router(dhcp-config)# exit
Router(config)# ip dhcp excluded-address 192.168.1.1 192.168.1.10
Router(config)# exit

4. Configure DHCP on PCs:


For each PC, go to the CLI and configure it to obtain an IP address automatically via
DHCP:

PC1> ip address dhcp

5. Verify DHCP Configuration:


On PC1, use the following command to verify the IP address configuration:

PC1> ipconfig

Ensure that IP address, Subnet mask, Default gateway, and DNS server are
automatically assigned by the router.
Repeat the same for PC2.

Verification and Troubleshooting


1. Verify DHCP Lease on Router:
On the router, you can verify the DHCP lease and bindings using the following
command:

Router# show ip dhcp binding

This command will show the active DHCP lease assignments, including IP address,
MAC address, and lease expiration.
2. Verify DHCP on PCs:
On each PC, ensure that the IP address is obtained automatically using the ipconfig
command.
If the IP address is not assigned, check the following:
Ensure the PC is configured to obtain the IP address via DHCP.
Ensure the Router DHCP pool is properly configured.
3. Verify Exclusion Range:
Ensure that the IP address range excluded from the DHCP pool (e.g., 192.168.1.1 to
192.168.1.10) is not assigned by DHCP.

Summary of Key Commands:

Step Command

Enter Global Router# configure terminal


Configuration Mode
Step Command
Assign IP Address to Router(config)# interface gigabitethernet0/0 Router(config-
Router if)# ip address [IP address] [Subnet mask]
Enable DHCP Pool Router(config)# ip dhcp pool LAN_POOL
Exclude DHCP Range Router(config)# ip dhcp excluded-address [IP address range]
Verify DHCP Binding Router# show ip dhcp binding
Configure DHCP on PC1# ip address dhcp
PC
Verify IP Configuration PC1# ipconfig
on PC

© 2024 by 42_Daksh (♔). All rights reserved.


These notes and study materials are the intellectual property of 42_Daksh (♔). Unauthorized use
is prohibited, Unauthorized reproduction, distribution, or modification is prohibited.

For permissions or inquiries, please contact the creator directly([email protected])

Tracking Notice: This document includes digital markers and unique identifiers.

You might also like