telnet with multiple Ips

Hello
I have to do some telnet tests to a mail server
this mail server only accepts connections from certain Ips

my windows 2003 server has 5 IPS

when i open a cmd window and telnet to the remote server it uses an ip that is not the one allowed.

I can not figure out how to specify what ip to use when telneting out

i hope this makes sense

thanks
pariesAsked:
Who is Participating?
 
Encrypted1024Commented:
Ah, yes. I have experienced the same issue with testing mail issues. All of our traffic leaves from the lowest IP but we only receive mail on a higher IP. I ended up abandoning the testing.
0
 
slemmesmiCommented:
Dear paries,

you can not specify your source address from the telnet command.
Telnet use your machine's IP address, and the destionation/target will see that.
Of course you may want to "spoof" the IP address of another host, but that is another matter and I will not delve into that.

Kind regards,
Soren
0
 
Encrypted1024Commented:
I believe telnet will use the default (first) IP address assigned to that box. I am not sure if this is possible in your environment but you could switch the IP you are looking for to be the default IP.
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
slemmesmiCommented:
Dear parties,

sorry I misread your question, and missed the part "my windows 2003 server has 5 IPS".
If I understand you correctly (now), one of those 5 IP's your Windows Server 2003 has, is one that is allowed as "source IP" on your mail server.
But when you telnet from your Windows Server 2003 to your mail server, the source IP that is used, is another than "the one allowed".
One of ways you thus can achieve/force your Windows Server 2003 to use a certain NIC (hence the source IP allowed), is to disconnect/disable the other interfaces.
As this may be no good in your scenario, another way is to add a static route from your Windows Server 2003 to your mail server, using the "route add" command, and thus ensuring the path used is via the NIC/IP allowed on your mail server.
For the latter - it would be worth for you to see which network path is currently used from your Windows Server 2003 - e.g. with a "tracert [mailserver]".

Sorry for misreading your question to begin with.

Kind regards,
Soren
0
 
slemmesmiCommented:
Dear parties,

To find out about existing routes on your Windows Server 2003, run the command "route print".
This will show you information about metrics.
The metric with the lowest value (indicating a route via an interface with highest/best speed) is preferred towards a route with a higher metric value.
You can per NIC, change the metric (which by default is set to "automatic").
Hence you can for the NIC having the IP which is allowed on your mail server, "hardcode" the value '1', and for the other NIC's a higher value.
The metric setting is in the properties of the "Local Area Connection" > "Internet Protocol (TCP/IP)" Properties > Advanced.
However, be careful to test such changes on a non-productive system, prior to eventually changing on a productive, as this will change routes from the server.

Kind regards,
Soren
0
 
Encrypted1024Commented:
Do you have multiple NIC's or just 5 IP's assined to one NIC?
0
 
pariesAuthor Commented:
i just have 1 NIC with 5 ips assigned
0
 
Encrypted1024Commented:
Could you allow access to your exchange server from that IP temporarily for testing purposes?
0
 
pariesAuthor Commented:
actually i am debugging a problem with the wonderful AOL
one of the steps i have to do from my mail server is telnet into one of thier servers and give them the error codes that i recieve

when i try to telnet in now, it uses the wrong IP and AOL gives me a incorrect reverse DNS error

thanks
0
 
pariesAuthor Commented:
cause the site now makes me
0
 
KrzyviewCommented:
Does Anyone have a real Solution to this problem. My mailserver has over 250 IPs assigned to it. I get this 554 RTR:BL error if I connect with the regular IP and aol says that's a wrong response but it's the response i get. AOL wants you to actually go through the steps your server would go through in sending an email to a specific user. I can't even get to that unless I connect using :25 on the end of my local IP but when I do connect it goes straight back to a command line.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.