LinuxQuestions.org
Visit Jeremy's Blog.
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 11-12-2005, 04:30 PM   #1
krtaeous
LQ Newbie
 
Registered: Nov 2005
Location: Miami
Distribution: Fedora, OS X
Posts: 6

Rep: Reputation: 0
Can't even ping my router!


Hi all,

I'm a linux newbie, and I've just installed fedora core 4 on my pc at home. I can't seem to connect the internet. I have a D-link WiFi router and a DSL modem - everything connects fine in Win XP boot. In linus bash...

If I ping 127.0.0.1 - it works
If I ping 192.168.0.1 (my router) it is "unreachable"

ifconfig tells me this...

eth0 Link encap:Ethernet HWaddr 00:13:8F:3F:54:83
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::213:8fff:fe3f:5483/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:524 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:7 dropped:0 overruns:0 carrier:7
collisions:0 txqueuelen:1000
RX bytes:172814 (168.7 KiB) TX bytes:0 (0.0 b)
Interrupt:19 Base address:0xec00

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:1579 errors:0 dropped:0 overruns:0 frame:0
TX packets:1579 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1618534 (1.5 MiB) TX bytes:1618534 (1.5 MiB)


The HWaddr is the same as the one for the device in Win XP (I checked). So it seems my network device is working, but I can't even ping my router!

Any suggestions?
 
Old 11-12-2005, 05:07 PM   #2
julz_51
Member
 
Registered: Mar 2005
Location: France
Distribution: Gentoo, Debian, FC4
Posts: 40

Rep: Reputation: 15
Just to make sure, because I don't see anything else : you're not using wifi for that connection ?
 
Old 11-12-2005, 09:30 PM   #3
krtaeous
LQ Newbie
 
Registered: Nov 2005
Location: Miami
Distribution: Fedora, OS X
Posts: 6

Original Poster
Rep: Reputation: 0
Nope, it's a cat-5 cable into the router.
 
Old 11-12-2005, 09:41 PM   #4
Kyocera
LQ Newbie
 
Registered: Nov 2005
Location: North Carolina
Distribution: Xandros 3.0.2
Posts: 6

Rep: Reputation: 0
I am a newbie to linux but not networking so I speak from a strictly networking perspective. Usually when you get a destination host unreachable, you are not in the same subnet, i.e. the router IP is 192.168.0.1 and yours is something completely different, is DHCP enabled on the router? Check your network config on your machine and make sure you are close to the IP address of your router or that DHCP is working properly on your machine.
 
Old 11-12-2005, 10:25 PM   #5
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Not to get into a whole thing here, but you can see from the ifconfig output that the computer is on the same subnet as the router ...

To the original poster -- Please post the output of the "route" command. Also try to ping 192.168.0.101. If you can't ping yourself, you certainly can't ping anything else.

It looks like the interface is able to Rx packets, but not Tx them.... Note the errors on the transmit side of the interface, and the fact that it hasn't sent any
 
Old 11-12-2005, 10:37 PM   #6
Kyocera
LQ Newbie
 
Registered: Nov 2005
Location: North Carolina
Distribution: Xandros 3.0.2
Posts: 6

Rep: Reputation: 0
Well don't "get into a whole thing then" mr. expert. I was just trying to do some basic troubleshooting. I'm sure you are a Rocket Scientist and Brain Surgeon and have plenty of time in between to state the blatently obvious. One thing I've learned in networking is there is grey areas everywhere. Thought this might be a good forum, guess I was totally wrong. 4th post and already have a know-it-all showing. Don't worry moderators I'll be gone. The router may on be using a block of IP address and not allowing any above or below, filtering. 101 should be a good address but it is not 100% sure.

Last edited by Kyocera; 11-12-2005 at 10:46 PM.
 
Old 11-12-2005, 11:03 PM   #7
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
I'm not going to apologize for stating the obvious. The alternative to leaving is to not be so sensitive and learn from others experience, which is sort of the point of a forum in the first place ...

To be 100% accurate, you're right. The router could be using a different block of IPs than what it's handing out in it's DHCP leases, but one would have to screw that up on purpose. It could also be using a different subnet mask than the leases specify, but that would have to be intentional as well.

The OP said that when booting into windows it works fine, which tells me that it's most likely not a problem with the router as 99 times out of 100 the router give the same IP to the same MAC as it doesn't care what OS you're using.

I don't know it all (and I readily admit it), but I do know a lot about networks
 
Old 11-13-2005, 06:49 AM   #8
Kyocera
LQ Newbie
 
Registered: Nov 2005
Location: North Carolina
Distribution: Xandros 3.0.2
Posts: 6

