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 *****
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 *****
127.0.0.1Quote:>What is the correct IP address to designate as loopback in my (RedHat)
>hosts file, 127.0.0.0 or 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
--
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
--
"Please keep the steppes clear
Invading hordes pass this way regularly"
127.0.0.1
OGRE
>Thank you.
>***** Steve Snyder *****
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 ??
7. Why can't I bind to 127.0.0.1 (loopback?)
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!