On 5/25/2010 8:47 AM, James Carlson wrote:
Garrett D'Amore wrote:
On 5/25/2010 6:56 AM, PRDEEP KUMAR wrote:
Hi Experts,
Am new to the networking.Is there any specific reason why
only 127.0.0.1 is used as a loop back address,why not other addresses.
Historical convention? The standards say that 127/24 is reserved for
loopback addresses.
It's actually /8. See RFC 1122 section 3.2.1.3(g), which describes an
entire Class A for loopback.
Yep. Sorry, I meant /8 -- was mixing up my endianness (8 for size of
network addr, not node addr, doh!)... the netmask is 255.0.0.0
You could use any other 127 address, I suppose (and
I've done so), but I suspect 127.0.0.1 is so firmly entrenched in the
minds of admins and developers that you'd probably find things that
break if you tried a different address.
Long ago, at a company far away, we were able to use 127.x.x.x for
private communication among a collection of interconnected machines by
configuring Ethernet interfaces with addresses like 127.1.0.1/24 and by
reconfiguring lo0, which normally is configured as 127.0.0.1/8, with
127.0.0.1/24 instead. It actually worked, and allowed customers to use
the rest of the interfaces for any legal IP address, though it wasn't
what you might call "standards conformant."
I don't know of anyone who has changed lo0's address away from 127.0.0.1
... nor any reason to do so. I suspect that wasn't the original
poster's intent, though.
I've changed lo0 once or twice before in experiments. It seemed to
work, but I don't recommend it.
-- Garrett
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org