# Binary Lesson 5 Classful IP Addresses. IP Addresses (version 4) IP addresses are 32 bits long IP addresses are 32 bits long Four bytes or "octets" Four.

## Presentation on theme: "Binary Lesson 5 Classful IP Addresses. IP Addresses (version 4) IP addresses are 32 bits long IP addresses are 32 bits long Four bytes or "octets" Four."— Presentation transcript:

Binary Lesson 5 Classful IP Addresses

IP Addresses (version 4) IP addresses are 32 bits long IP addresses are 32 bits long Four bytes or "octets" Four bytes or "octets" Examples: Examples: 147.144.1.212 147.144.1.212 1.2.3.4 1.2.3.4 192.168.0.1 192.168.0.1 Each octet must be in the range 0 to 255 Each octet must be in the range 0 to 255

Network and Host Portions Class A Addresses An IP address of 1.2.3.4 specifies both the network and the host 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 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 The host portion tells routers on the destination LAN which host the packet is destined for

Network and Host Portions Class A Addresses For Class A addresses like 1.2.3.4 For Class A addresses like 1.2.3.4 The network portion is the first octet The network portion is the first octet 1 The host portion is the last three octets The host portion is the last three octets2.3.4 This system was used until 1981 This system was used until 1981

1981: Class A, B, C Addresses Class A (1.2.3.4) Class A (1.2.3.4) Network portion: first octet (1) Network portion: first octet (1) Host portion: last three octets (2.3.4) Host portion: last three octets (2.3.4) Class B (140.5.6.7) Class B (140.5.6.7) Network portion: first two octets (140.5) Network portion: first two octets (140.5) Host portion: last two octets (6.7) Host portion: last two octets (6.7) Class C (199.7.8.9) Class C (199.7.8.9) Network portion: first three octets (199.7.8) Network portion: first three octets (199.7.8) Host portion: last octet (9) Host portion: last octet (9)

First Octet Determines Class Class A Class A First octet from 1 to 127 First octet from 1 to 127 Class B Class B First octet from 129 to 191 First octet from 129 to 191 Class C Class C First octet from 192 to 223 First octet from 192 to 223

Network and Host Portions Consider this address: 147.144.0.1 Consider this address: 147.144.0.1 Class B 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 A.Class A B.Class B C.Class C D.That address is not valid 1 of 11

What class is this address in? 215.2.1.254 A.Class A B.Class B C.Class C D.That address is not valid 2 of 11

What class is this address in? 185.2.1.0.2 A.Class A B.Class B C.Class C D.That address is not valid 3 of 11

What class is this address in? 147.144.1.312 A.Class A B.Class B C.Class C D.That address is not valid 4 of 11

What class is this address in? 147.144.1.212 A.Class A B.Class B C.Class C D.That address is not valid 5 of 11

What is the network portion of this address? 2.255.14.193 A.2 B.2.255 C.2.255.14 D.193 E.14.193 6 of 11

What is the host portion of this address? 222.22.2.2 A.222 B.222.22 C.222.22.2 D.2 E.2.2 7 of 11

What is the network portion of this address? 100.200.255.1 A.100 B.100.200 C.100.200.255 D.1 E.255.1 8 of 11

What is the host portion of this address? 101.99.254.2 A.101 B.101.99 C.2 D.254.2 E.99.254.2 9 of 11

What is the network portion of this address? 193.192.193.191 A.192 B.192.192 C.193.192.193 D.191 E.193.191 10 of 11

What is the host portion of this address? 147.144.1.212 A.147 B.147.144 C.1.212 D.212 E.144.1.212 11 of 11