LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 02-09-2010, 09:48 PM   #1
Chaosbreaker
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Rep: Reputation: 0
RCP getting "No route to host"


Hi

I have a development area that utilizes rcp/rsh between the servers. Recently, we made a network change to have several VLANs instead of a Single-VLAN network to better simulate the actual productions environment.

After the change, all my servers are now connected via a Cisco 2960G switch. I can ping and do a traceroute to the servers but rcp connections are returning "No route to host" for two of the servers.

I have a total of 5 servers - A, B, C, X, Y. A and B is setup as a cluster, and only B is setup for rcp connection. C, X and Y have been setup for rcp as well. This is what I see:-

B can rcp to C and vice versa
B and C cannot rcp to X and Y
Y can rcp itself but cannot rcp elsewhere --> No route to host.
X can't even rcp itself --> It reports a usage error but the syntax is correct.

The closest source I have is below, but with IPtables turn on. My iptables are turn off for the setup.

RCP with IPtables

I also noted the following commands available on the Cisco switch:-
ip rcmd remote-host
ip rcmd rcp-enable


But from my reading, it only seems to allow rcp connection into the Cisco switch and not beyond.

Any suggestion would be appreciated.
I'm somewhat clueless about what's happening.

Last edited by Chaosbreaker; 02-10-2010 at 03:28 AM.
 
Old 02-10-2010, 03:24 PM   #2
mishkind
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Rep: Reputation: 0
RCP uses files like hosts.equiv and .rhosts. Make sure you have them set up to allow rcp from the source servers
 
Old 02-11-2010, 01:41 AM   #3
Chaosbreaker
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mishkind View Post
RCP uses files like hosts.equiv and .rhosts. Make sure you have them set up to allow rcp from the source servers
Thanks. I knew about this. Anyway, the initial problem have been resolved. There was an firewall up which I was not aware of and did not expect, so I had missed checking that out.

Nonetheless, I have an outstanding strange issue with the rcp command.

Server X can't even rcp itself --> It reports a usage error but the syntax is correct.

Here is the exact error:-

Code:
[RCP@localhost ~]# /usr/bin/rcp TestFile.txt 192.168.2.8:~/test.txt
sage: rcp [-p] f1 f2; or: rcp [-rp] f1 ... fn directory
As mentioned, 192.168.2.8 is the node own address.
Note that under the error, it ALWAYS appear as "sage" with the "u" dropped. This same thing is seen when I tried to rcp from other servers to this one.

I re-installed the rsh and rsh-server package but I'm still getting this.

This server houses Veritas Netbackup. Could it be that NetBackup is screwing up the rcp connection?

Any ideas anyone?
Just to add that the server can rcp to other servers, but it can't received rcp connections and always throw the error above.
Thanks.

Edit: Resolved. Uninstalled and reinstalled the rcp a few times to no avail. Shut down NetBackup services, reinstall rcp and it works. Start up NetBackup services and rcp remain working. I don't quite understand how and why NetBackup would affect rcp. Probably some glitch in my setup. Anycase, everythings good now.

Last edited by Chaosbreaker; 02-11-2010 at 02:54 AM.
 
  


Reply

Tags
linux, rcp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling a "No route to host" message in a script kaujot Programming 2 03-27-2008 06:14 PM
shorewall routing issue: "no route to host" from dmz spargonaut Linux - Networking 0 06-07-2007 10:09 AM
a/p connected, route correct, ping router: "Destination Host Unreachable". DebianEtch shinyblue Linux - Wireless Networking 1 08-29-2006 09:34 PM
could "no route to host" be caused by non-crossover cable? brandonweinberg Linux - Networking 13 01-31-2004 09:47 AM
Permanently set "route add" -host and default gw sacants Linux - Newbie 1 07-18-2003 04:04 AM


All times are GMT -5. The time now is 10:03 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration