第一步
cp /etc/issue /etc/issue.bak
第二步
在 /etc/rc.local 添加如下程序
cp /etc/issue.bak /etc/issue
echo Server IP:`/sbin/ifconfig | grep "inet addr" | grep -v "127.0.0.1" | awk '{ print $2 }' | awk -F: '{ print $2 }'` >> /etc/issue
echo "" >> /etc/issue
第三步
OK,收工!