Configure DHCP server on a Cisco router or switch.
DHCP is an application layer protocol used to distribute network configuration parameters, such as IP addresses, subnet masks, default gateways, etc.. to devices on the network. a DHCP client send request to a DHCP server. A DHCP server is assigns network parameters (IP address) to the DHCP client from configured IP addresses pool
Cisco router and switches can be configured as a DHCP server, In this post I will walks you through the configuration process.
Let’s look at how to configure basic DHCP on a Cisco router. For this example, I will start with the default configuration on a Cisco router.
The following steps is to configure DHCP on Cisco IOS router
Configure Cisco router Interfaces
!— Configure an IP address on the router’s Ethernet port, and bring up the interface.
Enter configuration commands, one per line. End with CNTL/Z.
DHCP(config-if)#ip address 22.214.171.124 255.255.255.224
Configur DHCP server on Cisco router
!— Create a DHCP IP address pool.
DHCP(config-if)#ip dhcp pool ITmug_DHCP_SRV
!— Define a subnet for address pool that will be used to assign IP addresses to hosts.
DHCP(dhcp-config)#network 126.96.36.199 /27
!— Define the DNS domain name.
!— Define the DNS servers (primary and secondary DNS servers).
DHCP(dhcp-config)#dns-server 188.8.131.52 184.108.40.206
!— Define the default gateway.
!— Define the lease duration for the addresses.
!— Exclude addresses from being assigned by DHCP (static IP).
DHCP(config)#ip dhcp excluded-address 220.127.116.11 18.104.22.168
Release DHCP update command from a client PC to renew the IP address.
Helpful command to see DHCP leases that have been assigned, issue the following command.
DHCP#show ip dhcp binding
I hope this post will be useful to you. If you like the post , Please don’t forget to Vote and click the Like Button.
Email me at firstname.lastname@example.org for corrections, additions, or questions.