What are the commands to create a DHCP pool reservation for a single host?
Brian,
To create a DHCP pool reservation for a single host, you will need to know the MAC address of the host that will be requesting DHCP. Further reference and examples are available in our "Configuring DHCP in AOS" document.
The commands to set up a single host DHCP pool are below:
1. Create a new DHCP server pool with a name indicative of the host.
(config)# ip dhcp-server pool <pool name>
2. Identify the host allowed to take the address in the pool by its MAC address:
(config-dhcp)#: hardware-address <MAC address>
For example:
(config-dhcp)#hardware-address d2:17:04:91:11:50
3. Specify the IP address for the host. The router automatically assigns the address with its natural
mask. If your organization uses variable-length subnetting, make sure to include the subnet mask or
prefix length for the host’s subnet:
(config-dhcp)# host <A.B.C.D> <subnet mask | /prefix length>
4. Specify the default gateway:
(config-dhcp)# default-router <A.B.C.D>
5. Configure other settings such as DNS and WINS servers and a domain name.
6. You can also assign the client a name:
(config-dhcp)# client-name <name>
For example: (config-dhcp)#client-name LAN2Switch
Please reply to this thread if you have any further questions or issues.
Thanks,
Noor
Brian,
To create a DHCP pool reservation for a single host, you will need to know the MAC address of the host that will be requesting DHCP. Further reference and examples are available in our "Configuring DHCP in AOS" document.
The commands to set up a single host DHCP pool are below:
1. Create a new DHCP server pool with a name indicative of the host.
(config)# ip dhcp-server pool <pool name>
2. Identify the host allowed to take the address in the pool by its MAC address:
(config-dhcp)#: hardware-address <MAC address>
For example:
(config-dhcp)#hardware-address d2:17:04:91:11:50
3. Specify the IP address for the host. The router automatically assigns the address with its natural
mask. If your organization uses variable-length subnetting, make sure to include the subnet mask or
prefix length for the host’s subnet:
(config-dhcp)# host <A.B.C.D> <subnet mask | /prefix length>
4. Specify the default gateway:
(config-dhcp)# default-router <A.B.C.D>
5. Configure other settings such as DNS and WINS servers and a domain name.
6. You can also assign the client a name:
(config-dhcp)# client-name <name>
For example: (config-dhcp)#client-name LAN2Switch
Please reply to this thread if you have any further questions or issues.
Thanks,
Noor
Brian,
I marked the question as "assumed answered" because there were no more follow up questions.
Please, do not hesitate to add additional information to this post if necessary.
Thanks,
Noor
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.
Thanks,
Levi