Many times my network adapter just stops working, the only option is to reboot anyway.Is there a way to reset network adapter in a session so I won't have to reboot my computer many times?
There is an answer that may work for you:
If you really want to reset the network adapter you usually need to unload and reload the kernel module that it uses.
If you just want to reconfigure it you can usually do:
sudo /etc/init.d/network-manager restart
But if you just want a new dhcp lease (that's the technical name for obtain a new IP from the router), you just need to use:
sudo dhclient -v eth1
Source: https://askubuntu.com/questions/54710/how-do-i-reset-the-network-adapter-using-a-terminal-command
-
-
@personinsack can you check this thread : ubuntuforums.org/archive/index.php/t-913407.html last message from a member named "desconocido". – mtilhan Sep 29 '15 at 12:46
I use this command and it works just fine for me:
sudo service network-manager restart
I use it to restart wifi whenever it stops working (it was much more of an issue after new release of Ubuntu/Xubuntu 16.04, in Loki it's much more stable for me so I use it very little, usually after many suspends).
lshw -c network
if you need help with this. – elmato Sep 26 '15 at 9:44