DHCP configuration on Cisco Router or switch

 

 DHCP configuration on Cisco Router or switch :

 ________________________________________

Follow us on Facebook

Follow us on Google+

________________________________________ 


Let's begin to configure basic DHCP on IOS-based router.
May configure through console cable or Ethernet cable, however please plug into correct port and use correct method access into IOS command line console.

To configure Cisco IOS DHCP, follow these steps, which include sample commands:
  1. Configure an IP address on the router's Ethernet port, and bring up the interface. (On an existing router, you would have already done this.)
  2. Create a DHCP IP address pool for the IP addresses you want to use.
  3. Specify the network and subnet for the addresses you want to use from the pool.
  4. Specify the DNS domain name for the clients.
  5. Specify the primary and secondary DNS servers.
  6. Specify the default router (i.e., default gateway).
  7. Specify the lease duration for the addresses you're using from the pool. (i.e: 7days and 12hours / half day)
  8. Exit Pool Configuration Mode.
Next, exclude any addresses in the pool range that you don't want to hand out.
For example, let's say that you've decided that all IP addresses up to .100 will be for static IP devices such as servers and printers. All IP addresses above .100 will be available in the pool for DHCP clients.

Here's an example of how to exclude IP addresses .100 and below:


Then, enter the ipconfig /renew command on the laptop to receive an IP address. After you have the IP address, enter the ipconfig /all command.

This is the sample output:



DHCP configuration on Cisco Router or switch :