CNE Tutorial 04 - IP - Addressing
CNE Tutorial 04 - IP - Addressing
Week 4
IP Addressing and Subnetting
I. IP Addressing
1. Some Definitions:
208 128 64 32 16 8 4 2 1
1 1 0 1 0 0 0 0
Similarly,
80 128 64 32 16 8 4 2 1
0 1 0 1 0 0 0 0
92 128 64 32 16 8 4 2 1
0 1 0 1 1 1 0 0
2 128 64 32 16 8 4 2 1
0 0 0 0 0 0 1 0
Now we have the binary notation of 208.80.92.2 is:
11010000.01010000.01011100.00000010
3. Exercises:
Read the lecture slides and tutorial instruction carefully before doing these exercises!
3. Given these IP addresses, define which are private IP addresses, public IP addresses or
reserved IP addresses:
192.168.15.252
63.254.209.10
203.162.35.99
169.254.24.6
127.0.0.1
10.131.149.202
172.16.48.226
18.7.22.69
4. Define the class, default subnet mask, network number, host number, IP block of each
IP address above.
II. Subnetting
1. Instruction
2. Practice:
If we have an IP block 172.16.0.0/25, how can we assign these IP to the given network?
172. 16. 0. 0
10101100.00010000.00000000.00000000
11111111.11111111.11111111.10000000 (25 first bits is the netid)
255. 255. 255. 128
172.168.16.0.0/25 means 25 first bits of this IP address is the netid. Therefore, the mask of
this network is: 11111111.11111111.11111111.10000000 binary or 255.255.255.128 decimal.
Based on the IP block 172.16.0.0/25 and the Subnet Mask, we can find the IP range of
this network:
10101100.00010000.00000000.00000000
172. 16. 0. 0
10101100.00010000.00000000.01111111
172. 16. 0. 127
Given IP block: 172.16.0.0/25. Configure all IP addresses of the PCs in this network.
4. Exercises:
Given the IP block: 130.50.15.6/22.
- Find the subnet mask, IP range of this network.
- Configure all IP addresses of the PCs in this network (practice with Package Tracer)
Subnet mask: 1111 1111 . 1111 1111 . 1111 1100. 0000 0000
255. . 255 . 252 .0
130.50.15.6/22 = 130.50. 0000 1111 . 0000 0110
First IPs: 130.50. 0000 1100 . 0000 0000 = 130.50.12.0/22
Last IPs: 130.50. 0000 1111 . 1111 1111 = 130.50.15.255/22