Subnet of

Unanswered Question
Oct 24th, 2007

If a host on a network has the address, what is the address of the

subnetwork to which this host belongs?






How to solve such Class B subnet calculation so fast?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Kevin Dorrell Wed, 10/24/2007 - 23:55

You don't need to calculate, and you don't need to know whether it is a class A, B, C or what.

A /30 means there are 4 addresses per subnet - one network address, two hosts, and a subnet broadcast address. It is typically what you would use on a point-to-point link.

So the last octet must be a multiple of 4. So look at the "14", and go down to the nearest multiple of 4. So we have: - the subnet - first host - second host - subnet broadcast

Does that make sense?

Kevin Dorrell


keller.oliver Mon, 10/29/2007 - 07:36

/30 means the first 30 bits of the IP address belong to the network part of the address, i.e. are relevant for routing. Therefore, there are only two bits in the host part of such an address.

With these two bits, you can build 4 addresses, with the two special addresses network (all 0s) and broadcast (all 1s).

In the example, the first 3 octetts don't matter, the only relevant one is octett 4:

1. /30 translates to

2. 252 is binary 11111100

which means nnnnnnhh (net, host)

3. 14 is binary 00001110

4. network part: 000011xx

4. network 00001100 = 12 <---

5. broadcast 00001111 = 15



xs_echoss Mon, 10/29/2007 - 11:04

Use the following chart:




The first line presents the subnet;

the second line is the magic number;

the bottom line can act as wildcard mask.

eight number represent the 8bits in each octet.

For example:

subnet is it is 2bits left)

subnetwork will be incremented by 4(cuz 4 is the magic number which is below 252)

the wildcard mask will be number below 4).

Hope it helps a little.


This Discussion