Network Address and Mask
Network Address and Mask
• So,
• First IP Address = 00010100.00001010.00011110.00100000 = 20.10.30.32
• Last IP Address = 00010100.00001010.00011110.00111111 = 20.10.30.63
• Thus, Range of IP Addresses = [ 20.10.30.32 , 20.10.30.63]
Problem-02:
• Given the CIDR representation 100.1.2.35 / 20. Find the range of IP Addresses in the CIDR block.
•
• Solution-
• Given CIDR representation is 100.1.2.35 / 20.
• It suggests-
• 20 bits are used for the identification of network.
• Remaining 12 bits are used for the identification of hosts in the network.
• So,
• First IP Address = 01100100.00000001.00000000.00000000 = 100.1.0.0
• Last IP Address = 01100100.00000001.00001111.11111111 = 100.1.15.255
• Solution-
• For any given block to be a CIDR block, 3 rules must be satisfied-
• Rule-01:
• According to Rule-01, all the IP Addresses must be contiguous.
• Clearly, all the given IP Addresses are contiguous.
• So, Rule-01 is satisfied.
• Rule-02:
• According to Rule-02, size of the block must be presentable as 2 n.
• Number of IP Addresses in the given block = 47 – 32 + 1 = 16.
• Size of the block = 16 which can be represented as 2 4.
• So, Rule-02 is satisfied.
• Rule-03: