cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
337
Views
4
Helpful
4
Replies

subneting urgent

ilnaiduccna
Level 1
Level 1

Hi people,

I want some brief idea about subnet how we can subneted of the networks

For example by using 2n -2 (two to the power of N-2)

Thanks in advance.

Regards,

Naidu.

4 Replies 4

ilnaiduccna
Level 1
Level 1

hi experts,

it is very urgent any body there.

Istvan_Rabai
Level 7
Level 7

Hi Naidu,

You probably refer to how to calculate the number of hosts in a subnet.

"n" is the number of bits from right to left that are used for hosts.

Example:

192.168.1.0/25

192.168.1.x is within the class C address range, which has a 24 bit default subnet mask.

The /25 subnet mask in this case means you have 1 bit for the subnet part and 7 bits for the host part.

This means you can have 2 subnets and 2 power 7 minus 2 hosts per subnet.

2 power 7 is 128.

128-2 is 126.

In the 192.168.1.0/25 subnet you can have then 126 hosts.

In the 192.168.1.128/25 subnet you can have another 126 hosts.

Why is the minus 2?

Because in each subnet you have an address with full 0s and another address with full 1s:

In the 192.168.1.0/25 subnet you have:

192.168.1.0 - this is the subnet itself

and

192.168.1.127 - this is the subnet broadcast address

In the 192.168.1.128/25 subnet you have:

192.168.1.128 - this is the subnet itself

and

192.168.1.255 - this is the subnet broadcast address

The address with full 0s is the subnet number itself. The address with full 1s is the subnet broadcast address. By convention they are reserved and not used for hosts.

Please make a bit-by-bit representation of the mentioned addresses and you will see what I'm talking about.

Cheers:

Istvan

Hi Istvan,

Thanks you so much for your reply it help out me lot.

Regards,

Naidu :-)

You're welcome!

Istvan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card