Effects of Subnetting A Class B Network

Subnet Mask
CIDR
Net Bits
Host Bits
# of Nets
Hosts/Net
Total Hosts

255.255.0.0
/16
0
16
1
65534
65534

255.255.128.0
/17
1
15
0(2*)
32766
0(65534*)

255.255.192.0
/18
2
14
2(4*)
16382
32764(65528*)

255.255.224.0
/19
3
13
6(8*)
8190
49140(65520*)

255.255.240.0
/20
4
12
14(16*)
4094
57316(65504*)

255.255.248.0
/21
5
11
30(32*)
2046
61380(65472*)

255.255.252.0
/22
6
10
62(64*)
1022
63364(65408*)

255.255.254.0
/23
7
9
126(128*)
510
64260(65280*)

255.255.255.0
/24
8
8
254(256*)
254
64516(65024*)

255.255.255.128
/25
9
7
510(512*)
126
64260(64512*)

255.255.255.192
/26
10
6
1022(1024*)
62
63364(63488*)

255.255.255.224
/27
11
5
2046(2048*)
30
61380(61440*)

255.255.255.240
/28
12
4
4094(4096*)
14
57316(57344*)

255.255.255.248
/29
13
3
8190(8192*)
6
49140(49152*)

255.255.255.252
/30
14
2
16382(16384*)
2
32764(32768*)

255.255.255.254
/31
15
1
32766(32768*)
0*
0(32768**)

255.255.255.255
/32
16
0
65534(65536*)
1***
65534(65536*)

[*] According to classic IP routing rules you are not able to use the subnets with all zeros or ones in the network portion. However most modern machines have no trouble actually using the upper and lower subnets. Steven C. Jensen has a very good discussion of lower/upper [...]

What Is A Secure Code Audit And Do I Need One?

Secure Code Auditing is a structured approach to identifying, evaluating and mitigating programming and database security risks to web applications, databases and general network security. The majority of programmers are not security-minded, let alone security experts. Applications and infrastructure are typically designed with security vulnerabilities that can lead to security exploitations and potentially catastrophic results [...]

PHP & AJAX Active Client Pages

This is the second part of my four-part series, Active Client Pages – Ajax Approach. In this part of the series, we continue our discussion of the Ajax features we will need to use with ACP, and then we look at the principles of the Ajax approach.

XMLHttpRequest Object
By using the XMLHttpRequest object, a web developer [...]

An Overview of Web Application Security

With the web and business web sites accessible by everyone (including malicious hackers) the security of your web application is at the top of the list of security issues on experienced PHP web developers’ minds. Lets look at some security concerns of PHP Security Developers, and what they can do to make their web applications [...]

Combining Javascript And PHP Programming In Web Pages

PHP Programmers will discover that combining Javascript and PHP Programming can be a challenge. The first thing they discover is that PHP tags do not work inside Javascript tags. The general purpose of combining Javascript and PHP is to control the structure and variables that Javascript is intended to handle on the client side. Following [...]

Using PHP Session Control To Implement User Authentication

A common method for determining user authentication is to use sessions and cookies via PHP Programming. It is straight forward to implement, easy to secure, and fun! Authentication can be used for many purposes in your PHP Programs, from membership login to Online data repository access. Whatever your purpose, PHP Programmers can use authentication to discern [...]

Building A Searchable eCommerce Web Database with PHP and MySQL

At the root of a successful eCommerce web site design is a searchable MySQL Database powered by PHP. Unless you only sell a few items that never change, you can expect your inventory to grow, require regular changes and additions, and keep you on your toes. It’s a whole different story from a point of [...]