Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-02-2009, 12:01 PM
|
#1
|
|
LQ Newbie
Registered: Nov 2009
Posts: 8
Rep:
|
telnet: connect to address 192.168.15.3: No route to host
hi fellas im a new member of this group . i m developing a socket programme . my one machine1 ip = 192.168.15.3 when send a string to machine2 ip = 192.168.15.2. the prg works fine but when i do this from machine2 to machine1 this doesnot work.
I pinged each other its fine but when i tried to telnet for 192.168.15.2 to 192.168.15.3 i got this error
telnet: connect to address 192.168.15.3: No route to host
my iptables is empty n SElinux is also disabled i dont understand the prb kindly help me out
regards
M.Ahmed
|
|
|
|
11-02-2009, 12:24 PM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: Toronto Canada
Distribution: Slackware 14.0
Posts: 4,618
|
Try updating your /etc/hosts file on both machines. This is what the entries look like:
Quote:
192.168.1.50 I-Think
192.168.1.20 MrBurnie
192.168.1.27 slacker
|
One entry for each system on your sub-net.
|
|
|
|
11-02-2009, 01:11 PM
|
#3
|
|
Member
Registered: Sep 2005
Distribution: Slackware
Posts: 35
Rep:
|
What the route command says? (on 192.168.15.2)
|
|
|
|
11-03-2009, 12:39 AM
|
#4
|
|
LQ Newbie
Registered: Nov 2009
Posts: 8
Original Poster
Rep:
|
output of 'route'
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.15.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default mywimax 0.0.0.0 UG 0 0 0 eth0
|
|
|
|
11-03-2009, 12:48 AM
|
#5
|
|
LQ Newbie
Registered: Nov 2009
Posts: 8
Original Poster
Rep:
|
nothing happened with additions on /etc/hosts still the same error
|
|
|
|
11-03-2009, 07:15 AM
|
#6
|
|
Member
Registered: Sep 2005
Distribution: Slackware
Posts: 35
Rep:
|
But you are able to connect through ssh to 192.168.15.3?
Eventually try ssh -vvv for debug.
Also, try a nmap scan for 192.168.15.3 and post the results.
|
|
|
|
11-03-2009, 08:31 AM
|
#7
|
|
Senior Member
Registered: Nov 2002
Location: Toronto Canada
Distribution: Slackware 14.0
Posts: 4,618
|
Quote:
|
nothing happened with additions on /etc/hosts still the same error
|
This ping fails with the /etc/hosts table updated? Does it pick up the correct IP address when you run the ping? If not, there is something severely wrong in your TCP/IP stack.
|
|
|
|
11-03-2009, 11:53 AM
|
#8
|
|
Member
Registered: Jul 2009
Posts: 58
Rep:
|
Check out the firewall settings, I had problems similar to that and although I added rules to iptables it still didn't work because the firewall settings did have the trusted service selected.
System -> Administration -> Security Level and Firewall
Then under trusted services select telnet and whatever else you wish to use.
Regards,
Chris
|
|
|
|
11-03-2009, 08:09 PM
|
#9
|
|
Member
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247
Rep:
|
The output of #route looks ok.
It looks like the 192.168.3 is not accepting telnet connections. Is port 23 open?
|
|
|
|
11-03-2009, 08:14 PM
|
#10
|
|
Member
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702
Rep:
|
No route to host ... means that the workstation thinks it cannot get there.
As you have configured both hosts on the same network ... I would say there is something wrong with the Ethernet interface.
There was another recent post with this same problem ... it was found that the ethernet card driver was the cause.
|
|
|
|
11-03-2009, 10:21 PM
|
#11
|
|
LQ Newbie
Registered: Nov 2009
Posts: 8
Original Poster
Rep:
|
ssh is working i connect both machines with ssh
|
|
|
|
11-03-2009, 10:22 PM
|
#12
|
|
LQ Newbie
Registered: Jul 2009
Posts: 8
Rep:
|
Quote:
Originally Posted by dxqcanada
No route to host ... means that the workstation thinks it cannot get there.
|
Well deduced. It may be helpful to check the arp cache of each machine after pinging from both sides ('arp -a'), and using tcpdump (or wireshark, if you like GUIs) when initiating a ping - you should see an arp request ('who-has IPADDRESS') and then a reply, if the mac isn't already in the cache.
It is also possible there is something odd with the switch between the machines. If it is manageable you could check the mac-address table on it, too.
Hope this helps.
ch
|
|
|
|
11-03-2009, 10:27 PM
|
#13
|
|
LQ Newbie
Registered: Jul 2009
Posts: 8
Rep:
|
Quote:
Originally Posted by mohammedahmed86
ssh is working i connect both machines with ssh
|
both ping and ssh work, but telnet only runs one-way? Your socket program isn't somehow redirecting port 23 outbound to someplace weird, is it?
|
|
|
|
11-03-2009, 10:30 PM
|
#14
|
|
LQ Newbie
Registered: Nov 2009
Posts: 8
Original Poster
Rep:
|
@ chris2430 : thanks ,in fact everyone for responding to my prb. It has worked the firewall settings for TCP was not in trusted side on the receiving end .
soon will be coming with others
ThankU all.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:59 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|