i have a calss "C" network and i want to creat 15 subnets with at least 5 hosts per subnet for different offices. i don't know how to create subnets. so, could you please guys help me how to do this?
Due to the fact that subnetting works by changing the 8 bits that "mask" each octet of the IP address, you have 2 options:
Netmask 255.255.255.240 (/28) will give 16 networks of 14 hosts.
Netmask 255.255.255.248 (/29) will give 32 networks of 6 hosts.
Every time you slice up the network, you lose more available host addresses to the network and broadcast components.
Assuming you go with the first option, and your class C network is 192.168.1.0, the subnets break down like this:
Subnet 1 = 192.168.1.0
Hosts for Subnet 1 = 192.168.1.1 to 192.168.1.14
Broadcast address for Subnet 1 = 192.168.1.15
Subnet 2 = 192.168.1.16
Hosts for Subnet 2 = 192.168.1.17 to 192.168.1.30
Broadcast address for Subnet 2 = 192.168.1.31
---
Subnet 16 = 192.168.1.240
Hosts for Subnet 16 = 192.168.1.241 to 192.168.1.254
Broadcast address for Subnet 16 = 192.168.1.255
I'll leave the intermediate math to you as a learning experience. (You should also review the "Subnetwork" page on wikipedia for a more detailed explanation).
So if you create a host with IP address 192.168.1.5 and netmask 255.255.255.240 it can directly connect to hosts 1-14 but will expect a route to see anything above 15.
To be honest, it actually makes more sense once you start doing the calculations in binary! You can then see the "bits in action" and how the "masking" actually works.
A /29 will give you 6 usable addresses, one of these would need to be used by the router (assuming you require all the subnets to be able to talk to one an other.
You will notice for each subnet you are loosing two addresses, the subnet ID (the first address) and the broadcast address (the last address). Technically a /29 is 8 IP Addresses and a /28 is 16 IP Address ie...
192.168.0.0 - 192.168.0.7 is the first address range in the /29 list above, however 192.168.0.0 becomes the Subnet ID and 192.168.0.7 becomes the Broadcast Address, for the /28 192.168.0.0 is also the Subnet ID but the broadcast address becomes 192.168.0.15
With subneting you will need something to route the required traffic between the subnets.
Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly
to your computer or smartphone by using a feed reader.