LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-20-2003, 04:28 AM   #1
tactor
LQ Newbie
 
Registered: Aug 2003
Location: Italy
Distribution: Mandrake 10.0
Posts: 10

Rep: Reputation: 0
LAN problem (no ping)


I have installed Mandrake Linux 9.1 on a LAPTOP with a "NIC Fast Ethernet PCI Realtek RTL8139 Family" card. The system recognizes it, automatically selects the module (8139too), I think I have configured it properly, but it doesn't work: only the "ping localhost" command works, when I try to ping other addresses on the LAN the answer is "destination host unreacheable".

Ifconfig:
eth0 Link encap:Ethernet HWaddr 00:40:CA:B7:0F:7B
inet addr:192.168.0.16 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:180 (180.0 b)
Interrupt:9 Base address:0x4400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:95 errors:0 dropped:0 overruns:0 frame:0
TX packets:95 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6452 (6.3 Kb) TX bytes:6452 (6.3 Kb)

route -n:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

It's not a hub or cable problem, because the LAN works perfectly under Windows, which is also installed on the same computer.
The problem is not the APIC, because it has been disabled.
I'm not running a firewall.

Any help you can offer will be appreciated.
 
Old 08-20-2003, 07:45 AM   #2
ikkuh
LQ Newbie
 
Registered: Aug 2003
Location: Amsterdam
Distribution: OpenBSD3.4 debian wind*ws
Posts: 15

Rep: Reputation: 0
?????????????(Check your firewall rules,......)??????????????????
 
Old 08-20-2003, 08:16 AM   #3
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
What is the complete output of

#netstat -nr

You would appear not to have a gateway set.

Cheers--
Charles
 
Old 08-20-2003, 09:33 AM   #4
tactor
LQ Newbie
 
Registered: Aug 2003
Location: Italy
Distribution: Mandrake 10.0
Posts: 10

Original Poster
Rep: Reputation: 0
This is the risult of netstat -nr

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.200 0.0.0.0 UG 0 0 0 eth0
 
Old 08-20-2003, 01:31 PM   #5
Ieee
LQ Newbie
 
Registered: Aug 2003
Location: Spain
Distribution: SUSE 8.1
Posts: 4

Rep: Reputation: 0
Hi!!!
I am Ieee! And I have the very same problem.
Please if can resolve it, please send me an e-mail to alexreguart@yahoo.es and tell me how can I do it, ok?

Thank you very much!
 
Old 08-20-2003, 01:54 PM   #6
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Well, you have a gateway.

Can you post your /etc/resolv.conf file and your /etc/hosts file?

Cheers--
Charles
 
Old 08-20-2003, 03:44 PM   #7
junaid
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Cant Ping

Hi

I have the same problem on my laptop. I cant ping another RH9 box on my lan. My eth0 device is UP.

I have also tried turning the firewall (iptables) off [service iptables stop] and try the ping but still no response.

Any help will be much appreciated.

By the way, I am from Mauritius and my e-mail is jrabbani@intnet.mu.

Junaid
 
Old 08-20-2003, 05:49 PM   #8
MagDaddy
Member
 
Registered: Jul 2003
Posts: 31

Rep: Reputation: 15
What IP are you trying to ping?

When you run "mii-tool", what is the output?

-Mag
 
Old 08-21-2003, 03:18 AM   #9
TimeFade
LQ Newbie
 
Registered: Aug 2003
Location: New Hampshire
Distribution: LFS 6.1 & Gentoo
Posts: 13

Rep: Reputation: 0
I have been having a similar problem and have gone thru all the info I can find. Last night I asked a friend and he said the only thing that probably is doing it for me is the local net might not allow Unix/Linux packet travel for secure reasons. As such how would i set up my packets to look like windows packets instead of linux packets?
 
Old 08-21-2003, 03:22 AM   #10
tactor
LQ Newbie
 
Registered: Aug 2003
Location: Italy
Distribution: Mandrake 10.0
Posts: 10

Original Poster
Rep: Reputation: 0
/etc/resolv.conf
nameserver 192.168.0.200

# ppp temp entry


/etc/hosts
127.0.0.1 localhost
192.168.0.1 fabrizio
192.168.0.10 velda
192.168.0.16 enrico
192.168.0.4 marco


mii-tool -v
eth0: negotiated 100baseTx-HD, link ok
product info: vendor 00:00:00, model 0 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
link partner: 100baseTx-HD 10baseT-HD


I try to ping the IPs on my lan (192.168.0.X), but it's like the cable is unplugged...
 
Old 08-21-2003, 04:32 AM   #11
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
what does /etc/sysconfig/hwconf say about the Ethernet Card? Is the IP Address static?

Perhaps 8139too is not the exact driver match for your NIC.
 
Old 08-21-2003, 06:33 AM   #12
Ieee
LQ Newbie
 
Registered: Aug 2003
Location: Spain
Distribution: SUSE 8.1
Posts: 4

Rep: Reputation: 0
Which Kernel have you installed?

You can try to update it to the 2.4.21, probably this will resolve the problem.

Bye!
 
Old 08-21-2003, 07:06 AM   #13
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
It's always a good idea to do

iptables --list

to see if you really have turned off your firewall, alot of people get caught out, not saying any of you have but it's another check you can do.

And also

cat /proc/sys/ipv4/icmp_echo_ignore_all
you want the output to be zero

If you're only trying to ping other machines on the exact same subnet having a gateway set is irrelevant so that shouldn't be the problem

Windows packets and Linux packets ?
 
Old 08-21-2003, 08:49 AM   #14
tactor
LQ Newbie
 
Registered: Aug 2003
Location: Italy
Distribution: Mandrake 10.0
Posts: 10

Original Poster
Rep: Reputation: 0
/etc/sysconfig/hwconf doesn't exist (the hwconf file doesn't exist at all).
The kernel is already 2.4.21
iptables doesn't exist neither as command nor as file.
cat /proc/sys/ipv4/icmp_echo_ignore_all says that there is no such file (anyway I'm sure that the firewall is OFF).

I don't think the problem is linux or windows packets, because another machine on the same LAN which has both linux and windows on, works perfectly with the two of them.

I really don't have a clue...
 
Old 08-21-2003, 09:01 AM   #15
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Ok, if you're positive there are no firewall rules then it's irrelevant but

you have to be route to use the iptables command

and I missed a bit out in the path

cat /proc/sys/net/ipv4/icmp_echo_ignore_all (which is irrelevant as you can ping localhost so forget it)

You can ping 192.168.0.16 (the ip at the start of the thread) aswell as localhost?

If card is working
Everything is on the same subnet
No firewall rules

maybe try a different cable?

Last edited by Looking_Lost; 08-21-2003 at 09:02 AM.
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
routing problem: my LAN clients can't ping outside catoflu Linux - Networking 1 11-29-2005 06:03 PM
Any idea why this time I can not ping my LAN pc but can PING for ex. www.yahoo.com vakia Debian 5 09-28-2005 06:42 PM
problem to ping on my LAN feal Linux - Networking 15 09-05-2004 05:21 PM
LAN ping problem Jakerohs Linux - Networking 3 12-29-2003 12:07 PM

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

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