11-19-2021 06:50 AM
Hi All
I have seen the below on a router under the dhcp pool
reserved-only
address 172.1.1.1 hardware-address e0cb.bc8f.4839
Is this the same as a dhcp reservation using the client-identifier command or does it do something else?
Cheers
11-19-2021 06:58 AM
Hi,
To restrict address assignments from the Dynamic Host Configuration Protocol (DHCP) address pool only to the preconfigured reservations, use the reserved-only command in DHCP pool configuration mode.
11-19-2021 09:51 AM
Hello,
consider the DHCP pool below. The 'reserved-only' keyword makes sure that only the two clients with client-id reservations get an IP address (the IP addresses specified). All other DHCP requests from other clients will be denied.
Hope that makes sense...
ip dhcp pool LAN
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
reserved-only
address 192.168.1.2 client-id 0100.5079.6668.00
address 192.168.1.11 client-id 0100.5079.6668.01
11-22-2021 08:27 AM
Hi Georg
Is that really the case? Paul's comment below says different, there is not much about this command on the forums.
11-22-2021 08:57 AM
Hello,
I have tested with several clients on the same switch, only those with reservations get an IP address.
11-22-2021 10:08 AM - edited 11-22-2021 10:12 AM
Hello
@Georg Pauwen wrote:
Hello,
I have tested with several clients on the same switch,
It looks like you are not using port-based allocation, just reserving client ids?
Also you don’t have multiple dhcp pools on multiple switches supporting the same subnet for which the reserved-only keyword is use for.
11-22-2021 10:28 AM - edited 11-22-2021 10:29 AM
@paul driver In your extended (lab I guess) setup, do the clients without reservations, on other switches, get an IP address ?
Better yet, if possible, post the configs of your lab switches...
11-23-2021 12:09 AM - edited 11-23-2021 12:10 AM
Hello @Georg Pauwen
I’m not in a position to lab anything presently as for the configuration to test port based dhcp use a couple of switches and a few hosts create pools with the same subnet on both switches and test
11-22-2021 10:11 AM
Hello Carl
@carl_townshend wrote:
there is not much about this command on the forums.
Please review here
11-20-2021 08:36 AM
@carl_townshend wrote:
reserved-only
address 172.1.1.1 hardware-address e0cb.bc8f.4839
Looks like this feature is used in relation to port based dhcp allocation
(local devices attached to specific ports that require the same ip address from the same access port)
I would say most applicable in large manufacturing sites where port based dhcp is active and you have multiple dhcp pools on multiple switches for localised ip address allocation.
The reserved-only keyword allows dhcp to service clients that are directly attached to that specific switch which is running a dhcp pool thus it negates any local client obtaining ip allocation off a neighbouring switch also running a local dhcp pool for its locally attached hosts.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide