IPv4 Addresses
IPv4 Addresses
IPv4 Addresses
1
IP Address Version 4
IP Address
What Is An IP Address?
• A unique identifier for a computer or device (host) on a TCP/IP
network.
• A 32-bit binary number
Example:
32/4 = 8 10.1.1.1
28 = 256 00001010 00000001 00000001 00000001
8 8 8 8
But, computers
32
number starts at
0, so to make a
Each 8 digit group
space of 256
represents a
numbers, we number between
number from 0 to 0 and 255
255.
The Power of Two Calculator
Converting Binary to Decimal
IP Address: Analogy
9
IP Address: Analogy
10
Example
Design a Wireless LAN network that connects
a router to two wireless computers and two
wired PCs. Each hosts must be able to ping
each other. See figure below.
IP Addressing
232 = 4,294,967,296
IP Address
Solution
Solution
19
IP Address Classes
Using the ranges, you can determine the
class of an address from its 1st octet
value.
An address beginning with
10 is a Class A address
172 is a Class B address
192 is a Class C address.
Example:
Find the class of each address
1. 192.14.2.0 = Class C
2. 231.230.45.58 = Class D
3. 174.100.18.4 = Class B
4. 119.18.45.0 = Class A
5. 249.240.80.78 = Class E
6. 10.45.78.95 = Class A
7. 88.100.45.1 = Class A
Finding the Class in Binary Notation
Example:
Find the class of each address
1. 00000001.00001011.00001011.11101111
2. 11000001.10000011.00011011.11111111
3. 10100111.11011011.10001011.01101111
4. 11110011.10011011.11111011.00001111
5. 11100011.10011011.11111011.00001111
6. 11000111.11111011.11111011.01101111
The IP Address Classes
IP Address Intended Use
Class
Class A For very large organizations with hundreds of
thousands or millions of hosts to connect to
the Internet
30
IPv4 Address is Divided into Two parts:
Large network
1 2 3 4
Medium network
1 2 3 4
Host ID
Small network
1 2 3 4
32
Which part belongs to the network and which
part belongs to the host?
IP Address
Class A
Large network
1 2 3 4
w x y z
1 2 3 4
1 2 3 4
1 2 3 4
Host ID
1 2 3 4
37
IP Address
Review Questions:
• Provide the classes of the following IP addresses:
1) 192.168.0.1 Class C
2) 169.254.11.12 Class B
3) 191.67.44.33 Class B
4) 4.2.2.3 Class A
5) 127.0.0.1 Class A
6) 216.239.61.104 Class C
7) 167.93.42.193 Class B
8) 208.80.152.2 Class C
9) 128.64.32.16 Class B
10) 64.233.189.103 Class A
38
IP Address
Review Questions:
• Identify if the IP addresses are on the same IP range
1) 192.168.0.1 192.168.100.10
2) 169.254.11.12 169.245.11.13
3) 191.67.45.33 191.67.45.11
4) 4.2.2.3 4.3.2.2
5) 127.0.0.1 172.0.0.2
6) 216.239.61.104 216.239.61.105
7) 167.93.42.193 167.39.42.199
8) 208.80.152.2 208.80.155.3
9) 128.64.32.16 128.64.192.16
10) 64.233.189.103 64.123.321.111
39
IP Address
Review Questions:
42
IP Address: Subnet Mask
Default Subnet Mask
Host ID
43
IP Address: Exercises
Review Questions:
• Provide the default subnet masks of the following IP
addresses: 1) 192.168.0.1 255.255.255.0
2) 169.254.11.12 255.255.0.0
3) 191.67.44.33 255.255.0.0
4) 4.2.2.3 255.0.0.0
5) 216.239.61.14 255.255.255.0
6) 249.2.5.17 N/A
44
IP Address: Checking
How to check a computer’s IP address?
• On the Open field, enter cmd
• On the Command Prompt, enter ipconfig
45
IP Address: Checking
How to check a computer’s IP address using GUI?
46
IP Address: Configuration
Static IP
• An IP address that is manually assigned by a user.
• An IP address that does not change.
Dynamic IP
• An IP address that keeps on changing.
• An IP address that is automatically assigned by a DHCP server.
DHCP server
47
IP Address: DHCP
DHCP
• Dynamic Host Configuration Protocol
• A protocol for assigning IP addresses to devices on a
network.
DHCP Server
• A device that provides IP addresses to devices on a
network.
• Most routers have built-in DHCP server.
DHCP Client
• A device that requests for an IP address.
48
IP Address: DHCP
DHCP Setup
Available IP Addresses
192.168.0.10
192.168.0.20
192.168.0.30
192.168.0.40
192.168.0.50
50
IP Address: Reserved IP Addresses
1. APIPA
2. Broadcast
3. Network
4. Loopback
IP Address: Reserved IP Addresses
APIPA
• Automatic Private IP Addressing.
• An address that is used when there is no available DHCP server, and the computer is
configured to obtain an IP address automatically.
Format
• 169.254.X.X
• X = any number from 0-255
IP Address: 169.254.123.213
Subnet Mask: 255.255.0.0 IP Address: 169.254.71.23 IP Address: 169.254.13.21
Subnet Mask: 255.255.0.0 Subnet Mask: 255.255.0.0
IP Address: Reserved IP Addresses
Broadcast Address
• Last IP address of a network.
• Example:
53
IP Address: Reserved IP Addresses
Network Address
• An IP address that represents an entire network.
• First IP address of a network.
• Example:
1. 192.99.4.11 192.99.4.0
2. 10.50.3.5 10.0.0.0
3. 222.56.23.10 222.56.23.0
4. 131.56.90.15 131.56.0.0
5. 70.56.34.1
70.0.0.0
What is the Broadcast Address of the
following IP Addresses:
1. 192.99.4.11 192.99.4.255
2. 10.50.3.5 10.255.255.255
3. 222.56.23.10 222.56.23.255
4. 131.56.90.15 131.56.255.255
5. 70.56.34.1
70.255.255.255
IP Address: Exercises
Review Questions:
• Public IPs are the addresses that are not part of the private IP
addresses and reserved IP addresses.
IP Address: Private IP
Private IP Addresses
216.239.61.104
192.168.0.20
192.168.0.10
Networking Utilities
Utilities: Testing Connectivity
Ping (Packet Internet Groper) Command
• Used to test whether a particular computer is reachable
across an IP network.
62
Utilities: Testing Connectivity
How to ping a computer?
• Go to the Command Prompt
• Enter ping [IP address]
63
Utilities: Testing Connectivity
Testing Connection Stability
• Go to the Command Prompt
• Enter ping [IP address] –t
65
Thank you for listening! ☺
66