Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have Debian testing installed on two PCs and, since an unplanned reboot (initiated by my daughter) yesterday, the network connection on the one PC no longer works.
All pings return "Network is unreachable".
I changed the network cable with one that is definitely working and the cable is not the problem.
I rebooted with Ubuntu live and there was no problem with the network connection.
My conclusion is that some setting or configuration has gone wrong on this pc, but I have no idea where to start investigating. If anybody can point me in the right direction I'd be most grateful.
I guess the basic question here is: what should be running to ensure that the network is working ...
Thanks
Joe
Last edited by Joe Soap; 07-31-2010 at 08:01 AM.
Reason: calrification
ifconfig -v
That command lists what interfaces are up. There should be
lo #Yell if you don't see this!
eth0 # should show 'inet address' if you have one, and hardware interrupt.
If that lot looks ok, post the output of 'cat /etc/resolv.conf'
Other useful commands are netstat, route. BTW, we haven't a breeze about your network, so to be more precise, we have to be told. Are you logging on to some dhcp router?
My network is a home lan. I've got an adsl modem connected to a netgear switch and 3 PCs connected to the switch. I didn't do anything to set it up or configure it - after I installed the OS everything worked. Two of the PCs run Debian testing and the other one runs sidux.
Hope that helps. Let me know what other info I should supply.
try "ifconfig -a". That will show all interfaces even those not up. The fact that eth0 is not shown with ifconfig shows that the eth0 interface is down. If ifconfig -a shows eth0, you can type "ifup eth0" to bring it back up with startup interface settings or yu can manually set them with, for example, "ifconfig eth0 192.168.1.55 netmask 255.255.255.0 broadcast 192.168.1.255"
If ifconfig -a doesn't show eth0 (or eth1 eth2 or whatever) you have a problem with the OS recognising the interface. In this case you should start with lsmod to check loaded drivers, make sure the NIC is seated correctly, perhaps try another NIC if you have one
After this it was possible to connect to the modem (192.168.1.1) but I still cannot get on the internet ("unable to connect", according to Firefox) and when I reboot, eth0 is still down, so I have to start it manually.
Any help to sort out these last two problems will be highly appreciated.
Thanks
Joe
Last edited by Joe Soap; 08-01-2010 at 02:13 AM.
Reason: correction
I had something similar last week. My desktops NIC was
non-functional even after booting into windows. I shut down the computer for a few minutes and rebooted into openSuSE. The device was working again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.