LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-13-2011, 09:53 AM   #1
fukda
LQ Newbie
 
Registered: Feb 2011
Location: Munich
Distribution: Debian Lenny
Posts: 8

Rep: Reputation: 0
Network suddenly not reachable - All common approaches fail


Hi,
here's my Problem:
Until yesterday everthing was working perfectly. Today I started my Debian Lenny and internet doesn't work.

I can't ping my router successfully:
Code:
takada:/home/sam# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.97 icmp_seq=1 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
6 packets transmitted, 0 received, +1 errors, 100% packet loss, time 5000ms
, pipe 4
Nor can i ping that computer from another computer in the network:
Code:
DieMaschine:/home/bea# ping 192.168.1.97
PING 192.168.1.97 (192.168.1.97) 56(84) bytes of data.
From 192.168.1.5 icmp_seq=1 Destination Host Unreachable
From 192.168.1.5 icmp_seq=2 Destination Host Unreachable
From 192.168.1.5 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.1.97 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3017ms
, pipe 3
This whole thing is really strange because I didn't change any network settings. It just failed to work.
Internet works on every machine except that one.
LED lights are on both on router and on network card of that computer.

Ifconfig says following:
Code:
eth0      Link encap:Ethernet  HWaddr 00:15:e9:7c:ed:7f  
          inet addr:192.168.1.97  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:21 Base address:0xb800 

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:280 errors:0 dropped:0 overruns:0 frame:0
          TX packets:280 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:27670 (27.0 KiB)  TX bytes:27670 (27.0 KiB)

I really tried to find a solution but I failed. So thanks for any help.
 
Old 02-13-2011, 09:57 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

Try to verify or change the networkcable.
Verify the settings of the router.
Verify the default GW

Kind regards
 
Old 02-13-2011, 10:15 AM   #3
fukda
LQ Newbie
 
Registered: Feb 2011
Location: Munich
Distribution: Debian Lenny
Posts: 8

Original Poster
Rep: Reputation: 0
RE

Thank you for answering.
I tested that networkcable with a laptop which worked properly.
"route add default gw 192.168.1.1" also didn't change anything.
I just looked up my router settings. It doesn't recognize my computer under plugged devices but its settings are just normal which worked well since 2 years and and also now with all other computers.
So I think it has to do something with that computer.
There also was an error message while system restart related to networking, something like
Code:
Failed to bring up eth1
siocaddrt no such process
, but I still have no idea what to do, since I'm trying to use eth0 not eth1.

Last edited by fukda; 02-13-2011 at 10:19 AM.
 
Old 02-13-2011, 10:19 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Perhaps the network card is broken.

Kind regards
 
Old 02-13-2011, 10:21 AM   #5
fukda
LQ Newbie
 
Registered: Feb 2011
Location: Munich
Distribution: Debian Lenny
Posts: 8

Original Poster
Rep: Reputation: 0
I thought this way, too. But having two network cards (eth0, eth1) I tried both already. Same result.
 
Old 02-13-2011, 10:32 AM   #6
fukda
LQ Newbie
 
Registered: Feb 2011
Location: Munich
Distribution: Debian Lenny
Posts: 8

Original Poster
Rep: Reputation: 0
RE: solved

Whoa! Somehow the names of the two network cards changed. Then when I configured my computer to use eth0 the networkcable was in eth1 and the other way round. I'm just wondering how this could happen.
So sorry for disturbing you and thank you for your help.

Regards.
 
Old 02-13-2011, 10:36 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You can mark the thread solved using the thread tools.

Kind regards
 
Old 02-13-2011, 06:45 PM   #8
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
Quote:
Originally Posted by fukda View Post
Whoa! Somehow the names of the two network cards changed. Then when I configured my computer to use eth0 the networkcable was in eth1 and the other way round. I'm just wondering how this could happen.
So sorry for disturbing you and thank you for your help.

Regards.
Network cards (and other devices) are enumerated by udev. If the enumeration order changes then the names of the cards gets swapped (names of hard drives, usb drives, etc. can change, too). The way to solve this is to write custom udev rules that assign the device name based upon unique characteristics of the cards. So, you'd write a couple of rules that basically say "For Intel NIC, assign eth0" and "For realtek NIC, assigh eth1". Then you would no longer be subject to the vagaries of enumeration order.

The exact syntax is different for different devices. I haven't had to worry about this for several udev revisions, so my knowledge of configuration is dated.

Hope this helps you get things sorted.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Network suddenly not reachable - All common approaches fail fukda Linux - Networking 2 02-14-2011 07:20 PM
RTNETLINK : Network isn't reachable rahulinux Linux - Newbie 1 02-20-2010 04:32 AM
rpcbind / portmap not actually reachable on the network? whysyn Linux - Server 2 01-06-2008 09:37 AM
Network was Reachable, But ..... _ AsiF Linux - Networking 1 06-25-2007 11:06 PM
Getting a network not reachable in suse 8.1 TyrranzzX Linux - Networking 1 12-22-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:57 AM.

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