DHCP Execution
DHCP Execution
DHCP EXECUTION
Practical Execution: Configure Dynamic Host
Configuration Protocol (DHCP) Using Cisco Packet Tracer
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.
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
PC1> ipconfig
Ensure that IP address, Subnet mask, Default gateway, and DNS server are
automatically assigned by the router.
Repeat the same for PC2.
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.
Step Command
Tracking Notice: This document includes digital markers and unique identifiers.