LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-31-2010, 07:27 AM   #1
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Rep: Reputation: 30
Internet/network connection gone awol


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
 
Old 07-31-2010, 08:44 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,472

Rep: Reputation: 2354Reputation: 2354Reputation: 2354Reputation: 2354Reputation: 2354Reputation: 2354Reputation: 2354Reputation: 2354Reputation: 2354Reputation: 2354Reputation: 2354
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?
 
Old 07-31-2010, 11:01 AM   #3
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Thanks for the answer business kid.

Here's the output of ifconfig -v
Code:
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:14024 (13.6 KiB)  TX bytes:14024 (13.6 KiB)
eth0 doesn't show up at all.

cat /etc/resolv.conf shows this:
Code:
nameserver 192.168.1.1
For what it's worth, I can't ping 192.168.1.1

Here are the first few lines of netstat:
Code:
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  11     [ ]         DGRAM                    4681     /dev/log
unix  2      [ ]         DGRAM                    2109     @/org/kernel/udev/udevd
unix  2      [ ]         DGRAM                    4965     @/org/freedesktop/hal/udev_event
unix  3      [ ]         STREAM     CONNECTED     27242    @/var/run/hald/dbus-UDyPH1dXP3
unix  3      [ ]         STREAM     CONNECTED     27241    
unix  3      [ ]         STREAM     CONNECTED     27239    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     27238    
unix  3      [ ]         STREAM     CONNECTED     27067    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     27066    
unix  3      [ ]         STREAM     CONNECTED     22282    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     22281    
unix  3      [ ]         STREAM     CONNECTED     22220    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     22219    
unix  3      [ ]         STREAM     CONNECTED     22218    /tmp/orbit-alpha/linc-deb-0-1545cdcdbe0c6
unix  3      [ ]         STREAM     CONNECTED     22217    
unix  3      [ ]         STREAM     CONNECTED     22214    /tmp/orbit-alpha/linc-8a8-0-2960170b2aeca
unix  3      [ ]         STREAM     CONNECTED     22213    
unix  3      [ ]         STREAM     CONNECTED     22208    @/tmp/dbus-JjzIJbUKx2
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.

Thanks
Joe
 
Old 07-31-2010, 10:52 PM   #4
themanwhowas
Member
 
Registered: Nov 2005
Distribution: CentOS 5, Fedora 23
Posts: 218

Rep: Reputation: 29
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
 
Old 08-01-2010, 02:05 AM   #5
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Thanks themanwhowas.

"ifconfig -a" shows eth0 but "ifup eth0" just says "interface already configured".

I did the manual thing as you suggested:
Code:
ifconfig eth0 192.168.1.55 netmask 255.255.255.0 broadcast 192.168.1.255
but with the netmask and broadcast slightly changed to correspond with what I see when I type "ifconfig" on my other PC:
Code:
ifconfig eth0 192.168.1.2 netmask 255.255.255.248 broadcast 192.168.1.7
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
 
Old 08-01-2010, 08:36 AM   #6
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Solved, sort of. I gave up and reinstalled. It works, obviously, but I don't know how or why ....
 
Old 08-01-2010, 08:58 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
my internet connection disconnects my network connection? emre polat Linux - Networking 2 12-19-2006 01:11 PM
Internet connection via LAN network. nhydra Linux - Networking 4 05-08-2006 02:22 PM
Slow internet/network connection. cjnodell Ubuntu 2 06-19-2005 03:33 AM
No Internet Connection From Private Network jrgalan Linux - Networking 3 07-31-2003 08:19 PM
network connection over internet tcarradine Linux - Networking 0 07-10-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration