Which is correct for loopback, 127.0.0.0 or 127.0.0.1?

Which is correct for loopback, 127.0.0.0 or 127.0.0.1?

Post by Steve Snyd » Thu, 07 May 1998 04:00:00



What is the correct IP address to designate as loopback in my (RedHat)
hosts file, 127.0.0.0 or 127.0.0.1?

Thank you.

***** Steve Snyder *****

 
 
 

Which is correct for loopback, 127.0.0.0 or 127.0.0.1?

Post by Henrik Storn » Thu, 07 May 1998 04:00:00



Quote:>What is the correct IP address to designate as loopback in my (RedHat)
>hosts file, 127.0.0.0 or 127.0.0.1?

127.0.0.1

The .0 address is the entire loopback network, not a single host
address.

--
Henrik Storner  |  "testing? What's that? If it compiles, it is good,
                |   if it boots up it is perfect."
                |                                    Linus Torvalds

 
 
 

Which is correct for loopback, 127.0.0.0 or 127.0.0.1?

Post by Frank Sweetse » Thu, 07 May 1998 04:00:00



> What is the correct IP address to designate as loopback in my (RedHat)
> hosts file, 127.0.0.0 or 127.0.0.1?

127.0.0.1 is the correct interface address.  127.0.0.0 is the network
address.

--
Frank Sweetser rasmusin at wpi.edu fsweetser at blee.net | PGP key available
paramount.res.wpi.net RH 5.0 kernel 2.0.33/2.1.99   i586 | at public servers
"Mommy, mommy, the evil person won't let me take advantage of him".
Whine whine whine.
        - Linus, responding to someone complaining about
          Linux being GPL'd

 
 
 

Which is correct for loopback, 127.0.0.0 or 127.0.0.1?

Post by Alan C » Thu, 07 May 1998 04:00:00



>What is the correct IP address to designate as loopback in my (RedHat)
>hosts file, 127.0.0.0 or 127.0.0.1?

127.0.0.1

--

        "Please keep the steppes clear
         Invading hordes pass this way regularly"

 
 
 

Which is correct for loopback, 127.0.0.0 or 127.0.0.1?

Post by Clive Clomsbarro » Thu, 07 May 1998 04:00:00



> What is the correct IP address to designate as loopback in my (RedHat)
> hosts file, 127.0.0.0 or 127.0.0.1?

127.0.0.0 is the address of a "network" which happens to be local
to your computer.  127.0.0.1 is the address of the "loopback interface"
of your computer to that "network".  It works similarly for other
networks and other network interfaces.
 
 
 

Which is correct for loopback, 127.0.0.0 or 127.0.0.1?

Post by ogre900 » Fri, 08 May 1998 04:00:00


127.0.0.1

OGRE


>What is the correct IP address to designate as loopback in my (RedHat)
>hosts file, 127.0.0.0 or 127.0.0.1?

>Thank you.

>***** Steve Snyder *****

 
 
 

1. 127.0.0.0 or 127.0.0.1?

Ok... I don't really have any problems with my machine when it comes to
networking.  However, I've noticed some strange behavior.  First off, what
should the inet address for the local loopback device be?  Mine is currently
at 127.0.0.0.  I remember reading somewhere that this was a Bad Thing.
However, I can telnet to 127.0.0.0 just fine.  Here is my ifconfig:
cerebus:~/$ ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.0  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:89 errors:0 dropped:0 overruns:0
          TX packets:89 errors:0 dropped:0 overruns:0

However, localhost in my /etc/hosts is defined as 127.0.0.1.  As follows:
cerebus:~/$ cat /etc/hosts
127.0.0.1       localhost            
127.0.0.1       cerebus.bellatlantic.net cerebus

So I can also telnet to 127.0.0.1 as well.  And when I telnet to 127.0.0.1,
the number of packets transmitted and recieved changes for my loopback.  So
it appears that the loopback device is at 127.0.0.0 AND 127.0.0.1.  Is this
correct?  If not, what am I doing incorrectly?

--

2. Obtaining

3. Isn't loopback for 127.0.0.1 traffic?

4. Reservation bandwidth for streaming

5. loopback is not 127.0.0.1 ??

6. Adaptec AVA-1505 problems

7. Why can't I bind to 127.0.0.1 (loopback?)

8. gcc-2.95 and xemacs

9. Purpose of Loopback device 127.0.0.1

10. telnet: connect to address 127.0.0.1: Connection refused

11. error code 127?

12. Pointer: connect to 127.x.y.z succeeds

13. 2.4.20-rc1-ac1 kernel BUG at page_alloc.c:127!