Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setting IPMI with IPMITOOL

Brief

We can set our IPMI just with IPMITOOL.

Installation IPMITOOL

apt update -y
apt install -y ipmitool

Create User

  • Assume username is user_admin
  • Assume password is helloworld
ipmitool user list
ipmitool user set name 1 user_admin
ipmitool user set password 1 helloworld
ipmitool user enable 1
ipmitool channel setaccess 2 1 callin=on ipmi=on link=on privilege=4

HPE

  • Assume Ip Addr we set is 172.20.255.253/16 with default Gateway 172.20.0.1
ipmitool lan set 2 ipsrc static
ipmitool lan set 2 ipaddr 172.20.255.253
ipmitool lan set 2 netmask 255.255.0.0
ipmitool lan set 2 defgw ipaddr 172.20.0.1
ipmitool lan set 2 vlan id 0
ipmitool lan set 2 arp respond on
ipmitool lan set 2 snmp public
ipmitool lan set 2 auth ADMIN MD2,MD5,PASSWORD
ipmitool lan set 2 access on
ipmitool mc reset cold
  • Access on https://172.20.255.253

IBM

  • Assume Ip Addr we set is 172.20.255.254/16 with default Gateway 172.20.0.1
ipmitool lan set 1 ipsrc static
ipmitool lan set 1 ipaddr 172.20.255.254
ipmitool lan set 1 netmask 255.255.0.0
ipmitool lan set 1 defgw ipaddr 172.20.0.1
ipmitool lan set 1 arp respond on
ipmitool lan set 1 snmp public
ipmitool lan set 1 auth ADMIN MD2,MD5,PASSWORD
ipmitool lan set 1 access on
ipmitool mc reset cold
  • Access on http://172.20.255.254

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment