cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ss_daveh
New Contributor III

Setup DHCP reservation

Jump to solution

I want to setup a DHCP pool and have two addresses that receive DHCP, but will always get that address as this device will be moved from the network often.

I know the option for ip dhcp database local allows for persistance if the router is rebooted but could not find an option to map a specific address to a MAC address or other option.

My thought was to set the DHCP lease timer to be something high, like 1 week, but have not tested any other caveats of this. Does anybody have any suggestions?


Thanks

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
Anonymous
Not applicable

Re: Setup DHCP reservation

Jump to solution

Hi ss_daveh:

Thanks for posting your question in the Support Community.  Here's an example configuration with DHCP address reservations:

!

ip dhcp database local

ip dhcp excluded-address 192.168.0.1 192.168.0.99

ip dhcp excluded-address 192.168.0.200 192.168.0.254

!

ip dhcp pool "LAN"

  network 192.168.0.0 255.255.255.0

  dns-server 192.168.0.13 192.168.0.14

  default-router 192.168.0.254

!

ip dhcp pool "Mike-MacBook"

  host 192.168.0.100 255.255.255.0

  hardware-address a1:b2:c3:d4:e5:01 ethernet

!

ip dhcp pool "Henry-iMac"

  host 192.168.0.101 255.255.255.0

  hardware-address a1:b2:c3:d4:e5:02 ethernet

!


I believe reservations must be within non-excluded ranges.  Check out the application note Configuring DHCP in AOS for more, including CLI and GUI examples!


Best,

Chris


Edited to correct syntax (dhcp not dhcp-server)

View solution in original post

0 Kudos
3 Replies
Anonymous
Not applicable

Re: Setup DHCP reservation

Jump to solution

Hi ss_daveh:

Thanks for posting your question in the Support Community.  Here's an example configuration with DHCP address reservations:

!

ip dhcp database local

ip dhcp excluded-address 192.168.0.1 192.168.0.99

ip dhcp excluded-address 192.168.0.200 192.168.0.254

!

ip dhcp pool "LAN"

  network 192.168.0.0 255.255.255.0

  dns-server 192.168.0.13 192.168.0.14

  default-router 192.168.0.254

!

ip dhcp pool "Mike-MacBook"

  host 192.168.0.100 255.255.255.0

  hardware-address a1:b2:c3:d4:e5:01 ethernet

!

ip dhcp pool "Henry-iMac"

  host 192.168.0.101 255.255.255.0

  hardware-address a1:b2:c3:d4:e5:02 ethernet

!


I believe reservations must be within non-excluded ranges.  Check out the application note Configuring DHCP in AOS for more, including CLI and GUI examples!


Best,

Chris


Edited to correct syntax (dhcp not dhcp-server)

0 Kudos
ss_daveh
New Contributor III

Re: Setup DHCP reservation

Jump to solution

Worked perfect as a concept.

Not sure if its just firmware related but the CLI commands were slightly different:

'ip dhcp pool' instead of ip dhcp-server pool'

But that was a quick find and update.

Thanks for the help cj

Anonymous
Not applicable

Re: Setup DHCP reservation

Jump to solution

Good catch--thank you.  I lifted that example from an old config and the command was changed in a more recent version of AOS.  Just edited the example in case others wish to use the example after finding the article in the future. 

Chris