Operating System - HP-UX
1820257 Members
2797 Online
109622 Solutions
New Discussion юеВ

telnet -s <source address> <destination host>

 
Bjarne Dein_2
Frequent Advisor

telnet -s <source address> <destination host>

Does anyone know where to get a telnet client for for HPUX, with which you can telnet from a virtual host and force the client to use a given IP/interface, when telnet'ing to another host?

The issue is, that I have a cluster with many interfaces and even more IP addresses, from which I need to connect to a given host (in this case a switch for management) and the host only accepts one specific IP.

Thank in advance!

Cheers

Bjarne Dein
Knowlegde is not to know it all, but knowing how to get it!
5 REPLIES 5
Bill Douglass
Esteemed Contributor

Re: telnet -s <source address> <destination host>

This is untried, and I don;t have the hardware free to test it out, so take this with a graion of salt.

I believe the system will bind your telnet socket to the interface that has the default route to your switch. If so, you could try adding a host route for the switch to your routing table:

route add host x.x.x.x y.y.y.y 0

where x.x.x.x is your switch IP, and y.y.y.y is the desired IP address to talk with the switch.

This assumes that the switch is on the same subnet as your host interface.
Ron Kinner
Honored Contributor

Re: telnet -s <source address> <destination host>

If you have an NT/2000 box on the network you could try letting it run fpipe.

http://www.foundstone.com/index.htm?subnav=resources/navigation.htm&subcontent=/resources/proddesc/fpipe.htm

I haven't tested it but it appears that it relays whatever you want to whatever ip and port you want it to. Then it wouldn't matter where you came from.

You might also talk to your network guy. He could let you logon to the router and telnet from there. Alternatively if you are going through his router he could set up NAT on the router so that you always appear to be the same local IP address.

Ron

Bjarne Dein_2
Frequent Advisor

Re: telnet -s <source address> <destination host>

Well Guys,

I liked the one: "add host", but since we have a couple of tusinds this will take some time and the idea is probaly not that good.

No - what I need is a

TELNET client

with a source option - like in free BSD (telnet -s ).


Cheers

Bjarne
Knowlegde is not to know it all, but knowing how to get it!
Bjarne Dein_2
Frequent Advisor

Re: telnet -s <source address> <destination host>

Hi there!

Where are all the professors in this area?

Don't anyone have a solution?

Cheers,

Bjarne:-((
Knowlegde is not to know it all, but knowing how to get it!
Ron Kinner
Honored Contributor

Re: telnet -s <source address> <destination host>

Does your HPUX box speak Perl? There is a Perl module net:telnet which allows you to specify the host. Default is "local host" but you should be able to change it to specify the IP address you want to use as the source.

http://search.cpan.org/author/JROGERS/Net-Telnet-3.03/lib/Net/Telnet.pm

Presumably since you have so many hosts to worry about you would want to automate the process so this might be a way to go.

Ron