LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-16-2001, 04:58 PM   #1
Jimbo Mahoney
LQ Newbie
 
Registered: Aug 2001
Distribution: Mandrake 8.0
Posts: 25

Rep: Reputation: 15
Unhappy Quick IP address question


What does the /24 and /25 etc mean on the end of an address?

e.g. 192.168.1.0/24 - I believe this means all addresses from .0 to .255?

how is it worked out?

I have searched for this info with google for a while now to no avail!

I don't understand it!

192.168.1.0/25 means .0 to .128! (I think)

How does that work?

Regards,

Jimbo
 
Old 08-16-2001, 05:46 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Re: Quick IP address question

Quote:
Originally posted by Jimbo Mahoney
What does the /24 and /25 etc mean on the end of an address?

e.g. 192.168.1.0/24 - I believe this means all addresses from .0 to .255?

how is it worked out?
Yeah thats right. The /24 is the number of bits that are masked off the IP address to work out your local subnet. For example your IP address is represent as a 32 bit binary number, so your above example of 192.168.1.0 is
Code:
00000011 00010101 10000000 00000000
and your netmask is
Code:
11111111 11111111 11111111 00000000
so when you mask off the IP address using your netmask (every bit set on the netmask masks out the corresponding bit on your IP address leaving you the maximum number of machines in your subnet) so
Code:
00000011 00010101 10000000 00000000
11111111 11111111 11111111 00000000
leaves you with 8 bits =>  ********
giving you a max number of 255 - but 255 is reserved so you can only use 0 - 254.
Quote:
Originally posted by Jimbo Mahoney
I don't understand it!
Make more sense now? I haven't tried to explain that in ages so excuse me if its a little rough. Get yourself a good book on TCP/IP if you want to know more - O'Reilly offer a good one http://www.oreilly.com/catalog/coreprot if you are interested.

cheers

Jamie...
 
Old 08-16-2001, 05:50 PM   #3
Jimbo Mahoney
LQ Newbie
 
Registered: Aug 2001
Distribution: Mandrake 8.0
Posts: 25

Original Poster
Rep: Reputation: 15
good work fella!

I undestand it a bit better now.

Thought it might be a binary thing.

Regards,

Jimbo
 
  


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
Quick iptables IP address ban? Davus Linux - Networking 2 11-18-2004 08:53 PM
Question Concerning ISO's and one quick question. evrae Linux - Software 2 06-21-2004 03:53 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
quick bb question pld Linux - Software 2 01-14-2004 04:28 PM
question about network address and broadcast address yuzuohong Linux - Networking 1 09-18-2002 11:47 AM

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

All times are GMT -5. The time now is 09:16 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