Tutorial45 classes of IP address Find the class


















- Slides: 18
Tutorial#4+5
classes of IP address
Find the class of the following IP addresses : a) 11110111 11110011 10000111 1101 b) 11011111 10110000 1100011101 c) 270. 42. 87. 9 d) 180. 32. 33. 5
11110111 11110011 10000111 11011111 10110000 1100011101 270. 42. 87. 9 180. 32. 33. 5 class: E class: C can’t determine type of class: B
Find the netid and the hosted of the following IP addresses: a) 118. 37. 6. 9 Class: A Net. Id: 118 Hosted: 37. 6. 9 b) 220. 85. 56. 3 Class: C Net. Id: 220. 85. 56 Hosted: 3
Default mask (network mask) Network address First address Last address
In a block of address, we know the IP address of one host is 182. 44. 82. 16. what are the network address in this block ?
182. 44. 82. 16 in class B so default mask is 255. 0. 0 Network address : IP address AND Default mask Convert IP address to binary: 10110110 00101100 01010010 00010000 Convert default mask to binary: 11111111 00000000
10110110001010010000 AND 11111111 00000000 Result: 101101100000000000 in decimal: 182. 44. 0. 0 is Network address
• The first address in a range of addresses is 140. 71. 45. 16. If the number of addresses in the range is 22, what is the last address?
Last address = (140. 71. 45. 16) + (0. 0. 0. 21) = 140. 71. 45. 37
• The Last address in a range of addresses is 140. 71. 45. 16. If the number of addresses in the range is 8, what is the First address?
First address = (140. 71. 45. 16) - (0. 0. 0. 7) = 140. 71. 45. 9
• A router receives a packet with the destination address 201. 24. 67. 32. Show the router finds the network address of the packet.
What is the subnetwork address if the destination address is 100. 90. 34. 0 and the subnet mask is 255. 220. 0?
Subnetwork address= IP address AND subnet mask 100. 90. 34. 0 AND 255. 220. 0 only convert 34 and 220 to binary 34: 0010 220: 11011100
Write the following masks in slash notation (/n) 1) 255. 0 (/24) 2) 255. 0. 0. 0 (/8) 3) 255. 240. 0 (/20)
Find the number of addresses in the following blocks. 1) 123. 56. 77. 32/29 IPv 4 have 32 bits so, find the number of address in the block 2 ^ (32 -29) = (23) = 8 address in the block.