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 12-01-2012, 09:19 AM   #1
crs17
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Rep: Reputation: 0
Ping working in one direction only


I have a simple three node wireless linux network as follows:

hostname IP notes
crs 192.168.0.101 laptop
cuda-host 192.168.0.100 desktop
192.168.0.103 wireless router ethernetted to WIFI modem

/etc/hosts on crs and cuda-host look like:
--->
127.0.0.1 localhost
127.0.1.1 crs -or- cuda-host
192.168.0.101 crs
192.168.0.100 cuda-host
<---
From crs I can ping (and ssh) cuda-host but from cuda-host I can't ping (or ssh) crs. Instead I get:
--->
craig@cuda-host:~$ ping crs
PING crs (192.168.0.101) 56(84) bytes of data.
From cuda-host (192.168.0.100) icmp_seq=1 Destination Host Unreachable
From cuda-host (192.168.0.100) icmp_seq=2 Destination Host Unreachable
From cuda-host (192.168.0.100) icmp_seq=3 Destination Host Unreachable
<----
doing arp-scan from cuda-host I don't see crs. What I get is:
---->
craig@cuda-host:~$ sudo arp-scan -I wlan0 -l
Interface: wlan0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.0.1 1c:af:f7:cc:85:cb D-LINK INTERNATIONAL PTE LIMITED
192.168.0.103 50:63:13:c1:7d:f5 Hon Hai Precision Ind. Co.,Ltd.

2 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.8.1: 256 hosts scanned in 1.781 seconds (143.74 hosts/sec). 2 responded
<-----
D-LINK is my wireless modem. I thought .103 was my wireless modem. have never heard of the company Hon Hai. Arp-scan looks similar on crs

Any idea what's going on here?

Thanks,

Craig
 
Old 12-01-2012, 10:36 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
/etc/hosts on crs and cuda-host look like:
--->
127.0.0.1 localhost
127.0.1.1 crs -or- cuda-host
192.168.0.101 crs
192.168.0.100 cuda-host <---
I don't like that.
It's good to have the 192.168.x network in /etc/hosts (Uf the IPs are static) but I would not list a box by it's ip and 127.0.0.1. Hosts is for other boxes.

There are 3 boxes, so three lines in /etc/hosts
127.0.0.1 line
router line
other box line (crs on cuda-host; cuda-host on crs)
 
Old 12-01-2012, 02:24 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Ping is a two way test. It proved what you wanted to know in the first test. That being a connection. The things that could stop it are the ability to offer or accept icmp. That could include the host, client or any device in between or firewalls or ports.

Last edited by jefro; 12-03-2012 at 11:38 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
ping to server does not work until i ping from the other direction. weird! jstilby Linux - Networking 1 10-26-2011 07:42 AM
NFSv4 and idmapd working only in one direction afuerst Linux - Server 1 02-25-2011 11:07 PM
openvpn server and client cannot ping both direction odie_chan Linux - Networking 0 07-08-2006 12:06 AM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM
Need help\direction getting orinoco card working $hep Linux - Wireless Networking 1 03-18-2005 09:09 PM

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

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