Rep: Reputation: 0
I am a member of plenty of forums and like to help out others with what I know about networking as it is my job. When one assumes that only their line of thinking will help a poster, that is a problem. To view the "obvious" is fine but in networking due to the way the devices interact there is ususally a quite "not so obvious solution" to what appeared to be an obvious one. You have to think outside the box, I know the poster tried to cover every aspect of his or her problem, but that one little thing we do not know has to be discovered. It is called troubleshooting. I don't know everything, but I really like to help people without insulting anyone (especially a newbie to this forum like myself) tact and grace and making someone feel like they too were part of the solution is how I operate.

"stares at little ducks on screen, sighs, and exits to a known friendly forum"

Last edited by Kyocera; 11-13-2005 at 06:53 AM.
 
Old 11-13-2005, 11:34 AM   #9
krtaeous
LQ Newbie
 
Registered: Nov 2005
Location: Miami
Distribution: Fedora, OS X
Posts: 6

Original Poster
Rep: Reputation: 0
Okay, I've been away for a minute, but now I'm back. Thanks for the suggestions everyone - as 192.168.0.101 is the dhcp ip windows gets, i don't think this is the problem. BTW, I think pointing out the obvious is all part of this process - i know that I need help with obvious things, especially as a linux newbie.

I tried to ping 192.168.0.101 and it DID work, no problem. I still can't ping 192.168.0.1 or connect to the net.

I just tried the route command w/ no arguments, here is what it said...

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


these little * concern me, this doesn't seem right!?
 
Old 11-13-2005, 04:04 PM   #10
julz_51
Member
 
Registered: Mar 2005
Location: France
Distribution: Gentoo, Debian, FC4
Posts: 40

Rep: Reputation: 15
I don't know for the route command, but you should try using dhcp to get your IP or pick one that is outside the dhcp range. It can be the router that doesn't recognize your computer if your ip is in the range but has not been attributed by the server.
 
Old 11-13-2005, 06:20 PM   #11
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
As a last ditch effort, you should check the speed and duplex that the card is set to. mii-tool will tell you that information (and allow you to change it). The routing table looks reasonable for your setup (pretty much like I expected).

It looks like you have a hardware problem (at least, ifconfig thinks you do). Make sure you have a link lgiht on both ends of the cable and that wiggling the cable doesn't make the connection go out. If that doesn't work, try changing cables.
 
Old 11-13-2005, 07:00 PM   #12
krtaeous
LQ Newbie
 
Registered: Nov 2005
Location: Miami
Distribution: Fedora, OS X
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for the tips guys, I pry won't mess w/ this until tomorrow (got "real" work todo unfortunately).

Re: this being a hardware problem, I am able to connect to the network with the same machine in Win XP boot. wouldn't that all but rule-out a physical problem?

I will try mii-tool tomorrow - what settings would be expected there?
 
Old 11-13-2005, 07:58 PM   #13
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Normally I would say that it working in XP would rule out an issue with hardware, but the software side of things looks good in this case. It may be that there is no hardware issue and Linux's driver for your NIC is garbage (hey, it's not unheard of) or that there really is a hardware problem but XP is able to work around it.

Note: I'm basing all this off the ifconfig output you posted at the start of this thread. This is "normal" ifconfig output (notice the lack of errors and the positive numbers in the Tx fields):

Code:
eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:10.10.10.1  Bcast:10.10.10.255  Mask:255.255.255.0
          inet6 addr: Blah   Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:862 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:231522 (226.0 KiB)  TX bytes:13821 (13.4 KiB)
          Interrupt:11 Base address:0xd000
 
Old 11-15-2005, 05:43 PM   #14
mrdeadworry
LQ Newbie
 
Registered: Oct 2005
Location: Cape Cod MA
Distribution: Fedora core 4
Posts: 2

Rep: Reputation: 0
Maybe try 192.168.1.1?
 
Old 11-16-2005, 10:39 AM   #15
linuxamateur-two-too
LQ Newbie
 
Registered: Nov 2005
Location: Basel Suisse
Posts: 18

Rep: Reputation: 0
I dont know if a dummie like me dare to get involved in this problem.

If your IP the router has given you the IP address, they evidently have a working contact.
Sigsegv noted that the RX works, but not TX. Could the firewall, as default, block everything outgoing ?
 
  


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
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
Can not ping router oigeli Linux - Networking 3 09-15-2004 02:21 PM
Can't ping router! kalleanka Linux - Networking 2 05-27-2004 01:50 AM
can ping self but not router 78silversc Linux - Networking 16 04-23-2003 02:05 AM
cant ping router johnharry Linux - Networking 3 02-17-2003 01:24 PM

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

All times are GMT -5. The time now is 08:18 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