Thank you for asking this question on the Support Community. Specific information and details are explained in the Configuring DHCP in AOS document.
Step 1: Create a DHCP Pool
You should create a DHCP pool for each subnet that connects directly to the AOS product and for which you want the router to act as a DHCP server. Use the following command to create the pool:
ROUTER-NAME(config)# ip dhcp-server pool <poolname>
Note: The command-line interface (CLI) displays “Configuring New Pool <poolname>” and moves you into the DHCP server pool configuration mode. You can also edit a pool with the same command. The CLI displays “Configuring Existing Pool <poolname>.”
Step 2: Create the Network Address Pool
You assign the DHCP server address pool a subnet by specifying the network address and subnet mask:
ROUTER-NAME(config-dhcp)# network <ip address> <subnet mask | /prefix length>
For example, specify a private class C subnet:
ROUTER-NAME(config-dhcp)# network 192.168.1.0 255.255.255.0
Step 3: Assign the Default Gateway
A DHCP pool’s default gateway, or default router, is the interface through which the clients for the pool connect. This interface is almost always an Ethernet or VLAN interface. You specify a pool’s default gateway by entering the connected interface’s IP address in the DHCP pool configuration mode:
ROUTER-NAME(config-dhcp)# default-router <ip address>
Step 4: Assign the DNS Server
A DNS server tracks the IP addresses associated with specific hostnames. It translates a hostname into its IP address in response to requests from DNS clients. Clients need a DNS server so that users can enter hostnames to reach other hosts and browse the Internet. You should designate at least one DNS server for the DHCP client by entering the following command:
ROUTER-NAME(config-dhcp)# dns-server <ip address> [<secondary ip address>]
Note: You may specify an optional secondary DNS server by adding a second IP address. For example:
ROUTER-NAME (config-dhcp)# dns-server 192.168.1.25 18.104.22.168
I hope that makes sense, but please reply if you have additional questions related to this topic.
I have marked this post as "assumed answered," but do not hesitate to reply to this thread if you have further questions on this topic. I will be happy to help.
I went ahead and flagged the "Correct Answer" on this post to make it more visible and help other members of the community find solutions more easily. If you don't feel like the answer I marked was correct, feel free to come back to this post and unmark it and select another in its place with the applicable buttons. If you still need assistance, we would be more than happy to continue working with you on this - just let us know in a reply.