Trick to subnet and ip address #college #networkengineer #mca #networking #aws #vpc #awsvpc #linux
Identify the Network Address: The network address can be found by setting all the host bits to 0 in the given CIDR notation. For example, if you have the CIDR notation 192.168.1.0/24, the network address would be 192.168.1.0.
Identify the Subnet Mask: The subnet mask can be derived from the CIDR notation. In CIDR notation, the number after the slash represents the number of network bits. For example, in 192.168.1.0/24, there are 24 network bits, so the subnet mask would be 255.255.255.0.
Calculate the Number of IPs: The number of IPs in the subnet can be calculated using the formula 2^(32 – n), where n is the number of network bits. In our example, with 24 network bits, the calculation would be 2^(32 – 24) = 2^8 = 256. However, remember that one IP is reserved for the network address itself and one for the broadcast address, so the usable IPs would be 256 – 2 = 254.
So, for the CIDR notation 192.168.1.0/24:
Network Address: 192.168.1.0
Subnet Mask: 255.255.255.0
Number of Usable IPs: 254
Views : 163
network engineer