LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-19-2008, 08:13 PM   #1
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
What is the purpose of 127.0.1.1?


Can someone tell me what 127.0.1.1 is and is this a recent addition? It's not localhost, and it's not the ip on any of my NICs, so what purpose does it serve?
 
Old 11-19-2008, 08:46 PM   #2
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Refer to this thread
 
Old 11-19-2008, 08:49 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
Thanks! I did search, but somehow I missed that.
 
Old 11-19-2008, 09:03 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Let me tag on a similarly straightforward question.

On all my PCs, I have a firewall rule, ... accept all connections from 192.168.123.0/24 ... It allows any PC on my router to communicate for purposes of FTP, etc. I used to set the acceptable ip to 192.168.123.0/8 which also apparently worked, but someone told me that was wrong, it should be 192.168.123.0/24

Has anyone seen a thread that explains that?
 
Old 11-19-2008, 10:23 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by rickh View Post
Let me tag on a similarly straightforward question.

On all my PCs, I have a firewall rule, ... accept all connections from 192.168.123.0/24 ... It allows any PC on my router to communicate for purposes of FTP, etc. I used to set the acceptable ip to 192.168.123.0/8 which also apparently worked, but someone told me that was wrong, it should be 192.168.123.0/24

Has anyone seen a thread that explains that?
Wouldn't 192.168.123.0/8 allow anything through from 192.*.*.* whereas 192.168.123.0/24 allows only from 192.168.123.* ? IOW, netmask is 0xff000000 rather than the desired 0xffffff00.
 
Old 11-19-2008, 10:24 PM   #6
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
192.168.123.0/8 might considered wrong simply because you have some of the host bits set, but its essentially the same as 192.0.0.0/8. The number following the / is the number of bits used in the network designation.
 
Old 11-19-2008, 11:42 PM   #7
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
OK. Vote seems to be that 24 is correct. Seems backward to me. Guess I'll have to study it.
 
Old 11-20-2008, 12:06 AM   #8
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
The number after the slash ("/") is the number of bits that must match in the IP to be tested starting from the MSB. A "/2" would be 0xc0000000, a "/16" would be 0xffff0000 and so on. A bit set ON says the bit must be on in the tested IP. A bit set OFF says that the bit can be either ON or OFF in the tested IP.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Purpose? kienjakenobi LinuxQuestions.org Member Intro 3 03-18-2008 05:49 PM
Sendmail : relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refuse macadam Linux - Software 0 09-23-2007 02:44 PM
mailer=relay, pri=30008, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Con pralhad Linux - Software 1 08-11-2007 10:49 AM
purpose of /etc/radiusclient danieldinu Slackware 2 10-27-2006 09:43 AM
DSN: Data format error & relay=[127.0.0.1] [127.0.0.1] calmbomb Linux - Software 0 11-07-2004 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration