"Leon." <(E-Mail Removed)> wrote:
>"William D. Tallman" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>> I'm not going to let this go untested.
>>
>> AFAIK, the loopback network of any operating system is intended solely for
>> its own use, is by convention (or perhaps standard) always 127.0.0.0 where
>> the local machine is thus 127.0.0.1,
>
>well thats correct.
>
>> and is under no circumstances safely
>> permitted to see or be seen by any other network.
>
>False. Its my interface, if I want my other to connect to it, it can.
>Thats just the same as adding an ethernet card, isnt it?
See RFC1122,
"3.2.1.3 Addressing: RFC-791 Section 3.2
...
(g) { 127, <any> }
Internal host loopback address. Addresses of this form
MUST NOT appear outside a host.
>Adding an alias 'localhost' interface will just mean that I have another
>interface with no physical connection. I already have one of those
>127.0.0.1, whats wrong with having another ?
Actually you have significantly *more* than just 1! The entire
127.x.x.x range of addresses is assigned to the loopback device
because, as ifconfig will show, it has a net mask of 255.0.0.0.
Hence if you try, for example, to ping address 127.1.220.140, it
will indeed work!
Which means that you don't need to alias anything. All you have
to do to have "another" loopback by name, is put the name into
the /etc/hosts file:
127.0.0.2 my.local.host mylocalhost
127.0.0.3 my.other.host myotherhost
And now you can ping any of those names.
>> Thus, permitting the loopback to be other than localhost.localdomain is a dangerous and
>> useless configuration; adding an alias thereto establishes such a configuration and
>> must be considered "a very BAD thing to do!!".
>
>No.
Wellllll, it depends on how one does it. Assigning
localhost.localdomain to 127.0.0.2 is fine. But doing what
RedHat and a few camp followers have done and associating that
name with 127.0.0.1 is just plain *wrong*.
See RFC1537, and read any good book on network administration.
Here are at least three,
"TCP/IP Network Administration", 2nd Ed., Hunt,
O'Reilly 1998. See pages 50-51, plus
"Running Linux", 3rd Ed., Welsh, Dalheimer and
Kaufman, O'Reilly 1999. See page 530.
"Linux Network Administrator's Guide", Kirch,
O'Reilly 1995. See pages 64 and 65.
>I already dealt with "dangerous".
>"useless". Well what if I was testing a system which was to run on three
>computers, but I had one computer. I wanted to try to simulate three
>machines as closely as possible, so that I could be sure it would work on
>three machines...
See above. Or you could also use one or more dummy devices, and
assign whatever IP addresses you wished.
(However... be forewarned that a single computer with three
ports, whether they are RS-232, ethernet, or whatever, does
*not* emulate three computers each with one port! Lots of
people have tried that and discovered that their programs
depended on synchronous processing, and worked quite differently
with the asynchronous processing of a real network.)
> So I could have the programs run on three different IP addresses.. which
>requires I have three interfaces. whats wrong with having two alias
>interfaces of the LO interface to get two extra addresses ?
>
>So its not irrelevant.
It isn't, but the means to accomplish it isn't perhaps what you
thought.
--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)
(E-Mail Removed)