IP Addressing and Subbnetting
IP Addressing and Subbnetting
Solution
We replace each group of 8 bits with its
equivalent decimal number (see Appendix B) and
add dots for separation:
a. 129.11.11.239
b. 249.155.251.15
Example 2
Solution
We replace each decimal number with its binary
equivalent (see Appendix B):
Solution
See the procedure in Figure 19.11.
Solution
a. The first byte is 227 (between 224 and 239).
The class is D.
b. The first byte is 252 (between 240 and 255).
The class is E.
c. The first byte is 134 (between 128 and 191).
The class is B.
Netid and Hostid
Blocks in class A
Note:
In Dotted- Using
Class In Binary
Decimal Slash
Solution
The class is A. Only the first byte defines the netid.
We can find the network address by replacing the
hostid bytes (56.7.91) with 0s. Therefore, the network
address is 23.0.0.0.
Example 6
Solution
The class is B. The first 2 bytes defines the netid.
We can find the network address by replacing the
hostid bytes (17.85) with 0s. Therefore, the network
address is 132.6.0.0.
Example 7
Solution
Solution
The router follows three steps:
1. The router looks at the first byte of the address to find
the class. It is class B.
2. The default mask for class B is 255.255.0.0. The router
ANDs this mask with the address to get 190.240.0.0.
3. The router looks in its routing table to find out how to
route the packet to this destination. Later, we will see
what happens if this destination does not exist.
Subnet mask
Example 9
Solution
The router follows three steps:
1. The router must know the mask. We assume it is /19,
as shown in Figure 19.23.
2. The router applies the mask to the address,
190.240.33.91. The subnet address is 190.240.32.0.
3. The router looks in its routing table to find how to route
the packet to this destination. Later, we will see what
happens if this destination does not exist.
•Supernetting
•Classless Addressing
•Variable-Length Blocks
Addresses for Private Networks
Range Total