sudo ifconfig eth0 down (shuts down the eth0 interface, releases the IP)
sudo ifconfig eth0 up (enables the eth0 interface, renews the IP)
sudo /etc/init.d/networking restart
Ref: http://www.pcmech.com/article/releasing-and-renewing-your-ip-address-in-ubuntu/