Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 157368  / 1 Year ago, mon, march 20, 2023, 9:38:45

I had internet connection, but when I upgraded my VGA and restarted my PC then everything for eth0 has gone.



When I used ifdown:



 ifdown: interface eth0 not configured


Is there something I could do?



EDIT:

Content of /etc/network/interfaces



auto lo
iface lo inet loopback


When I ifconfig I don't have these lines:



inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
inet6 addr: fe80::219:5bff:fe5e:a5e/64 Scope:Link


In the Terminal typed:



sudo gedit /etc/network/interfaces


and then added these lines in the bottom:



auto eth0
iface eth0 inet dhcp


then I typed:



sudo ifdown eth0
sudo ifup eth0


when I send the second command I received the below message:



No DHCPOFFERS received
No working leases in persistent database - sleeping


Any help?


More From » networking

 Answers
4

Try:



sudo dpkg-reconfigure network-manager 


If that doesn't work boot from a live CD, back up your old network settings, clear out any system connection file and copy over the ones from the live CD.



Change to Root:



sudo su


backup:



mv /media/<Name of your Ubuntu Partion>/etc/NetworkManager/NetworkManager.conf /media/<Name of your Ubuntu Partion>/etc/NetworkManager/NetworkManager.conf.broken


clear:



rm /media/<Name of your Ubuntu Partion>/etc/NetworkManager/system-connections/*


copy:



cp /etc/NetworkManager/NetworkManager.conf /media/<Name of your Ubuntu Partion>/etc/NetworkManager/NetworkManager.conf
cp /etc/NetworkManager/system-connections/* /media/<Name of your Ubuntu Partion>/etc/NetworkManager/system-connections/

[#27871] Monday, March 20, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iedncommon

Total Points: 200
Total Questions: 95
Total Answers: 132

Location: Tonga
Member since Mon, Aug 2, 2021
3 Years ago
iedncommon questions
Sat, Jun 4, 22, 18:20, 2 Years ago
Mon, Apr 4, 22, 08:10, 2 Years ago
Tue, Jul 6, 21, 15:11, 3 Years ago
;