🌐
CCNA Prep
  • Intro
  • Network Devices
  • Interfaces and Cables
  • OSI Model & TCP/IP Suite
  • Intro to the CLI
  • Ethernet LAN Switching (Part 1)
  • Ethernet LAN Switching (Part 2)
  • IPv4 Addressing (Part 1)
  • IPv4 Addressing (Part 2)
  • Switch Interfaces
  • IPv4 Header
  • Routing Fundamentals
  • The Life of a Packet
  • Subnetting (Part 1)
  • Subnetting (Part 2)
  • Subnetting (Part 3 - VLSM)
  • VLANs (Part 1)
  • VLANs (Part 2)
  • VLANs (Part 3)
  • DTP/VTP
  • Spanning Tree Protocol (Part 1)
  • Spanning Tree Protocol (Part 2)
  • Rapid Spanning Tree Protocol
  • EtherChannel
  • Dynamic Routing
  • RIP & EIGRP
  • OSPF (Part 1)
  • OSPF (Part 2)
  • OSPF (Part 3)
  • First Hop Redundancy Protocols
  • TCP & UDP
  • IPv6 (Part 1)
  • IPv6 (Part 2)
  • IPv6 (Part 3)
  • Standard ACLs
  • Extended ACLs
  • CDP & LLDP
  • NTP
  • DNS
  • DHCP
  • SNMP
  • Syslog
  • SSH
  • FTP & TFTP
  • NAT (Part 1)
  • NAT (part 2)
  • QoS (Part 1)
  • QoS (Part 2)
  • Security Fundamentals
  • Port Security
  • DHCP Snooping
  • Dynamic ARP Inspection
  • LAN Architectures
  • WAN Architectures
  • Virtualization & Cloud, Containers, VRF
  • Wireless Fundamentals
  • Wireless Architectures
  • Wireless Security
  • Wireless Configuration
  • Network Automation
  • JSON, XML, & YAML
  • REST APIs
  • Software-Defined Networking
  • Ansible, Puppet, & Chef
Powered by GitBook
On this page
  • Subnetting Trick
  • Subnetting Practice
  • Subnetting Class B

Subnetting (Part 2)

Day 14

PreviousSubnetting (Part 1)NextSubnetting (Part 3 - VLSM)

Last updated 1 year ago

Subnetting Trick

Let's take one sample network with /26 subnet.

We have to find the network address of each subnet. So, let's take a closer look at the last octet.

The last bit of the network portion is 64. This means that to find the next subnet's network address, we just need to add 64. We add 64 and we get 192.168.1.64 which is the network address of the second subnet. We add 64 again, we get 192.168.1.128 which is the network address of the third subnet, etc.

Subnetting Practice

  • The formula for the number of subnets is 2 to the power of x, where x is the number of borrowed bits.

  • To identify which subnet the particular host belongs to, we just write the host address in binary and change all host bits to 0 (zero) to find the network address. Finally, change it back to a dotted decimal and that's the answer.

Here is a table of different subnet sizes for Class C networks.

Subnetting Class B

The process of subnetting Class A, Class B, and Class C networks is exactly the same. For example, to subnet a 172.16.0.0/16 network and create 80 subnets, we use the same formula:

2x2^x2x

where x is the number of borrowed bits. So, we have to borrow 7 bits since it creates 128 subnets. And the subnet mask is /23. The first subnets look like this.

Here is a table of different subnet sizes for Class B networks.

It is not necessary to memorize everything, it's enough just to understand the pattern. For each borrowed bit, the number of subnets doubles. For each host bit, the number of addresses in each subnet doubles but we have to subtract 2 to identify the number of usable host addresses.

/26 sample network
last octet of /26 subnet
subnets for class c network
/23 subnets
subnets for class b network