Connected: An Internet Encyclopedia
Another Example

Up: Connected: An Internet Encyclopedia
Up: Programmed Instruction Course
Up: Subnetting and CIDR
Prev: Subnetting Tips
Next: Yet Another Example

Another Example The network in this diagram might belong to a mid-sized company with a headquarters and three branch offices. Let's apply each step in the subnetting process.

Step One. Count hosts on each subnet, and refer back to the chart showing how many addresses can be assigned for each prefix length. Two of the branch offices have 20 hosts (21 including the router), and the other has 25 hosts (26 including the router). Each of these subnets will require a /27 prefix, since these can handle up to 30 addresses. Of the headquarters subnets, the one with 30 hosts will require another /27, the one with 50 hosts will require a /26, and the two 10 host subnets each require a /28.

Don't forget the three WAN links, each requiring a /30, and the Ethernet connecting the two routers together, which also requires a /30. However, since more hosts might later be added to the Ethernet, we'll assign it a /29 for expansion purposes.

Step Two. Assign largest subnets first. The largest subnet is the headquarters subnet with 50 hosts, requiring a /26 prefix. We'll assign to it 192.77.33.0/26, using numbers from 0 to 63 in the fourth byte.

Next we need four /27s (one in the headquarters, and one for each of the branch offices). We'll assign 192.77.33.64/27, 192.77.33.96/27, 192.77.33.128/27, and 192.77.33.160/27. We've now used numbers from 0 to 191 in the fourth byte.

The two /28s will be 192.77.33.192/28 and 192.77.33.208/28. That leaves 192.77.33.224/29 for the Ethernet between the two headquarters routers, and the remaining address space for the three WAN links: 192.77.33.232/30, 192.77.33.236/30 and 192.77.33.240/30.


Next: Yet Another Example

Connected: An Internet Encyclopedia
Another Example