DHCP Configurations

Barikumamondelo
3 min readApr 16, 2024

--

As stated in the previous article, in this article we will learn how to configure a router to act as a DHCP server and lease address to hosts on a network. We will also configure the router to exclude the first 99 address (192.168.1.1–192.168.1.99) from the DHCP pool and assign host IP address from range 192.168.1.100–192.168.1.254.

Step 1: Assign the router’s interface GigabitEthernet 0/0 an IP address.

We navigate from UserExec mode to interface configuration mode through the CLI and we configure the interface Gig0/0 with an IP address of 192.168.1.1 and a subnet mask of 255.255.255.0 then we turned on the interface.

Step 2: Configure the DHCP functionalities on the router.

Here, we created a DHCP pool named POOL_ONE and we specified the network which the router assigns IP addresses from, we also added information about the default router (Default Gateway) and the DNS server.

Step 3: Exclude the first 99 addresses.

Next, we inform the router to exclude addresses within the range 192.168.1.1–192.168.1.99. Meaning when a host device request for IP configurations through DHCP, the host will be leased an address within the range 192.168.1.100–192.168.1.254. This is a good practice because in some networks, some devices like servers and other host devices might be configured statically with an IP address so it is good to exclude those addresses from the DHCP pool.

Step 4: Configure the host device via DHCP.

After configuring the host device to request for IP configuration through DHCP, we can see that the host has successfully received an IP address from the router, and it received the first available address in the pool i.e 192.168.1.100.

Extras:

After issuing the show ip dhcp pool command, we can see our configured DHCP pool with a leased address of 1 (since only one device has leased an address from the router). The show ip dhcp binding command lists the IP addresses that has been leased to host devices and the MAC address of those devices.

That will be all for this article. I do hope you learnt a thing or two from this article. Do well to reach out if you have any question, contribution or suggestion. Thank you, goodbye!

--

--