Operating System - HP-UX
1856494 Members
17289 Online
104113 Solutions
New Discussion

Re: Routing rcp data to a specific network

 
SOLVED
Go to solution
Joanne Keegan
Regular Advisor

Routing rcp data to a specific network

Hi Everyone,

We currently rcp logs from one site to another, and this is affecting performance for users.

How do you dictate which n/w the data is transfered on? At the moment it goes out on, say, 10.xx.1.1 (default) to 10.yy.1.1, and I want anything that goes to 10.yy.1.1 to use the 10.aa.1.1 network.

Any help will be appreciated, and I do award points.

Thanks,

Joanne
5 REPLIES 5
Michael Schulte zur Sur
Honored Contributor

Re: Routing rcp data to a specific network

Hi,

you could add a route to net 10.yy.1.1 via 10.aa.1.1

hth,

Michael
Sundar_7
Honored Contributor

Re: Routing rcp data to a specific network

Hi Joanne,

Add a route as suggested above

# route add net 10.yy.1.1 netmask xxx.xxx.xxx.xxx 10.aa.1.1

Sundar
Learn What to do ,How to do and more importantly When to do ?
Joanne Keegan
Regular Advisor

Re: Routing rcp data to a specific network

I have tried:

route add hostname 10.yy.1.1 1

This doesn't work - when using rcp, it comes back with "remshd: Login incorrect". The rcp worked fine before.

I tried the command with the netmask value, and this too doesn't work.
Sundar_7
Honored Contributor

Re: Routing rcp data to a specific network

Hi Joanne,

The target system authorizes the local system to execute remote commands based on the incoming IP address of the connection.

Add the 10.aa.1.1 IP address to the root .rhosts file in the target system.

Sundar
Learn What to do ,How to do and more importantly When to do ?
KapilRaj
Honored Contributor
Solution

Re: Routing rcp data to a specific network

A preferred method would be to call it as follows,

System-A

hostname : hpsrv01
alias for the ethernet-1 : hpsrv01-en1
alias for the ethernet-2 : hpsrv01-en2

while doing rcp , use rcp file hpsrv01-en2:from the source node. Also add the corresponding interface's IP_ADDRESS / hostname into the .rhosts


Regds,

Kaps
Nothing is impossible