IPMI BMC 配置教程

一、配置IPMI账户

1-1.查看 IPMI 用户列表

ipmitool user list 1

1-2. 将 admin 用户(ID 2)设置为完整管理员权限

ipmitool channel setaccess 1 2 callin=on ipmi=on link=on privilege=4

1-3. 启用 admin 用户/关闭admin 用户

ipmitool user enable 2
ipmitool user disable 2

1-4. 查看 IPMI 用户列表

ipmitool user list 1


正常情况下 admin 应显示类似: 
2 admin true true true ADMINISTRATOR

1-5.设置 admin 用户密码

ipmitool user set password 2 '新密码'


成功时会显示:
Set User Password command successful (user 2)

1-6.给ID2创建一个用户名为admin的账户(如果已经存在则会创建失败):

ipmitool user set name 2 admin

1-7.配置其他用户为出厂设置,下面拿用户ID3的用户举例。

ipmitool channel setaccess 1 3 callin=on ipmi=off link=off privilege=15
ipmitool user disable 3
ipmitool user set name 3 ""

二、配置IPMI网络

2-1.查看IPMI的IP地址:

sudo ipmitool lan print 1

2-2.设置静态IP地址:

sudo ipmitool lan set 1 ipsrc static
sudo ipmitool lan set 1 ipaddr 0.0.0.0
sudo ipmitool lan set 1 netmask 0.0.0.0
sudo ipmitool lan set 1 defgw ipaddr 0.0.0.0

2-3.设置为DHCP模式:

sudo ipmitool lan set 1 ipsrc dhcp

2-4.重置BMC

ipmitool bmc reset cold

end…