DHCP configuration on Cisco Router or switch :
________________________________________
Follow us on Facebook
Follow us on Google+
________________________________________
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:
- 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.)
- Create a DHCP IP address pool for the IP addresses you want to use.
- Specify the network and subnet for the addresses you want to use from the pool.
- Specify the DNS domain name for the clients.
- Specify the primary and secondary DNS servers.
- Specify the default router (i.e., default gateway).
- Specify the lease duration for the addresses you're using from the pool. (i.e: 7days and 12hours / half day)
- Exit Pool Configuration Mode.
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: