yum -y install ipmitool ipmitool user list 1 (查看root用户的id编号,在后面的命令中设置) ipmitool user set password 2 meiyun230820 (2 是看到的id编号) ipmitool -I open lan set 1 ipaddr 192.168.218.65 ipmitool -I open lan set 1 defgw ipaddr 192.168.218.1 ipmitool -I open lan set 1 netmask 255.255.255.0 ipmitool -I open lan set 1 access on ipmitool -I open lan print 1