LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   hosts file IP 127.0.0.2 (https://www.linuxquestions.org/questions/suse-opensuse-60/hosts-file-ip-127-0-0-2-a-273340/)

Steve Riley 01-03-2005 12:35 PM

hosts file IP 127.0.0.2
 
In my hosts file I have

127.0.0.1 localhost
127.0.0.2 linux.site linux

What is the difference between these two IPs and why do I have them both?

Thanks

jacks4u 01-03-2005 12:42 PM

I did a quick gooogle for "127.0.0.2" and lists.suse.com has a good explanation of this. -> it is a loopback device for a second NIC

hope this helps,

jacks4u

Steve Riley 01-03-2005 01:02 PM

Thanks. My bash prompt is:

user11@linux:~>

Do you know where the "linux" coming from? Is it picking up the hostname from 127.0.0.2 since there is no alias for 127.0.0.1? I don't see the prompt specified in my .bashrc or .profile files. "linux" appears whether user11 or root is logged in.

gabrielc 02-14-2012 11:33 AM

may be disabled
 
look in https then features.opensuse.org/308824
(can't post a link now)

gabrielc 02-14-2012 11:34 AM

I meant:

https://features.opensuse.org/308824

http://gitorious.org/opensuse/syscon...a5459a46aad124
http://gitorious.org/opensuse/syscon...a5459a46aad124


All times are GMT -5. The time now is 08:49 AM.