Wednesday, 15 May 2013

Setting up DHCP and DNS services on Cisco Routers

In this blog I will explain how to setup a DHCP and DNS server on your Cisco router.

The network subnet is as follows:

Network Address:
Subnet Mask:
Dynamic Range: -
ISP DNS Server:
Subnet Domain Name: mylan.local

These commands specify the DNS server and local domain to the router:

ip domain name mylan.local
ip name-server

This command enables the Cisco DNS Service

ip dns server

Before we create our DHCP server, we should specify which IP's are not to be assigned. This being to

ip dhcp excluded-address

Now we specify our DHCP Pool:

ip dhcp pool MyLAN
   domain-name mylan.local
   lease 7

You may now wish to assign statically assigned IP addresses to various hosts on your network. You can do this by creating another DHCP pool

ip dhcp pool MyLaptop
   client-identifier 0100.0430.52c7.88

Note: The client identifier is NOT the MAC address of the client. The easiest way to find the client identifier is to connect the machine to the network and wait for it to be assigned an IP by the router.

In enable mode, type in:

show ip dhcp binding

Match the client identifier with the IP address you were dynamically assigned then create your static pool like the one mentioned above.

No comments:

Post a Comment