DHCP Server on HPE Aruba ArubaOS-Switch
How to configure the built-in DHCP server on HPE Aruba ArubaOS-Switch, including DHCP pools, enabling DHCP on a VLAN, and creating static IP reservations per device.
HPE Aruba ArubaOS-Switch has a built-in DHCP server. This guide covers creating a DHCP pool, enabling it on a VLAN, and adding static reservations for individual devices.
Important: You must disable the DHCP server globally before making any changes to pool configuration.
Create a DHCP pool #
conf t
dhcp-server disable
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
exitEnable DHCP on the VLAN interface #
vlan 10
name "Guest Wireless"
ip address 192.168.0.1 255.255.254.0
dhcp-server
exit
conf t
dhcp-server enableStatic DHCP reservations #
Each reservation requires its own named pool. Disable the server first:
conf t
dhcp-server disable
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
exit
conf t
dhcp-server enableStatic reservation IPs must fall within the range defined in the main pool.