Tuesday 21 July 2015

How to setup Cisco router as a DHCP server ?

In this post we are going to configure Cisco router as a DHCP server to provide dynamic address to hosts or computers.Every time a computer or hosts boots up,it will broadcast to check if there is a DHCP server which can lease an ip address to hosts.When hosts finds it,it will request to lease an ip address.That's the function of DHCP server-to allocate an IP addresses to computers.Weather it a PC or tablet ,DHCP functionality is same.Even our home routers also works as a DHCP server as well.So Let's start:
First ,go into global configuration mode :
Router>enable 
Router(config)ip dhcp pool <Pool1>  (where Pool1 is the name of the DHCP pool)
Router(dhcp-config)#network 192.168.10.0 255.255.255.0 
Router(dhcp-config)#default-router 192.168.10.1
Router(dhcp-config)#exit
Router#conf t

Where network 192.168.10.0 is your network and 255.255.255.0 is subnet mask for this network
Default-router's address is the address which the hosts used to send data to remote hosts,which is necessary if you visit internet websites.
If you find any difficulty configuring router as DHCP server,let me know and i will try to help.

No comments:

Post a Comment