'; // Binary conversions echo '

Convert the following to binary:

'; for ($x = 0; $x <= 3; $x++) { echo '

'.rand(0,256).' ____________________

'; } // Decimal conversions echo '

Convert the following to decimal:

'; for ($x = 0; $x <= 3; $x++) { echo '

'; for ($y = 0; $y <= 7; $y++) { echo rand(0,1); } echo ' ____________________

'; } // CIDRs echo '

Convert the following slash notations to decimal and binary:

'; for ($x = 0; $x <= 3; $x++) { echo ''; } echo '
SlashDecimalBinary
'.rand(16,32).'  
'; //Subnets echo '

Identify the following for these CIDRs:

'; echo ''; for ($x = 0; $x <= 6; $x++) { echo ''; } echo '
IP/CIDRSMNetIDHost RangeBroadcastGatewayIncrement
'.rand(0,256).'.'.rand(0,256).'.'.rand(0,256).'.'.rand(0,256).'/'.rand(16,32).'      
'; echo '

Bonus: Calculate the three subnets that follow each of the above.

'; echo '';