Restart Networking Ubuntu Linux

If using ifconfig eth0 down and up on ubuntu it wont renew the IP from the DHCP server. For this we need to restart the network manager.

To restart the networking service in ubuntu in order to get new IP from DHCP

sudo service network-manager stop

sudo service network-manager start