Question

Ip address

Asked by: snoozeit

Hi,

Thank you for reading my question. Here goes...

In a class C address for example 192.168.1.1   255.255.255.252, the network portion i.e. 192.168.1 how is it derived.

I  assume the 192.168 comes from class C, what about the third octet 1 does it have any bearing on how many hosts or subnets there are, if the number is changed to 10 to read 192.168.10.1 what changes can be expected in the number of hosts or octets.


I need some clarification on the above, I know binary to decimal conversion and vice versa so you may skip that part of the explanation.

Await your reply.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-05-01 at 21:32:13ID24374335
Tags

networking

,

IP classes

,

Subnetting

Topic

Network Routers

Participating Experts
3
Points
500
Comments
8

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. IP to Decimal and Decimal to IP
    Does anyone have a function that converts an IP to Decimal and a function that converts the decimal back to IP Thanks
  2. netmasking in the middle of an octet
    Hi experts. I have a network set up as 192.168.0.x with a netmask of 255.255.255.0. This network is also connected via firewall to firewall VPN tunnels over the Internet to 3 remote locations of 192.168.1.x, netmask 255.255.255.0. we will also add 2 more sites soon. The f...
  3. reading public octets
    Shame on me for not knowing the answer to this, but if i have the following octet notation AAA.BBB.CCC.32/29 then what is my ip range. I am making this worth 500 points, just because I should know this and don't

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: static-voidPosted on 2009-05-01 at 21:51:43ID: 24284872

ok the way subnetting works is that the subnet mask is a binary mask for the values of the address which are valid.
For example
255.255.255.0 == 11111111 11111111 11111111 00000000
this is a /24 and means that the first 24 bits of the specified address are within that subnet

255.255.255.252 = 11111111.11111111.11111111 11111100
that means that the last 2 bits (4 addresses) of the address are witin your subnet

for

192.168.1.1 gives 192.168.1.0-3 as .0 is reserved the valid addresses are 1-3 so a 192.168.10.1 subnet 255.255.255.252  just means 192.168.10.1-3

 

by: Cobra25Posted on 2009-05-01 at 22:18:36ID: 24284927

The subnet mask will determine the number of hosts. In your example, 192.168.1.1 255.255.255.252, since this is a class C address, we are ignoring the first 3 octets. So even if you have 192.168.10.1 255.255.255.252, you will still have the amount of hosts. Now say you had 192.168.11.1 and your mask was 255.255.0.0,we would be ignoring the first the 2 octets and we wold look at the 3rd and 4th in this case.

 

by: snoozeitPosted on 2009-05-01 at 23:08:37ID: 24285017

Thanks both explanations helped, that leads me to ask how can these two ip address (192.168.1.1-3 and 192.168.10.1-3 both on 255.255.255.252) work on one network, what can be used to connect them.

 

by: static-voidPosted on 2009-05-01 at 23:57:20ID: 24285117

you really need a router to connect them, a macine connected to both networks and forwarding traffic between them

 

by: zimbulatPosted on 2009-05-02 at 00:53:19ID: 24285262

In a class C address for example 192.168.1.1   255.255.255.252, the network portion i.e. 192.168.1 how is it derived.

-> Since you're talking about class, let's start with classful ip addressing. Defined class C as below:-

Class: C
Leading Bits: 110 (leading bits must always 110, example: 11000000.00000000.00000000.00000000 or 192.0.0.0)
Size of Network Number Bit field: 24
Size of Rest Bit field: 8
Number of Networks: 2097152 (2^14 -2)
Hosts per Network: 254 (2^8 -2)


I  assume the 192.168 comes from class C, what about the third octet 1 does it have any bearing on how many hosts or subnets there are, if the number is changed to 10 to read 192.168.10.1 what changes can be expected in the number of hosts or octets.

-> In class C, first 24 bits always represent network address. Thus, first 3 octets are reserved for network addresses, leaving last octet for hosts (2^8 -2 = 254 maximum ).

If you use "either one", 192.168.1.0 or 192.168.10.0 or 192.168.x.0, the number of usable hosts always 254. Thus, in this scenario third octet does not have any bearing on number of hosts or subnets. Only the fourth octet.

To subnet, you borrow bit from host bits only, i.e. from the fourth octet. Assuming that you borrow 1 bit, your network bit or netmask now changed from 11111111.11111111.11111111.00000000 to 11111111.11111111.11111111.10000000 or from 255.255.255.0 to 255.255.255.128.

