LinuxQuestions.org
Help answer threads with 0 replies.
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 12-29-2003, 03:18 AM   #1
Jakerohs
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Rep: Reputation: 0
Question LAN ping problem


Hello! A problem someone might be able to help me with:
I have 2 computers: one with Linux, the other with WinXP. The Linux one is set up as an internet gateway; eth0 is my cable connection, eth1 is my internal lan connection that runs to the XP box.
Everything was fine until I upgraded from Mandrake 9.0 to 9.2. Now I can't ping between the two boxes. I can still ping external internet addresses from the Linux box though.
The static network settings on the XP box haven't changed: IP 192.168.0.12/24, default gateway is 192.168.0.1. The linux box eth1 static address is 192.168.0.1/24.

The precise error I get when I try to ping 192.168.0.12 from the Linux box (as root) is:

#ping -c 8 192.168.0.12
PING 192.168.0.12 (192.168.0.12) 56(84) bytes of data.
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
ping: sendmsg: Operation not permitted
From 192.168.0.1 icmp_seq=2 Destination Host Unreachable
ping: sendmsg: Operation not permitted
From 192.168.0.1 icmp_seq=3 Destination Host Unreachable

--- 192.168.0.12 ping statistics ---
2 packets transmitted, 0 received, +8 errors, 100% packet loss, time 2038ms

I get "request timed out" when I try to ping from the XP box.

I've checked the network addresses/settings on both machines and can find nothing wrong with them. The problem occurred precisely after I did the linux upgrade, so I doubt it's a cabling problem.

Oh - one more thing - I have the internet connection sharing set up via the instructions I found at the following url: en.tldp.org/HOWTO/IP-Masquerade-HOWTO/
I basically just copied and pasted an iptables config thingey and set it to start up at boot. I'm still new to this stuff, I don't know how it all works.

Anyone have any suggestions as to what my problem is?

Thanks to anyone who takes the time to answer
 
Old 12-29-2003, 03:35 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Usually you get that error when there's filtering on your local system. Most likely iptables has been configured to block ICMP echo requests to your LAN from anywhere. You have to exclude the internal firewall interface from that rule (i.e. block ICMP echo requests to the LAN from everywhere, except internal interface).

Last edited by chort; 12-29-2003 at 03:37 AM.
 
Old 12-29-2003, 09:20 AM   #3
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
iptables -L
This will list the active filter rules. Posting the result from that command here would help alot in the error tracking.
 
Old 12-29-2003, 12:07 PM   #4
Jakerohs
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Ok thanks I'll get back with my findings

[edit] Yup, you were both right the iptables stuff was the problem. The install changed the location of the iptables binary, so my script couldn't find it anymore.
Everything working again! Yay!

Last edited by Jakerohs; 12-29-2003 at 09:39 PM.
 
  


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 problem (no ping) tactor Linux - Networking 18 09-02-2003 03:36 AM

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

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