200 likes | 214 Views
Binary Lesson 5 Classful IP Addresses. IP Addresses (version 4). IP addresses are 32 bits long Four bytes or "octets" Examples: 147.144.1.212 1.2.3.4 192.168.0.1 Each octet must be in the range 0 to 255. Network and Host Portions Class A Addresses.
E N D
IP Addresses (version 4) • IP addresses are 32 bits long • Four bytes or "octets" • Examples: • 147.144.1.212 • 1.2.3.4 • 192.168.0.1 • Each octet must be in the range 0 to 255
Network and Host PortionsClass A Addresses An IP address of 1.2.3.4 specifies both the network and the host The network portion tells the Internet routers where to send packets The host portion tells routers on the destination LAN which host the packet is destined for
Network and Host PortionsClass A Addresses For Class A addresses like 1.2.3.4 The network portion is the first octet 1 The host portion is the last three octets 2.3.4 This system was used until 1981
1981:Class A, B, C Addresses Class A (1.2.3.4) Network portion: first octet (1) Host portion: last three octets (2.3.4) Class B (140.5.6.7) Network portion: first two octets (140.5) Host portion: last two octets (6.7) Class C (199.7.8.9) Network portion: first three octets (199.7.8) Host portion: last octet (9)
First Octet Determines Class Class A First octet from 1 to 127 Class B First octet from 129 to 191 Class C First octet from 192 to 223
Network and Host Portions Consider this address: 147.144.0.1 Class B The first 2 octets determine the network 147.144 The last two octets determine the host 0.1
What class is this address in?15.254.222.199 Class A Class B Class C That address is not valid 1 of 11
What class is this address in?215.2.1.254 Class A Class B Class C That address is not valid 2 of 11
What class is this address in?185.2.1.0.2 Class A Class B Class C That address is not valid 3 of 11
What class is this address in?147.144.1.312 Class A Class B Class C That address is not valid 4 of 11
What class is this address in?147.144.1.212 Class A Class B Class C That address is not valid 5 of 11
What is the network portion of this address?2.255.14.193 2 2.255 2.255.14 193 14.193 6 of 11
What is the host portion of this address?222.22.2.2 222 222.22 222.22.2 2 2.2 7 of 11
What is the network portion of this address?100.200.255.1 100 100.200 100.200.255 1 255.1 8 of 11
What is the host portion of this address?101.99.254.2 101 101.99 2 254.2 99.254.2 9 of 11
What is the network portion of this address?193.192.193.191 192 192.192 193.192.193 191 193.191 10 of 11
What is the host portion of this address?147.144.1.212 147 147.144 1.212 212 144.1.212 11 of 11