Here:-
Number of subnets are 2^1=2, where 1 is borrowed bit. (Rule is 2^borrowed bit)
Number of usable hosts for each subnet are 2^7 -2=126. (Rule is 2^remaining bit -2)
Increment of network address=128 (Rule is decimal value of last bit borrowed=128)

Subnet      Network Address            Host Range            Broadcast Address
0             192.168.x.0                   192.168.x.1-126      192.168.x.127
1             192.168.x.128                   192.168.x.129-254      192.168.x.255


If you borrow 2 bits, your netmask is 11111111.11111111.11111111.11000000 or 255.255.255.192

Here:-
Number of subnets are 2^2=4,
Number of usable hosts for each subnet are 2^6 -2=62.
Increment of network address=decimal value of last bit borrowed=64

Subnet    Network address      Host Range            Broadcast Address
0             192.168.x.0             192.168.x.1-62            192.168.x.63
1             192.168.x.64             192.168.x.65-126      192.168.x.127
2             192.168.x.128             192.168.x.129-190      192.168.x.191
3             192.168.x.192             192.168.x.193-254      192.168.x.255

Note:
Some old routers cannot use subnet 0 and the last subnet thus number of subnets=2^borrowed bit -2. You must borrow at least 2 bits for 2 usable subnets.
--------
We can use 192.168.1.0 with netmask 255.255.0.0 or 192.168.1.0/16 but it is no longer classful. First 2 octets (16 bits) are network addresses. To subnet you must borrow from host bits, i.e. in this example from 3rd and fourth octets. Subnetting method is pretty much the same.

 

by: snoozeitPosted on 2009-05-02 at 08:37:08ID: 24286460

We can use 192.168.1.0 with netmask 255.255.0.0 or 192.168.1.0/16 but it is no longer classful.
->If it is not classful will it still work will the host communicate with each other.
  What is normally done when you have more than 300 hosts, it looks like there can be  251 or lesser ip address in class c.

 

by: zimbulatPosted on 2009-05-09 at 13:16:35ID: 24345488

We can use 192.168.1.0 with netmask 255.255.0.0 or 192.168.1.0/16 but it is no longer classful.
->If it is not classful will it still work will the host communicate with each other.
  What is normally done when you have more than 300 hosts, it looks like there can be  251 or lesser ip address in class c.
----------------------------------
Of course the hosts will communicate with each other. Doesn't matter you use classless or classful, both ways work the same. Nowadays I wd say all internet service providers are using classless ip address for their subscribers due to shortage of IPv4. You may want to read about CIDR later.

So, what if you have 300 hosts? The norm that I would go is to use 2 x class C networks. For example, 192.168.1.0/255.255.255.0 and 192.168.2.0/255.255.255.0.

You need a routing mechanism here, use any Windows server with 2 NICs and enable routing. If you have budget get a router or layer-3 switch. We can go for virtual NIC if we have many networks.  

p/s: I read somewhere that keeping 254 ip hosts per network is a good practice.

----------------------------------

The following scenarios are just for ideas....

You can use 192.168.0.0/16 without the need of a router, i.e. all 300 hosts in one network. (Note that 192.186.1.0 is a subset of 192.168.0.0/16).

This network has 2^remaining bits -2=2^16 -2=65,534 usable hosts. Your network will work but 65,534-300=65,234 address space are wasted! It is OK to waste for private network like us but not to service provider.

Anyway, what if we really have 65,000 hosts. The broadcast domain is too large and our network will fail. Consider how are we going to stack/daisy-chaining 1,350 48-port switches together. Not practical or impossible. We must make it smaller by subnetting further and further...

Or,

We can use VLSM (Variable Length Subnet Mask is a means of allocating IP addressing resources to subnets according to their individual need rather than some general network-wide rule)

Always remember that 2^remaining bits -2=usable hosts, right!
2^8 -2=254
2^9 -2=510 >300, enough to cater for your network requirement. 32-9=23 bits for network

Thus you have 192.168.0.0/23 or 255.255.254.0 (11111111.11111111.11111110.00000000)

Network Address            Host Range                  Broadcast Address
192.168.0.0            192.168.0.1-192.168.1.254      192.168.1.255

----------------------------------

All 3 ip addressing methods work well in a small office consisting of 300 hosts. In larger offices I prefer the 254-host/network (or subnet they may refer it).

Btw, you can download free Solarwinds Advanced Subnet Calculator.

 

by: zimbulatPosted on 2009-05-09 at 13:25:05ID: 24345541

Sorry typo, (Note that 192.186.1.0 is a subset of 192.168.0.0/16) ---> (Note that 192.168.1.0 is a subset of 192.168.0.0/16)

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...