🖧 Designed this network configuration for the network of three companies, given some constraints. Its an interesting problem demonstrating the concepts of Classless IP Subnetting and using RIPv2 Protocol.
This package is used for converting IP range to CIDR(s). 1 IP range can have several CIDRs. For example, the IP range [192.168.1.0, 192.168.1.255] can be converted to [192.168.1.0/24], [192.168.1.0, 192.168.1.254] => [192.168.1.0/25 192.168.1.128/26 192.168.1.192/27 192.168.1.224/28 192.168.1.240/29 192.168.1.248/30 192.168.1.252/31 192.168.1.254/32].
Simple OOP library that allows for checking the validity of an IP Address and Subnet Mask. Also provides all subnet calculations for a given IP Address/Subnet Mask object. Will return the objects network address, broadcast address, wildcard address, etc. and has the option to return in dotted decimal or binary.
A subnet, or subnetwork, is a network inside a network. Subnets make networks more efficient. Through subnetting, network traffic can travel a shorter distance without passing through unnecessary routers to reach its destination.