Avatar of kavlins
kavlinsFlag for United States of America

asked on 

Subnetting question

I have a subnetting question, that needs to be cleared
Question is,  How many subnets and hosts per subnet can you get from the network 172.17.0.0 255.255.255.0?

I answered 1 subnet and 254 hosts , but right answer came out as 256 subnets and 254 hosts

Which part is wrong here ?
Routers

Avatar of undefined
Last Comment
Tim_Jr
Avatar of dacselat
dacselat

It's an class B (net, net, host, host) subnetted like class C
From /16 to /24   =  8 bits to subnetting:
2^8 = 256 subnets

For hosts:
32-24 = 8 bits (host)  --------> 2^8 - 2 = 254 hosts/subnet
Avatar of kavlins
kavlins
Flag of United States of America image

ASKER

Oh i understand what you are saying dacselat, but here comes another doubt . actually B Class is usable IP range  /12 , so shouldnt that be /12 to /24  = 12 bits of subnetting.  2^12 = 4096 subnets ?

Avatar of philippe7v7
philippe7v7
Flag of Philippines image

For classless subnetting using CIDR, you are right .. it will have 254 hosts.  However, using the old way of having Class A, B and C where the network 172.16.0.0 to 172.31.0.0 belonging to Class B which will indeed have 256 subnets with 254 hosts each.

It entirely depends on the equipment being used if it still sees the 172.16.0.0 to 172.31.0.0 networks as Class B.
Avatar of dacselat
dacselat

But you're just subnetting 172.17.0.0/16, it's not the complete range of private addresses (class B: /12)
If you don't have the original mask, it's common to assume the default mask of the class.
Avatar of philippe7v7
philippe7v7
Flag of Philippines image


172.17.0.0 to 172.17.255.255 = 256 x (256-2) when recognized as Class B.
Avatar of kavlins
kavlins
Flag of United States of America image

ASKER

Sorry , Still it isnt clear to me. Do you guys know any tips/tricks to easily findout/learn subnets,broadcast,1st and last host ? Its been a while for me...
Avatar of Tim_Jr
Tim_Jr

Try this. Straight from a CCNA Boot Camp class.
Subnetting-procedure.doc
SOLUTION
Avatar of ck459
ck459
Flag of Belgium image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of ck459
ck459
Flag of Belgium image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of kavlins
kavlins
Flag of United States of America image

ASKER

philippe7v7,

you said it will 254 hosts each subnet ? how is that ? check what this ipsubnetter utility (ck459 provided, thanks dude) shows....
http://s118.photobucket.com/albums/o87/kavlins/ComputerErrors/?action=view¤t=1721700.jpg

Another question to all is , even though there is 256 subnets derived from 172.17.0.0 /24 , is it usable ? can i use it as 172.17.1.1 with 255.255.255.0 mask ?






SOLUTION
Avatar of dacselat
dacselat

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of dacselat
dacselat

For each subnet you have 8 bits for hosts.
2^8=256 IP adresses, but you have to reduce 2 because the first address is reserved (Network Address) and the last too(broadcast address).

Then:

2^8 - 2 (reserved addresses) = 254 Ip addresses for hosts.
Avatar of kavlins
kavlins
Flag of United States of America image

ASKER

If so , total usable hosts should be 256x256 = 65536 - 2 = 65534 ? not 254
SOLUTION
Avatar of dacselat
dacselat

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
ASKER CERTIFIED SOLUTION
Avatar of Tim_Jr
Tim_Jr

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of dacselat
dacselat

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of kavlins
kavlins
Flag of United States of America image

ASKER

ok guys now its clear, its due to CIDR (Classless Inter-Domain Routing ) method. i wasnt sure abt it...

Special Thanks to Tim and Dacselat for clearing it.
Avatar of Tim_Jr
Tim_Jr

It's tough to explain especially in a forum like this where we can't really graphically depict it. Hope we could all help kavlins. Take care.
Routers
Routers

A router is a networking device that forwards data packets between computer networks. Routers perform the "traffic directing" functions on the Internet. The most familiar type of routers are home and small office cable or DSL routers that simply pass data, such as web pages, email, IM, and videos between computers and the Internet. More sophisticated routers, such as enterprise routers, connect large business or ISP networks up to the powerful core routers that forward data at high speed along the optical fiber lines of the Internet backbone. Though routers are typically dedicated hardware devices, use of software-based routers has grown increasingly common.

49K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo