CentOS, Fedora
yum install ipmitool
or
Debian, Ubuntu
apt-get install ipmitool
Start
/etc/init.d/ipmi start
Check IP:
ipmitool lan print
ADD IP:
ipmitool lan set 2 ipsrc static
root@server:~|⇒
ipmitool lan set 2 ipaddr 192.1.1.10
Setting LAN IP Address to 192.1.1.10
root@server:~|⇒
ipmitool lan set 2 netmask 255.255.255.0
Setting LAN Subnet Mask to 255.255.255.0
root@server:~|⇒
ipmitool lan set 2 defgw ipaddr 192.1.1.1
Setting LAN Default Gateway IP to 192.1.1.1
root@server:~|⇒
ipmitool mc reset warm
Sent warm reset command to MC