For Example: 192.168.1.
Class C.
192 168 1 0
IP address 11000000 10101000 00000001 00000000
Byte Byte Byte Byte
Network Network Network Hosts
192. 168. 1. 0
Subnet mask: [Link]
IP address (decimal) 192 168 1 0
IP address (binary) 11000000 10101000 00000001 00000000
Subnet mask (decimal) 255 255 255 0
Subnet mask (binary) 11111111 11111111 11111111 00000000
IP address 11000000 10101000 00000001 00000000
Subnet mask 11111111 11111111 11111111 00000000
1. Network Address
IP address 192 168 1 0
11000000 10101000 00000001 00000000
2. Broadcast Address
IP address 192 168 1 255
11000000 10101000 00000001 11111111
Note: The network address has all host bits set to 0, The broadcast address has all host bits set to 1
Single Network : 254 Hosts ( 2^8-2=254 hosts) -- Since class c has 8 bits only for Host (N.N.N.H)
What if? If we have 2 networks??? Yes… 2^1
Subnet mask 255 255 255 128
11111111 11111111 11111111 10000000
The new subnet mask will be [Link]
CIDR: [Link]/25
2^7=?128 (0-127)
128 64 32 16 8 4 2 1
Subnet #1
We have only 7 host bits
[Link]
[Link]
Network Address: [Link] (First IP )
First Usable Host IP Address: [Link] (IP next after network Address , + 1 network address)
Last usable host ip address: [Link] (-1 broadcast address)
Broadcast address : [Link]
Subnet #2
We have only 7 host bits
Network Address: [Link] (First IP )
First Usable Host IP Address : [Link] (IP next after network Address , + 1 network address)
Last usable host ip address : [Link] (-1 broadcast address)
Broadcast address : [Link]
[Link] ===? 4 subnet