What is the Subnet Mask?
- This is used to identify the Network portion and Host portion of the IP address.
- It has 1's in all the Network portion and 0's in the host portion
Class A: N.H.H.H
11111111.00000000.00000000.00000000
Default Subnet Mask for Class A is 255.0.0.0
Class B: N.N.H.H
11111111.11111111.00000000.00000000
Default Subnet Mask for Class B is 255.255.0.0
Class C: N.N.N.H
11111111.11111111.11111111.00000000
Default Subnet Mask for Class C is 255.255.255.0
- Subnet Mask is used also used to find the Network address.
- An AND operation is performed on the Binary version of the IP address and the subnet mask
IP Address : 10.0.2.3
SM Address : 255.0.0.0
IP : 00001010.00000000.00000010.00000011
SM : 11111111.00000000.00000000.00000000
------------------------------------------
00001010.00000000.00000000.00000000
NW : 10 . 0 . 0 . 0
------------------------------------------
The Network Address is 10.0.0.0
AND Truth table for reference
A
|
B
|
Result
|
1
|
1
|
1
|
1
|
0
|
0
|
0
|
1
|
0
|
0
|
0
|
0
|
No comments:
Post a Comment