I am using modern versions of Ubuntu that use network-manager, and I would like release and renew my network settings through the commandline.
In the olden days when Ubuntu used the interfaces
file, I would simply do:
sudo /etc/init.d/networking restart
but now that no longer works.
I am looking for functionality similar to Windows' ipconfig /release
and ipconfig /renew
.
How can I release and renew network settings from the commandline interface?
sudo /etc/init.d/network-manager restart
? – migrc May 4 '16 at 8:50