IP - Addressing - Part 1
IP - Addressing - Part 1
Part I
IPv4 Addresses
2.2
1.1
2.1
1.3
3.1
3.2
• Network Portion:
• Some portion of the high-order bits represents the
network address.
• At Layer 3, we define a network as a group of hosts that
have identical bit patterns in the network address portion
of their addresses.
• Host Portion:
• There are a variable number of bits that are called the
host portion of the address.
• The number of bits used in this host portion determines
the number of hosts that we can have within the network.
Position 7 6 5 4 3 2 1 0
Base 27 26 25 24 23 22 21 20
Value 128 64 32 16 8 4 2 1
String 0 0 0 0 0 0 0 0
String 0 0 0 0 0 0 0 1
String 0 0 0 0 0 0 1 0
Range: 0 to 255
String 1 1 1 1 1 1 1 1
IP Address: 11001001000100010001110100000100
201 17 29 4
IP Address: 201.17.29.4
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
1
0 1
0 0 0
1 1
0 0
1 0 1
0
27 26 25 24 23 22 21 20
Dec. 128 64 32 16 8 4 2 1
21 0 0 0 1 0 1 0 1
50 0 0 1 1 0 0 1 0
101 0 1 1 0 0 1 0 1
150 1 0 0 1 0 1 1 0
206 1 1 0 0 1 1 1 0
IP Address: 201.17.29.4
201
- 128
73
- 64
27 26 25 24 23 22 21 20
9
128 64 32 16 8 4 2 1
- 8
1 1 0 0 1 0 0 1
1
- 1
0
IP Address: 201.17.29.4
17 201
- 16 11001001
1
- 1
27 26 25 24 23 22 21 20
0
128 64 32 16 8 4 2 1
0 0 0 1 0 0 0 1
IP Address: 201.17.29.4
29 201 17
- 16 11001001 00010001
13
- 8
27 26 25 24 23 22 21 20
5
128 64 32 16 8 4 2 1
- 4
0 0 0 1 1 1 0 1
1
- 1
0
IP Address: 201.17.29.4
4 201 17 29 4
- 4 11001001 00010001 00011101 00000100
0
27 26 25 24 23 22 21 20
Binary String:
128 110001001000100010001110100000100
64 32 16 8 4 2 1
0 0 0 0 0 1 0 0
27 26 25 24 23 22 21 20
Dec. 128 64 32 16 8 4 2 1
2 0 0 0 0 0 0 1 0
10 0 0 0 0 1 0 1 0
17 0 0 0 1 0 0 0 1
130 1 0 0 0 0 0 1 0
252 1 1 1 1 1 1 0 0
• Three types:
Network: A special address that refers to the network
as an entity.
• Three types:
• Default Route:
• Address - 0.0.0.0 Subnet Mask – 0.0.0.0
• When configured, it tells the device….
If you don’t know where to send the frame, send it here.
• Loopback:
• Address - 127.0.0.1
• Host applications use it to communicate with each other.
• Test TCP/IP configuration on a PC – ping 127.0.0.1
• Test-Net Addresses:
• Address Range 192.0.2.0 to 192.0.2.255
• Used for teaching and learning purposes.
• Appear in documentation and network examples.
• Will be accepted by a network device.
• Used to provide examples in RFCs and vendor and
protocol documentation.
• Should not appear on the Internet.
Global IANA
Large companies
and Tier 3 ISPs
Assigning Addresses
IPv4 Addresses
Prefix and Subnet Mask
192.168.10.2/24
• How do the network devices know how many bits are the
network portion and how many bits are the host portion?
• Subnet Mask:
• A 32 bit value, expressed in dotted decimal notation,
that specifies the number of network bits and the
number of host bits.
• The Prefix Mask and the Subnet Mask are different
ways of representing the same information.
• Prefix Mask of /24 or a subnet mask of 255.255.255.0
• First 24 bits are the network portion.
• The remaining 8 bits are the host portion.
A B Result
0 0 0
1 0 0
0 1 0
1 1 1
CCNA1-60 Chapter 6-1
Is the Host on My Network?
A B Result
0 0 0
1 0 0
0 1 0
1 1 1
Decimal Binary
0000111
IP Address 135.15.2.1 10000111 00000010 00000001
1
1111111
Subnet Mask 255.255.0.0 11111111 00000000 00000000
1
0000111
Network 135.15.0.0 10000111 00000000 00000000
1
Decimal Binary
0000111
IP Address 135.15.2.1 10000111 00000010 00000001
1
1111111
Subnet Mask 255.255.0.0 11111111 00000000 00000000
1
0000111
Network 135.15.0.0 10000111 00000000 00000000
1
C:>ping 10.0.0.1
Verifies that the local IP
configuration is correct.
C:>ping 10.0.0.254
Verifies that the host
can reach the gateway.
C:>ping 10.0.1.2