#!/bin/sh IPMITOOL_LAN="ipmitool lan set 2" /sbin/service ipmi start bmcip=`/sbin/ifconfig eth0 | awk '/inet addr/ {print $2}' | sed s/addr:// | awk -F. '{print $1 "." $2 "." $3+16 "." $4}'` $IPMITOOL_LAN ipsrc static sleep 60 $IPMITOOL_LAN ipaddr $bmcip sleep 60 $IPMITOOL_LAN netmask 255.255.240.0 sleep 60 $IPMITOOL_LAN defgw ipaddr 10.128.16.100 sleep 60