mpkilroy Asked: 2010-06-30 07:16:06 +0800 CST2010-06-30 07:16:06 +0800 CST 2010-06-30 07:16:06 +0800 CST telnet source IP 772 I have a multihomed Windows 2003 server. Is there a way to specify the source IP address to use with the telnet client? windows-server-2003 telnet 3 Answers Voted Best Answer Warner 2010-06-30T07:23:46+08:002010-06-30T07:23:46+08:00 You could add a static route to the host you are connecting to. For example... You connect to 10.10.6.5 Interface 1: 192.168.1.50/32 Interface 2: 192.168.2.50/32 Default gateway: 192.168.1.1 Static route for 192.168.2.0/24 to 192.168.2.1 If you want to connect to 10.10.6.5 via 192.168.2.1, you add this static route: route add 10.10.6.5 mask 255.255.255.255 192.168.2.52 dave 2012-02-23T04:28:49+08:002012-02-23T04:28:49+08:00 on linux, it's telnet -b source-ip dest-ip to "bind" to a different interface Gerald Combs 2010-06-30T08:31:08+08:002010-06-30T08:31:08+08:00 You could use ncat: ncat -s 10.0.50.3 -t 10.1.1.1
You could add a static route to the host you are connecting to.
For example...
You connect to 10.10.6.5
Interface 1: 192.168.1.50/32
Interface 2: 192.168.2.50/32
Default gateway: 192.168.1.1
Static route for 192.168.2.0/24 to 192.168.2.1
If you want to connect to 10.10.6.5 via 192.168.2.1, you add this static route:
route add 10.10.6.5 mask 255.255.255.255 192.168.2.52
on linux, it's
to "bind" to a different interface
You could use ncat: