Skip to content

Instantly share code, notes, and snippets.

@gilangvperdana
Created October 4, 2022 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilangvperdana/e97b9c605ad90f82a6efd505fe9d6c41 to your computer and use it in GitHub Desktop.
Save gilangvperdana/e97b9c605ad90f82a6efd505fe9d6c41 to your computer and use it in GitHub Desktop.
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