There are four octet in IPV4. Each octet has 8 bits. So, there are 32 bits in IPV4. IPV4 is based on binary (0, 1) and decimal (0 to 9).
1st Octet 2nd Octet 3rd Octet 4th Octet
8 bits 8 bit 8 bits 8 bits
27 26 25 24 23 22 21 20 27 26 25 24 23 22 21 20 27 26 25 24 23 22 21 20 27 26 25 24 23 22 21 20
255.255.255.255 255.255.255.255 255.255.255.255 255.255.255.255
How become 255.255.255.255
27 = 128 , 26 = 64 , 25 = 32 , 24 = 16 , 23 = 8 , 22 = 4 , 21 = 2 , 20 = 1
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1= 255
Decimal Binary
192.168.1.0 = 11000000 . 10101000 . 00000001 . 00000000
223. 200. 100. 25 = 11011111 . 11001000 . 01100100 . 00011001
192.168.1.0/24
1st Octet 2nd Octet 3rd Octet 4th Octet
8 bits 8
bit 8
bits 8 bits
272625 24
23 22 21 20 27 26
25 24 23 22 21 20 27 26
25 24 23 22 21 20 27 26
25 24 23 22 21 20
Network Host
Network Address = 192.168.1.0
Subnet
Mask = 255.255.255.0
Usable
IP Addresses = 192.168.1.1 to 192.168.1.254
Broadcast
Address = 192.168.1.255