top of page

Configuring DHCP

  • Writer: Clifford McGraw Jr.
    Clifford McGraw Jr.
  • Feb 2, 2023
  • 1 min read


Below are the commands for configuring DHCP in a router/switch in Cisco Packet Tracer.


Replace POOLNAMEHERE with your DHCP pool's name.

For the network command use the Network's address and subnet mask

For default-router should be the default gateway of that subnet.

en
conf t
ip dhcp pool POOLNAMEHERE
network XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
default-router XXX.XXX.XXX.XXX

Rinse and repeat for more pools. Use the command below to exclude the default-router's IP address or any other IP addresses from the DHCP pool to avoid DHCP address conflicts.


ip dhcp excluded-address XXX.XXX.XXX.XXX

You may need a helper address if your DHCP server is outside of the broadcast domain of the subnet the node is in. Command below goes on the port of the default gateway of that subnet. The IP address should be the DHCP server's address.


ip helper-address XXX.XXX.XXX.XXX

Recent Posts

See All
Configuring Phones in Packet Tracer

** The commands are written for you to copy into a text editor. The words in all caps are the parameters that you need to fill in with...

 
 
 

Comments


©2022 by Clifford McGraw

bottom of page