Re: odd telnet troubles.

Richard B. Johnson (root@analogic.com)
Fri, 15 Aug 1997 21:13:18 -0400 (EDT)


On Fri, 15 Aug 1997, Chris Rogers wrote:

>
> On Thu, 14 Aug 1997, Richard B. Johnson wrote:
>
[SNIPPED]
>
> ug, no offense, but I wish people would read the whole post the first
> time. I have done this, the routing works fine. As I mentioned before,
> ping, ftp, http, traceroute, every single TCP/IP program I have tried
> EXCEPT telnet works just fine.
>
> the EXACT same network setup worked a few days ago, until I started
> playing with 2.1.47 and up, and recompiled net-tools, which is why I was
> posting to the kernel list also.
>
> on further investigation I have noticed that telnet will not work with an
> IP address that is not in my etc hosts file.
[SNIPPED DEMO]

I did read the entire text of your reported problem. As I usually do, I
attempted to duplicate your problem so that I could confirm that it has
been observed on other machines as well as yours. Since I was unable to
duplicate your problem, I remembered that there had been some changes
in ipv4 when Alexy started working upon it. One of the observed problems
was that some of the network startup files became incompatible. Therefore
I offered some advice.

Here is a session showing that your problem does not occur on this machine
which is running the latest kernel.

For this test, an empty /etc/hosts file was substituted and my nameserver
was removed from /etc/resolv.conf. This makes certain that the machine
does not know any IP addresses.

Script started on Fri Aug 15 11:46:11 1997
# ping boneserver
ping: unknown host boneserver # Note it doesn't know the address
# telnet 204.178.40.210
Trying 204.178.40.210...
Connected to 204.178.40.210.
Escape character is '^]'.

Linux 2.0.16 (boneserver) (ttyp0) # Note that I did get on.

boneserver login: root
Password:
Last login: Fri Aug 15 11:45:36 from chaos
Linux 2.0.16. (Posix).
Last backup completed Fri Aug 15 00:46:50 EDT 1997
#
# uname -n
boneserver
# exit
logout
Connection closed by foreign host.
# exit
Script done on Fri Aug 15 11:46:55 1997

Notice that there were not any "authorization" problems after the
connection either.

Cheers,
DJ
Richard B. Johnson
Analogic Corporation
Penguin : Linux version 2.1.50 on an i586 machine (66.15 BogoMips).
Warning : It's hard to stay on the trailing edge of technology.
Linux : Engineering tool
Windows : Typewriter