🌐
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
  • Class C subnetting

Subnetting (Part 1)

Day 13

PreviousThe Life of a PacketNextSubnetting (Part 2)

Last updated 1 year ago

Subnetting

The IANA (Internet Assigned Numbers Authority) assigns IPv4 addresses/networks to companies based on their size. For example, large companies may receive a Class A or Class B network, while a small company might receive a Class C network. But it led to many wasted IP addresses. E.g. when using a point-to-point network - a network connecting only two points ( two offices, branches, cities, etc), only 2 addresses are assigned to these two points, one for the network, and one for the broadcast; even if we use Class C network we waste 252 addresses.

The IETF (Internet Engineering Task Force) introduced CIDR (Classless Inter-Domain Routing) in 1993 to replace the classful addressing system. With CIDR, larger networks were allowed to be split into smaller networks, allowing greater efficiency. These smaller networks are called subnetworks or subnets.

Class C subnetting

/25

The network portion of the address is extended into the first bit of the last octet. And the mask in dotted decimal is now 255.255.255.128. There are now 7 bits in the host portion of the address, so the number of usable addresses is 2^7-2=126.

/26

The mask in dotted decimal is written as 255.255.255.192. The number of usable addresses is 62.

/27

The mask is 255.255.255.224. The number of usable addresses is 30.

/28

The mask is 255.255.255.240. The number of usable addresses is 14.

/29

The mask is 255.255.255.248. The number of usable addresses is 6.

/30

The mask is 255.255.255.252. The number of usable addresses is 2 - perfect for point-to-point networks. 203.0.113.0/30 includes the address range of 203.0.113.0 - 203.0.113.3 first address being the network address, the next two are usable addresses, and the last one is a broadcast address. The remaining addresses in the 203.0.113.0/24 address block are available to be used in other subnets.

/31

The mask is 255.255.255.254. The number of usable addresses is 0. However, this subnet mask can be used for point-to-point networks because it consists of only 2 addresses and there is no need for the network and broadcast addresses. For any other cases, this would be a problem since it leaves no usable addresses after subtracting the network and broadcast addresses.

/32

The mask is 255.255.255.255. This mask cannot be used here and usually is not used at all for configuration. However, there are some use cases, e.g. when creating a static route to one specific host.

Here is a chart summarizing dotted decimal subnet masks and their equivalent in CIDR notation.

6KB
Day 13 Flashcards - Subnetting.apkg
/25
/26
/27
/28
/29
/30
/31
/32
dotted decimal to cidr notation