Refresh DHCP IP address in Ubuntu

bash
# Release existing
sudo dhclient -r
# Get new
sudo dhclient
# Restart networking
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start