This Tutorial shows you how to Configure a DHCP Server on Cisco Router as shown in above Image ‘CCNA-RS-IMG-2.0‘ . To do so follow the below steps
- Router Configuration Wizard
Vishal_Router> enable
Vishal_Router# configure terminal
Vishal_Router(config)#
 Set IP Address to Router Interface
Vishal_Router(config)# interface fastEthernet 0/0
Vishal_Router(config-if)# ip address 192.168.1.1Â 255.255.255.0
Vishal_Router(config-if)# no shutdown
Vishal_Router(config-if)# exit
Vishal_Router(config)#
Verify the IP Address of Router Interface
Vishal_Router(config)# do show ip interface brief
Interface              IP-Address       OK?      Method     Status  Protocol
FastEthernet0/0   192.168.1.1   YES      manual        up              up
FastEthernet0/1     unassigned    YES       unset   administratively down down
Vlan1                     unassigned     YES      unset    administratively down down
- Enabling DHCP Service on Cisco Router
Vishal_Router(config)# service dhcp
- Configuring DHCP Server on Cisco Router
Vishal_Router(config)# ip dhcp pool LAN_Address  (Where 'LAN_Address' is name of DHCP Pool)
Vishal_Router(dhcp-config)# network 192.168.1.0Â 255.255.255.0Â Â (Network Address of DHCP Pool)
Vishal_Router(dhcp-config)# default-router 192.168.1.1Â Â (IP addresss of DHCP Server)
Vishal_Router(dhcp-config)# dns-server 8.8.8.8
Vishal_Router(dhcp-config)# exit
Vishal_Router(config)#
- Â Excluding IP address range from DHCP Network
Vishal_Router(config)# ip dhcp excluded-address 192.168.1.2Â Â 192.168.1.10Â Â (IP Range that we want to exclude from DHCP Pool)
- Â Now set PC IP setting to obtain automatically as shown in below Image ‘CCNA-RS-IMG-2.1’
- Â Verify DHCP IP Assignment from Cisco Router
Vishal_Router(config)# do show ip dhcp binding
IP address  Client-ID/Hardware address   Lease expiration   Type
192.168.1.11Â Â Â Â 00E0.8F01.DC69Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â --Â Â Â Â Â Â Â Â Â Â Â Â Â Automatic
- Â Verify Connectivity from PC to Router
C:\>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=1ms TTL=255
Reply from 192.168.1.1: bytes=32 time<1ms TTL=255
Reply from 192.168.1.1: bytes=32 time<1ms TTL=255
Reply from 192.168.1.1: bytes=32 time=34ms TTL=255
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 34ms, Average = 8ms
Hence, Connection established.