操作步骤
1、安装ipmitool
yum install ipmitool -y
2、ipmitool mc info 可以查看bmc版本(如果没输出就是ipmi挂了,不用修了)
3、ipmitool lan print 可以查看IP
4、下面我们可以通过 命令设置 IPMI 的地址(华为的独立IPMI口 是序号1开始)
[root@localhost ~]# ipmitool lan set 1 ipaddr 192.168.200.211
Setting LAN IP Address to 192.168.200.211
[root@localhost ~]# ipmitool lan set 1 netmask 255.255.255.0
Setting LAN Subnet Mask to 255.255.255.0
[root@localhost ~]# ipmitool lan set 1 defgw ipaddr 192.168.200.1
Setting LAN Default Gateway IP to 192.168.200.1
5、关掉 IPMI 的 vlan 设置
[root@localhost ~]# ipmitool lan set 1 vlan id off
6、有关于账号和密码的设置请参考以下链接:
http://47.122.68.218/2024/12/03/ipmitool-1-8-11-%e5%b8%b8%e7%94%a8%e6%93%8d%e4%bd%9c%e6%8c%87%e5%af%bc%e4%b9%a6/https://www.keke.moe/archives/1626.html