Solved

255.255.248 netmask?  find number of subnet and host?

Posted on 2001-07-02
3
4,382 Views
Last Modified: 2012-06-22
Hi,
   If I have netmask of 255.255.248.0, how can
I find the total number of subnet it has and
what hosts belong to what subnet?
I use ip calculator, but I want to learn how
to do it manually.

thanks
0
Comment
Question by:usaperl
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
dcgames earned 50 total points
ID: 6246435
You say you want to do it manually, so that's what I'm giving.... :)

--

A mask of 255.255.248.0 can also be seen as this:

11111111.11111111.11111000.00000000

What you see is that you have 5 bits in the 3rd piece to define a network address.

5 bits = 32 addresses, but the first and last addreses are usually NOT available (.0 and .255 usually), so you have 30 addresses only in the 3rd setup.

On the HOST side, you have not 8 bits but rather 11 bits, which is 2048. But again, first and last are NOT supposed to be used.

So, the # of bits gives you the count. But, then you have to convert it to "dot notation". Your available network addresses are:

xxxxxxxx.yyyyyyyy.zzzzz000.00000000

zzzzz is 00000 to 11111 binary or 0 to 31 decimal, but in DOT notation you take the 000 at the end also, so the network addresses possible are
00000+000 = .0 (not valid)
00001+000 = .8
00010+000 = .16
00011+000 = .24
00100+000 = .32
00101+000 = .40 .. etc.

A simple way is to take the number of zero bits (3) which means binary 7 (111=7) and add one. (8). Now count by 8 starting with zero but ignore 0 and 255. so the valid subnets are: 8, 16, 24, 32, 40, 48, 56, 64, 72, ...

Given any network address, say x.y.32.0, what is the range of host numbers?

well, it's really x.y.00100 + 000.00000000, so:

000.00000000 makes x.y.32.0 (invalid (.0))
000.00000001 makes x.y.32.1 ok
..
000.11111110 makes x.y.32.254 ok
000.11111111 makes x.y.32.255 usually NOT ok (255) but in THEORY ok because real "host" is 000.11111111 not 111.11111111 (all ones) which is the REAL end of the subnet. BUT, I recommend NOT using it anyway because SOME software can get confused.

keep going with:

001.00000000 makes x.y.33.0 (still in same subnet, VALID in THEORY again because it's not the start of the sub-net, but I would ignore it for the same reason)

001.00000001 makes x.y.33.1 ok.
etc.

All the way to:

111.11111110 makes x.y.39.254 = ok
111.11111111 makes x.y.39.255 = NOT VALID (end of subnet)

So, while theory says you have 2^11-2 = 2048-2 = 2046 hosts, I say 2^11 - 2*7 = 2048-14 = 2034 hosts.

I hope I got this right. Did it on the fly

Dave



0
 
LVL 5

Expert Comment

by:dcgames
ID: 6246436
p.s. this is explained in FULL in

http://www.learntosubnet.com

But specially in:

http://www.learntosubnet.com/Subnet_Section_helper.htm

Dave
0
 

Author Comment

by:usaperl
ID: 6246671
excellent info...
thanks
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SonicWall Max Connection Setting 7 37
FTP Transfer Speeds ... 6 70
Vmotion configuration 4 53
Sonos and 5ghz 14 42
This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question