LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-31-2005, 08:45 AM   #1
barkers
Member
 
Registered: Apr 2002
Distribution: Debian
Posts: 50

Rep: Reputation: 15
Loopback IP addresses


Hi,

can anyone tell me if all addresses in 127.0.0.* ip range are loopback addresses.
I know that 127.0.0.1 is but can i use 127.0.0.2, 127.0.0.3

Grateful for any help
Thanks
Barclay
 
Old 03-31-2005, 08:59 AM   #2
mugwump84
Member
 
Registered: Mar 2005
Distribution: Arch Linux
Posts: 61

Rep: Reputation: 15
Just guessing, i'd say no.
 
Old 03-31-2005, 09:20 AM   #3
barkers
Member
 
Registered: Apr 2002
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 15
funny, everyone I've asked has said that. but i can ping them.
 
Old 03-31-2005, 10:37 AM   #4
frgtn
LQ Newbie
 
Registered: Mar 2005
Location: Kaunas, Lithuania
Distribution: Slackware 10.1
Posts: 28

Rep: Reputation: 15
Well maybe whole 127.0.0.0/24 subnet is loopback? I've just done some research, see for yourself:

Code:
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-03-31 19:34 EEST
Host 127.0.0.0 seems to be a subnet broadcast address (returned 1 extra pings).
Host localhost (127.0.0.1) appears to be up.
Host 127.0.0.2 appears to be up.
Host 127.0.0.3 appears to be up.
Host 127.0.0.4 appears to be up.
Host 127.0.0.5 appears to be up.
<...>
Host 127.0.0.254 appears to be up.
Host 127.0.0.255 appears to be up.
Nmap run completed -- 256 IP addresses (255 hosts up) scanned in 44.511 seconds
 
Old 03-31-2005, 11:03 AM   #5
doctormetal
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Rep: Reputation: 0
Quote:
Originally posted by frgtn
Well maybe whole 127.0.0.0/24 subnet is loopback? I've just done some research, see for yourself:
actually, it is 127.0.0.0/8

Quote:
Code:
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-03-31 19:34 EEST
Host 127.0.0.0 seems to be a subnet broadcast address (returned 1 extra pings).
Host localhost (127.0.0.1) appears to be up.
Host 127.0.0.2 appears to be up.
Host 127.0.0.3 appears to be up.
Host 127.0.0.4 appears to be up.
Host 127.0.0.5 appears to be up.
<...>
Host 127.0.0.254 appears to be up.
Host 127.0.0.255 appears to be up.
Nmap run completed -- 256 IP addresses (255 hosts up) scanned in 44.511 seconds
You can try other address too, like 127.254.254.254
It indeed looks like it is all loopback. Result is the same on windows XP.
 
Old 03-31-2005, 11:04 AM   #6
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
It is actually 127.0.0.0/8 that is reserved as the loopback interface.
 
Old 04-01-2005, 02:36 AM   #7
barkers
Member
 
Registered: Apr 2002
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 15
coolio, thanks.

What does it means when you say "27.0.0.0/24 subnet" or "27.0.0.0/8 subnet"?
does that refer to the number of addresses that can be used?
I'm a bit of a newbie to networking.

cheers
 
Old 04-07-2005, 02:10 PM   #8
frgtn
LQ Newbie
 
Registered: Mar 2005
Location: Kaunas, Lithuania
Distribution: Slackware 10.1
Posts: 28

Rep: Reputation: 15
the number after the slash means the number of bits from the left that do not change for that subnet:
127.0.0.1/8 means that first 8 bits ( 127 ) is static for this subnet and the rest 24 bits ( 3 numbers ) can vary.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Using loopback interface... ozymandias Linux - Newbie 2 10-28-2005 01:37 PM
Serial loopback max76 Programming 2 10-14-2004 10:24 AM
eth1 and loopback netmasks addresses match HELP Belize Linux - Networking 8 10-05-2003 12:37 PM
Loopback won't come up Paul_assheton Linux - Networking 8 05-20-2003 08:31 AM
debian on loopback? kamdh Linux - Distributions 0 03-17-2003 08:47 PM

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

All times are GMT -5. The time now is 09:14 PM.

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