Configuration Examples‎ > ‎HP / HPE‎ > ‎Aruba HPE‎ > ‎

DHCP Server on HPE Aruba 2930M

Aruba Switches (used to be HPE Switches) have supported DHCP for quite some time. It's easy to configure the pools for DHCP, and also how to enable static reservations.

Firstly, if you're already running DHCP - if you want to make ANY changes to the pool configuration, then you have to make sure it is disabled in the global context

conf t
dhcp-server disable

Now create your pool.

dhcp-server pool "GUEST-DHCP"
   authoritative
   default-router "192.168.0.1"
   dns-server "8.8.8.8,8.8.4.4"
   domain-name "test.local"
   lease 00:01:00
   network 192.168.0.0 255.255.254.0
   range 192.168.0.21 192.168.1.149
exit

You want to then enable it under the VLAN context

vlan 10
   name "Guest Wireless"
   ip address 192.168.0.1 255.255.254.0
   dhcp-server
 exit

Then make sure you enable it globally

conf t
dhcp-server enable

How to create static DHCP reservations on the Aruba / ArubaOS / HPE Switches

To create the individual static dhcp reservations, first disable the DHCP server on the switch

conf t
dhcp-server disable

Then you have to create an individual pool for each device. It must be in the same range as the pool you created above.


dhcp-server pool "Printer-1"
lease infinite
static-bind ip 192.168.1.250 255.255.254.0 mac 001234-5678ab
exit
   
dhcp-server pool "Printer-2"
lease infinite
static-bind ip 192.168.1.251 255.255.254.0 mac 001234-5678ac
exit
   
dhcp-server pool "Printer-3"
lease infinite
static-bind ip 192.168.1.252 255.255.254.0 mac 001234-5678ad
exi


Then remember to turn DHCP back on globally


conf t
dhcp-server enable