Here’s how to restart the network service on Ubuntu without restarting the OS

:~$ sudo /etc/init.d/networking restart