Wednesday, April 24, 2024
 Popular · Latest · Hot · Upcoming
23
rated 0 times [  23] [ 0]  / answers: 1 / hits: 160232  / 2 Years ago, fri, july 1, 2022, 3:52:12

Well ,when I turn the Router off and then I turn it on again while running Ubuntu , it doesn't obtain an IP address automatically :



enter image description here



I click on disconnect , but it remains like above.



It works only if I log out and switch to another session and then back the default one.



So How do I reset the network adapter using a terminal command, or any another suggestions?



Edit: I've tried using sudo dhclient , but it didn't work.


More From » wireless

 Answers
7

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

[#44091] Friday, July 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tonhorn

Total Points: 196
Total Questions: 118
Total Answers: 95

Location: Vanuatu
Member since Fri, May 13, 2022
2 Years ago
tonhorn questions
Tue, May 10, 22, 12:01, 2 Years ago
Sat, Dec 18, 21, 06:23, 2 Years ago
Thu, Jun 16, 22, 04:03, 2 Years ago
Fri, Apr 1, 22, 05:23, 2 Years ago
;