Activating the DHCP server in a Cisco router

This article was first written in July 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/280).

Here is an example on how to configure a DHCP server on a Cisco router.

ip domain-name 195.238.2.21
ip dhcp excluded-address 192.168.64.1
ip dhcp excluded-address 192.168.1.7
ip dhcp pool DHCPPool
   import all
   network 192.168.64.0 255.255.255.0
   dns-server 195.238.2.21 195.238.2.22
   default-router 192.168.64.253
   option 150 ip 10.31.1.107

Note that the DHCP pool is 192.168.64.0/24 and that there are excluded addresses. Note also there is an extra option (here TFTP-server) configured. Everything else should be straight-forward for anybody accustomed with DHCP servers configuration.

It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone

Leave a Reply

Your email address will not be published. Required fields are marked *