Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Calculating number of subnets and hosts

  • 26-04-2005 6:47pm
    #1
    Registered Users, Registered Users 2 Posts: 2,325 ✭✭✭


    Hey guys,

    Just a quick question. I was revising over some notes and i found a question about how many subnets and hosts a company can have. The question gave the subnet 255.255.255.224 and a class C IP address.

    I dont think the IP address is necessaary, only that we know its class C. We are asked to work out the number of subnets and hosts per subnet.

    taking the 224 from the mask in binary:

    11100000

    means that the first 3 bits are the subnet number and the following 5 bits the host number right? if so then i get

    for the subnet

    000
    001
    010
    011
    100
    101
    110
    111

    which is 8 subnets. Do i take out 000 and 111 because there could be a conflict if the addresses 000 and 111 are reserved for special use (broadcast etc), giving me the correct number of subnets?

    Do 000 and 111 only have one host (000 00000, 111 11111) and that 000 00001, for example, cant be used?

    for the host

    00000
    ...
    11111

    gives me 32 hosts. Do i take away 00000 and 11111 again like when calculating the subnets?

    Then would i be right in saying 001 11111 is a broadcast to all hosts on subnet 001?

    Just trying to get my head around it, i appreciate any replies.

    all the best


Comments

  • Technology & Internet Moderators Posts: 28,831 Mod ✭✭✭✭oscarBravo


    www.subnetmask.info is pretty cool for this sort of thing. I always get confused with all this talk of Class C and stuff, I only do CIDR (/27 or what have you).


Advertisement