What I Learned Today
Set IP address in CentOS

To set a static IP address (ie for a new VM from stacklet.com)

nano /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.246.30
NETMASK=255.255.255.0
GATEWAY=192.168.246.254

Then: ifdown eth0; ifup eth0

Or, to run from the command line:

ifconfig eth0 192.168.99.14 netmask 255.255.255.0 up

To configure name server:

cat > /etc/resolv.conf
search local cs.umass.edu
nameserver 128.119.240.1