How to configure iLO IP using IPMITOOL on Ubuntu 24.04 on HP DL360 gen10

Setting the iLO address on an HP DL360 Gen10 does not require a reboot into the iLO configuration menu. With ipmitool the whole thing is four commands from the running Ubuntu 24.04 system.


Install ipmitool


apt install ipmitool


The tool talks to the BMC through /dev/ipmi0. If the device is missing, the kernel modules are not loaded and every command will fail with Could not open device:

modprobe ipmi_si
modprobe ipmi_devintf
ls -l /dev/ipmi0


Set the Address


Channel 1 is the dedicated iLO port on the Gen10:

ipmitool lan set 1 ipsrc static
ipmitool lan set 1 ipaddr 192.168.30.106
ipmitool lan set 1 netmask 255.255.255.0
ipmitool lan set 1 defgw ipaddr 192.168.30.1


ipsrc static comes first for a reason. iLO ships with DHCP enabled, and a manually set address stays only until the next lease renewal unless the source is switched to static.


If the iLO port is on a tagged VLAN, set it here as well:

ipmitool lan set 1 vlan id 30


Apply everything with a cold reset of the management controller:

ipmitool mc reset cold
Sent cold reset command to MC


This restarts the iLO processor only. The operating system, the running workloads and the power state of the server are untouched. The BMC needs roughly a minute to come back.


Verify


root@Linux:~# ipmitool lan print
Set in Progress : Set Complete
Auth Type Support : NONE MD5 PASSWORD
Auth Type Enable : Callback : MD5 PASSWORD
: User : MD5 PASSWORD
: Operator : MD5 PASSWORD
: Admin : MD5 PASSWORD
: OEM :
IP Address Source : Static Address
IP Address : 192.168.30.106
Subnet Mask : 255.255.255.0
MAC Address : b4:7a:f1:5f:fd:7c
SNMP Community String :
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Default Gateway IP : 192.168.30.1
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 0,1
Cipher Suite Priv Max : XuuaXXXXXXXXXXX
Bad Password Threshold : Not Available


Three lines decide whether the configuration took. Set in Progress must read Set Complete — anything else means a half-finished write. IP Address Source must read Static Address, otherwise DHCP is still in charge. And the MAC Address is the iLO port's own, not the one belonging to any of the host NICs, which is what to look for in the switch table when the address does not answer.


Test From Another Machine


List the iLO accounts to find the user to connect with:

ipmitool user list 1


Then query the server over the network from a different host:

ipmitool -I lanplus -H 192.168.30.106 -U Administrator -P PASSWORD chassis status


Remote IPMI runs over UDP 623 and needs -I lanplus for IPMI 2.0. A reply here means the address, the gateway and the credentials are all correct, and the iLO web interface will answer at the same address.