Configuring a Cisco Router as a DHCP Server
To configure a Cisco router as a DHCP server, exclude addresses, create a DHCP pool, and define the network, default router, and DNS server.
Step 1: Exclude IP Addresses
Before creating a pool, exclude IP addresses that are statically assigned to devices like printers and servers using `ip dhcp excluded-address [low_ip] [high_ip]`.
Step 2: Create the DHCP Pool
Use the command `ip dhcp pool [pool_name]` to enter DHCP configuration mode, where you will define the parameters for the network.
Step 3: Define Network Parameters
Inside the pool, use `network [network_id] [subnet_mask]` to define the range, `default-router [ip]` for the gateway, and `dns-server [ip]` for DNS resolution.
❓ Frequently Asked Questions
How do I verify the DHCP configuration?
Use the command `show ip dhcp binding` to see leased IP addresses.
Can a router serve multiple DHCP pools?
Yes, a router can be configured with multiple DHCP pools for different subnets.
What happens to excluded addresses?
Excluded addresses are never assigned to DHCP clients by the router.