Spam Graph

    Spam Graph

    One minute everything is nice and cozy next minute 20,000+ emails sitting in the queue waiting to delievered.

    I’m now cleaning up the site for the customer, so far it looks as though they managed to upload a php reverse shell and then used that to run a script which sends out masses of spam.

    I currently have 2 ISP’s on the NBN which allows me to make comparisons, currently both are fairly evenly matched with Internode ahead on uploads and latency:

    ANT Internet (AAPT/TPG):

    ANT Internet



    128 64 32 16 8 4 2 1 <- hosts
    128 192 224 240 248 252 254 255 <- mask
    2 4 8 16 32 64 128 256 -> subnets
    /25 /26 /27 /28 /29 /30 /31 /32 <- short

    Hi all,

    I’ve received an email from one of your members asking me to post up my technique for subnetting as links to external blogs are not allowed due to forum rules. I know that he benefited from it and he wishes to help out others so here goes:

    First of all I need you to get rid of all of the negative thoughts surrounding subnetting. Put down all of the books that you have read about the subject and navigate away from other sites claiming to provide an easy way to subnet. This technique requires no charts, just simply the know-how to work with the powers of 2.

    We need to start with the fundamentals of IP addressing. An IP address is made up of 32 bits, split into 4 octets (oct = 8, yes?). Some bits are reserved for identifying the network and the other bits are left to identify the host.

    There are 3 main classes of IP address that we are concerned with.

    Class A Range 0 - 127 in the first octet (0 and 127 are reserved) Class B Range 128 - 191 in the first octet Class C Range 192 - 223 in the first octet

    Below shows you how, for each class, the address is split in terms of network (N) and host (H) portions.


    At each dot I like to think that there is a boundary, therefore there are boundaries after bits 8, 16, 24, and 32. This is an important concept to remember.

    We will now look at typical questions that you may see on subnetting. More often than not they ask what a host range is for a specific address or which subnet a certain address is located on. I shall run through examples of each, for each class of IP address.

    What subnet does belong to?

    You may wonder where to begin. Well to start with let’s find the next boundary of this address.

    Our mask is a /29. The next boundary is 32. So 32 - 29 = 3. Now 2^3 = 8 which gives us our block size i.e. 2 to the power of 3 equals 8.

    We have borrowed from the last octet as the 29th bit is in the last octet. We start from zero and count up in our block size. Therefore it follows that the subnets are:- ………….etc

    Our address is so it must sit on the subnet.

    What subnet does sit on?

    Our mask is /19 and our next boundary is 24. Therefore 24 - 19 = 5. The block size is 2^5 = 32.

    We have borrowed into the third octet as bit 19 is in the third octet so we count up our block size in that octet. The subnets are:- ………….etc

    Our address is so it must sit on the subnet. Easy eh?

    What subnet does sit on?

    Our mask is 12. Our next boundary is 16. Therefore 16 - 12 = 4. 2^4 = 16 which gives us our block size.

    We have borrowed from the second octet as bit 12 sits in the second octet so we count up the block size in that octet. The subnets are:- ………….etc

    Our address is which must sit on the subnet.

    Hopefully the penny is starting to drop and you are slapping the side of your head realising that you were a fool to think that subnetting was hard. We will now change the type of question so that we have to give a particular host range of a subnet.

    What is the valid host range of of the 4th subnet of

    Easy as pie! The block size is 16 since 32 - 28 = 4 and 2^4 = 16. We need to count up in the block size in the last octet as bit 28 is in the last octet. ……………..etc

    Therefore the 4th subnet is and the host range must be to, remembering that the subnet and broadcast address cannot be used.

    What is the valid host range of the 1st subnet of

    /17 tells us that the block size is 2^(24-17) = 2^7 = 128. We are borrowing in the 3rd octet as bit 17 is in the 3rd octet. Our subnets are:-

    The first subnet is and the valid host range is to You must remember not to include the subnet address ( and the broadcast address (

    What is the valid host range of the 7th subnet of address

    The block size is 4, from 16 - 14 = 2 then 22 = 4. We are borrowing in the second octet so count in the block size from 0 seven times to get the seventh subnet.

    The seventh subnet is Our valid host range must be to again remembering not to include our subnet ( and the broadcast address (

    What if they give me the subnet mask in dotted decimal?

    If you’re lucky and they give you a mask in dotted decimal format then you should have an even easier time. All you need again is your block size.

    Let’s say they have given a mask of and you wish to know the block size. Here’s the technique:

    1. Starting from the left of the mask find which is the first octet to NOT have 255 in it.
    2. Subtract the number in that octet from 256 to get your block size e.g. above it is 256 - 248 = block size of 8.
    3. Count up from zero in your block size in the octet identified in step 1 as you have learned above (the example above would be in the last octet).

    Another example is a mask of - you would simply count up in 256 - 192 = 64 in the third octet.

    One more example is - block size is 256 - 224 = 32 in the second octet.

    What now?

    Now it’s time to go and pick up those books again and go straight to the practice questions, completely by-passing any of their techniques. Use my method and you will be laughing!

    Happy subnetting!


You're browsing this website via IPv4.