LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-04-2004, 07:48 AM   #1
mikey2gorgeous
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
eth0 shows packets but cant ping LAN


HI, new Slackware 10.0 install - got a 192.168.0.0 255.255.255.0 LAN - plug it in - nothing connects.

I did ifconfig a static IP, add route to LAN & default GW (i put the IP of my internet router on the LAN) but ping -b only returns the static ip ive put in.

Have tried configging for DHCP but no joy so want to get this working using static before i start messing about so I know what's failing.

Plugged laptop into LAN using cable going into server - works fine - so no issues there. When I ping form the server I get a flash on the LED on the switch where it's all plugged together.

IFconfig shows eth0 configged OK with packets TX & RX (different numbers unlike loopback).

Cant ping any PCs on the LAN. Router doesn't show Linux server as an 'atached device'.

Card is one listed in rc.modules - tried uncommenting the '/sbin/modprobe dmfe' for it & rebooting but no different. I think it's being recognised as ifconfig shows packets.

Newbie to linux - been working in IT with unix for a few years now.

All help appreciated.

 
Old 10-04-2004, 09:11 AM   #2
mmmm
Member
 
Registered: Oct 2004
Location: Poland
Distribution: Slack 10.1, Mandrake 10.1
Posts: 118

Rep: Reputation: 15
What does "ping server_ip" print ?
And you can't only ping?
If you can't only ping check firewall's. May server or your comp block pings ?
 
Old 10-04-2004, 09:14 AM   #3
symen
Member
 
Registered: Sep 2004
Location: Dublin
Distribution: Debian 3
Posts: 61

Rep: Reputation: 15
Can the clients ping each other?
Has your switch got an IP address? if yes, can you ping that?
Do your speeds match? does duplexing match?

If I get it right, all works fine when you're not using the switch?
 
Old 10-04-2004, 09:47 AM   #4
mikey2gorgeous
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hi all,
i can sit at a PC on the LAN & ping all the other devices on the LAN except the linux box. I can't ping anything from the Linux server BUT if I run tcpdump I can see all the network traffic on the LAN.

I have swapped cableing at the switch to use ports I know definitley work so I don't think it's that. I don't get the feeling the problem lies there.

When I ping from the Linux server I get 'Destination host unreachable'.

tcpdump said my eth0 was set to EM10MB - is it running on 10? It is capable of 100, is a moden card (bought 2 months ago) & is listed in rc.modules so I'd have thought it would use 100?? How can I config it if not?


Thanks for your prompt replies.

Mike

 
Old 10-04-2004, 10:04 AM   #5
symen
Member
 
Registered: Sep 2004
Location: Dublin
Distribution: Debian 3
Posts: 61

Rep: Reputation: 15
Destination host unreachable usually indicates an error in your routing table.
can you post the routing table?
 
Old 10-04-2004, 10:04 AM   #6
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I'm not familiar with your distro, but can you please post the output from either:

# ifconfig eth0
... or
# ip -s link show eth0

and the output of either:

# netstat -rn
...or
# ip route show
 
Old 10-04-2004, 10:16 AM   #7
mikey2gorgeous
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hi all,
I will post that later - got to manually write it - run downstairs etc - & I been at this all day & go to go shoppin'!

In the meantime, when I ping from a PC & tcpdump I see "arp who-has linuxserverhostname reply to PCthatspinging" & replies from linuxserverhostname. Dont see the pings tho!

Also - route (netstat -r) now takes an inordinately long time between showing the initial routes & the last one which is the default gateway route. Also when i kick off tcpdump it takes some time before it kicks in. Maybe just cos its a P200

Thanks again

Mike

Will post outputs later!!!
 
Old 10-04-2004, 11:16 AM   #8
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
The delays you are seeing are probably DNS related. so:

Use: netstat -rn

Use: tcpdump -ni eth0
 
Old 10-04-2004, 03:26 PM   #9
mikey2gorgeous
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
ifconfig -a...

eth0 Link encap:Ethernet HW addr: 00;60:6e:77:1b:9a
inet addr:192.168.0.21 BCast:192186.0.255 Mask 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Rx packets 10499 errors:0 dropped:0 overruns:0 frame:0
Tx packets 2970 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
Rx bytes:5075532 (4.8Mb) Tx bytes:125614 (122.6 kb)

l0 Link encap:Local loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
Rx packets 148 errors:0 dropped:0 overruns:0 frame:0
Tx packets 148 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
Rx bytes:14796 (14.4 Kb) Tx bytes:14796 (14.4 Kb)

route...

Destination Gateway Genmask Flags Metric Ref Use IFace
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 l0
default 192.168.0.1 0.0.0.0 UG 1 0 0 eth0

Thanks
 
Old 10-04-2004, 06:57 PM   #10
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Carefully review your broadcast address listed for eth0 in the ifconfig output, its wrong!
 
Old 10-05-2004, 02:11 AM   #11
mikey2gorgeous
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hi - well spotted - I had to write the stuff down & retype it into this forum - it's definitley MY mistake that one.

The broadcast address for eth0 IS 192.168.0.255.

Other than that - I can't see anything wrong with the setup I have.

When I do the tcpdump it says my eth0 is running as EN10MB - does that mean it's running 10Mb? Is there a command I can use to get/set this? Would it be able to sniff all the LAN packets ok if it's running on the wrong speed??

I may try another card if I don't get any more suggestions.

Thanks agais for your help.

Mike
 
Old 10-05-2004, 04:32 AM   #12
mikey2gorgeous
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
OK now... got hold of windump, ran it on one PC while pinging from another (AOXOMOXOA) to the linux box (192.168.0.21).

Got back...

arp-who-has 192.168.0.21 tell AOXOMOXOA
36:9c:00:60:6e:77 > 01:00;00:06:4f:00 ethertype Unknown (0x1b9a), length 60:

0x0000: 0806 xxxxxxxxxxxxxxxxxxxxxxx ...........'nw..
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ......0.6.......
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ................

where the xx's are just groups of hex that 'translate' to the symbols on the right.

To me it shows my switch & cabling are OK & that the card is able to read packets but doesn't seem to be able to send.

Any clues anyone??

Best regards

Mike
 
Old 10-05-2004, 08:03 AM   #13
mikey2gorgeous
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Again - SUSSED IT!!!

Downloaded newest module driver from maufacturer, compiled it & set rc.modules to load it - everything just sprang into life!!!

Thanks again for your help everyone.

Best Regards
Mike
 
  


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
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
ping : 37%packets lost !!!!!! Adiser Linux - Networking 7 09-08-2004 06:57 AM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
I have two net cards but only shows eth0 dexter_modem Slackware 3 07-04-2003 12:10 AM

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

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