CentOS 6.2: Make eth0 work with DHCP

I recently installed CentOS 6.2 in a VirtualBox and was pretty astonished, because it did not have networking or a eth0 working.

You need to change this file:
/etc/sysconfig/network-scripts/ifcfg-eth0
to this:
ONBOOT="yes"
NM_Controlled="no"
BOOTPROTO="dhcp"

More info about that problem:
http://it.toolbox.com/blogs/linux-gnu/configuring-the-ethernet-nic-in-centos-6-rhel-6-scientific-linux-6-48390

Configure eth0:
http://www.cyberciti.biz/faq/linux-configure-a-static-ip-address-tutorial/