Centos下 yum -y install OpenIPMI OpenIPMI-tools chkconfig ipmi on service ipmi start ipmitool lan set 1 ipsrc static 改为静态IP ipmitool -I open lan set 1 ipaddr 192.168.1.100 ipmitool -I open lan set 1 defgw ipaddr 192.168.1.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 检查配置是否正确 注意:redhat6.x下需要改yum源才可以使用yum安装OpenIPMI OpenIPMI-tools 更改方法如下: 1.备份rhel-source.repo ,并修改yum源 cd /etc/yum.repos.d/ cp rhel-source.repo rhel-source.repo.bak vi rhel-source.repo 添加以下配置 [base] name=CentOS-$releasever - Base baseurl=http://mirrors.163.com/centos/6.5/os/$basearch/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 #released updates [updates] name=CentOS-$releasever - Updates baseurl=http://mirrors.163.com/centos/6.5/updates/$basearch/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 #packages used/produced in the build but not released #[addons] #name=CentOS-$releasever - Addons #baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/ #gpgcheck=1 #gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras baseurl=http://mirrors.163.com/centos/6.5/extras/$basearch/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus baseurl=http://mirrors.163.com/centos/6.5/centosplus/$basearch/ gpgcheck=1 enabled=0