From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f72b0,eda29bddbfcb350c X-Google-Attributes: gidf72b0,public X-Google-Thread: 10650a,eda29bddbfcb350c X-Google-Attributes: gid10650a,public X-Google-Thread: 11035d,eda29bddbfcb350c X-Google-Attributes: gid11035d,public X-Google-Thread: 1020c6,eda29bddbfcb350c X-Google-Attributes: gid1020c6,public X-Google-Thread: 11035b,c9d1de14a09fad4f X-Google-Attributes: gid11035b,public X-Google-Thread: fee84,eda29bddbfcb350c X-Google-Attributes: gidfee84,public From: bkeelerx@iwa.dp.intel.com (Bruce J. Keeler) Subject: Re: IP aliasing & telnet Date: 1998/05/15 Message-ID: #1/1 X-Deja-AN: 353542747 Distribution: inet Sender: bkeelerx@ws025.dp.intel.com References: <355B4B97.1388DC9B@cisco.com> <6jhn36$hfq$1@alpha2.radio-msu.net> Organization: Intel Corporation Newsgroups: comp.unix.internals,comp.unix.misc,comp.unix.osf.osf1,comp.unix.solaris,comp.unix.admin,comp.unix.programmers Yar Tikhiy writes: > Hello, > > In comp.unix.internals Srikanth Throvagunta wrote: > > that an interface configured with multiple IP addresses under > > different subnets is known to cause > > some problems. What, if any, are they? Has anyone experimented > > with such a setup? > > I never heard about such problems. Nor I. > > > Telnet runs off TCP port 23. There does not seem to be an option > > in telnet to specify a particular > > interface address to use (when configured with IP aliasing). > > In a nutshell, telnet does not seem to > > do a bind before a connect on the socket. Can anyone please > > spearhead the discussion? > > Telnet does not run off TCP port 23. Telnetd does :-) Even more > correctly, it is inetd which knows about the ports and addresses, > and telnetd just uses stdin and stdout. Generally speaking, > a lot of modern standalone (i.e. which does not run from inetd) > server-side software can be configured to bind to a specific > IP address. Usual inetd cannot, but xinetd (a free advanced > replacement for inetd; it seems to be for BSD only, though) can. > > SY, Yar As I read the original question, he seems to be wondering how the system chooses the source IP address when initiating an outbound connection. The answer is that it will pick the one that corresponds to the subnet it's going to. The only times that's ambiguous is when there is more than one route to the destination, or when the aliased IP addresses are on the same subnet. I can't imagine a case when either situation would cause a problem. If telnet provides no way to bind the client end of the connection, it's probably because there's no need. Bruce -- Bruce J. Keeler | Someone: Just how fast is that RS6000 box? bkeelerx@iwa.intel.dp.com | UNIX, Perl, whatever you need. | Me: Well, I don't know what its terminal I don't speak for Intel. | velocity is, but I'd sure love to find out!