Nick Rout <nick <at> rout.co.nz> writes:
> > My actual question may or may not be related to the use of a sub interface. > > When I telnet into the devices from a similarly setup Debian system, I get > > a very fast response. When I telnet into the devices from a gentoo system, > > it takes 30-50s (estimate) for the login prompt response. It's almost as > > those telnet is set up to use ssh, but times out and then defaults to > > real telnet? > > 1. If this is not what's happening, what is to cause telnet to react so > > slowly? > probably dns - most servers do a reverse dns lookup when a client > connects, and if the lookup does not work the timeout can be quite > noticeably long. Nope, It's an embedded device on a flat hub with a Gentoo and Debian workstation, nothing else. Telnet to an IP address on the same class C (/24) network does not use DNS. The embedded device has no DNS or Authentication set up, as it's new right out of the box. This behavior happens with all sorts of new embedded devices, even a new cisco 1601 router. There is definate something different about telnet on a debian woody portable with a 2.4 kernel, versus a gentoo system with a 2.6.11 kernel. > > 2. Regardless of what's happening, how to I fix? When I use telnet, I > > want telnet, nice and fast, not ssh or any other protocol. > > Ideas on how to fix telnet on Gentoo? > you don't need to if i am right. DNS is not in the picture. Telnet will broadcast the IP address locally, as it's on the same class C (/24) network as the manufacturer's initial, default IP address setting. I'm going to set all of this up on a flat hub and sniff the sessions to see what the difference is. I just thought that somebody would know what has happened to telnet, as a default security precaution for newbs or something/someone has tweaked telnet (still guessing not certain yet) on Gentoo..... I'll let you guys know what I find/figure out. Where is telnet controlled, as I cannot telnet from one gentoo system to another, it's refused by default? I.E. which config files control telnet's behavior and any further reading on Gentoo's philosophy towards telnet is of interest to me. The location and sourcecode to telnet on gentoo has eluded me so far. file /usr/bin/telnet reveals: /usr/bin/telnet: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), stripped Yet looking at /usr/bin/telnet with vi it's in ascii? Definately not compile/machine code....Strange, real strange. Where's the sources, so I can read what exactly is going on with telnet? On Debian woody, /usr/bin/telnet is a link to /etc/alternatives/telnet which is in turn a link to /usr/bin/telnet.netkit. This last file is indeed a compliled executable. Gentoo has set up 'telnet' in an even more obscure fashion, probably (guessing again) with newb_security as major concern. Some explaination or documentation will save me lots of time, unravelling the telnet scharade. I have to do that, before deciding what old version of 'plain old telnet' I need to install to use with my myriad of embedded development needs to connect to simple microcontrollers that have minimalistic IP stacks..... Well the file: /usr/src/linux-2.6.11-gentoo-r11/Documentation/networking/ncsa-telnet says: NCSA telnet doesn't work with path MTU discovery enabled. This is due to a bug in NCSA that also stops it working with other modern networking code such as Solaris. The following information is courtesy of Marek <[EMAIL PROTECTED]> There is a fixed version somewhere on ftp.upe.ac.za (sorry, I don't remember the exact pathname, and this site is very slow from here). It may or may not be faster for you to get it from ftp://ftp.ists.pwr.wroc.pl/pub/msdos/telnet/ncsa_upe/tel23074.zip (source is in v230704s.zip). I have tested it with 1.3.79 (with path mtu discovery enabled - ncsa 2.3.08 didn't work) and it seems to work. I don't know if anyone is working on this code - this version is over a year old. Too bad - it's faster and often more stable than these windoze telnets, and runs on almost anything.. Debian woody file /usr/doc/telnet/copyright says: This package was split from netstd by Herbert Xu [EMAIL PROTECTED] on Mon, 28 Sep 1998 16:50:43 +1000. netstd was created by Peter Tobias [EMAIL PROTECTED] on Wed, 20 Jul 1994 17:23:21 +0200. It was downloaded from ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/. 'locate telnet' on the gentoo system reveals a large number file files. Any help or insight is appreciated. James James -- [email protected] mailing list

