Module 12
Module 12
2
NETWORKING
AND IP ADDRESSING
3
Addressing Schemes
Flat Hierarchical
1. Used by Intranetworks 1. Used by Internetworks
2. Used by Layer 2 2. Used by Layer 3
3. Used in MAC address 3. Used by IP address
4. Is assigned statically 4. Is assigned dynamically
based on next available based on you location
number or random
A. Social Security Number A. Phone System
B. Your Name B. ZIP Code
C. MAC- C0:AD:00:23:4F:89 C. IP- 182.157.63.219
4
Internet Protocol address (IP address)
5
Types of Addressing
1. Static IP address
A. Manually assigned to a device by an administrator
B. Constant and does not change.
2. Dynamic IP address
A. Assigned to device each time it starts
B. Requires less human intervention
C. Less administration
D. Uses Dynamic Host Configuration Protocol (DHCP)
E. Enabled by default
F. No user intervention
6
Classful vs Classless
Classful Classless
1. Divided into 5 classes A, B, 1. Also known as CIDR (Classless
C, D (multicast) and Inter-Domain Routing)
E (reserved)
2. Does not send subnet 2. Sends subnet information
information
3. All networks are the same 3. Network can be different sizes
size
4. Have the same subnet 4. Networks can have different
mask subnet masks using VLSM
(Variable Length Subnet Mask)
5. Can NOT use first or last 5. Can use first and last subnets
subnets
7
Network & Host Numbers
8
Class A Addresses
Class A
8 Bits 24 Bits
Network Host Host Host
1. First octet only identifies the network
2. When written in a binary format, the first (leftmost) bit of a Class A
address is always 0 (zero)
3. Class A IP address example: 124.95.44.15
4. Range from 1-126 in their first octet
5. 127 is part of a class A range but has been reserved for loopback
testing
6. Zero (0) can’t be used
7. Remaining three octets can be used for the host portion of the
address
8. 224 or 16,777,216, possible IP addresses per class A network
9
Class B Addresses
Class B
16 Bits 16 Bits
Network Network Host Host
10
10
Class C Addresses
Class C
24 Bits 8 Bits
Network Network Network Host
11
Address Ranges
IMPORTANT!!!
MEMORIZE
12
12
Converting to Binary
2. 11000000.00001100.00000101.10101010
or
192.12.5.170
13
13
Converting to Binary
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
14
14
Network Address
Network Host
32 Bits
152 . 21 . 0 . 0
15
15
Examples of Network Numbers
1. 194.78.112.6 194.78.112.0
2. 117.23.8.3 117.0.0.0
3. 156.132.64.12 156.132.0.0
4. 208.150.112.16 208.150.112.0
5. 91.118.125.2 91.0.0.0
16
16
Broadcast Address
Network Host
32 Bits
152 . 21 . 255 . 255
17
17
Examples of Broadcast Address
1. 194.78.112.6 194.78.112.255
2. 117.23.8.3 117.255.255.255
3. 156.132.64.12 156.132.255.255
4. 208.150.112.16 208.150.112.255
5. 91.118.125.2 91.255.255.255
18
18
Network Number and Broadcast Address
19
19
Why Subnet?
Before Subnetting
Network Host
After Subnetting
Network Subnet Host
20
20
Subneting
Subnet Host
21
21
IMPORTANT!!!
22
22
What is a Subnet Mask?
Class B Default Subnet Mask Class B Subnet Mask with
255.255.0.0 4 bits borrowed
255.255.240.0
1. Formal name: extended network prefix
2. Tells the network devices which part of an address is the network
field and which part is the host field
3. 32 bits long and 4 octets, just like an IP address
4. Bits are always borrowed from the left most available bit
5. Allow numbers: 255, 254, 248, 240, 224, 192, 128, 0
6. Step to determine the subnet mask:
A. Express the subnetwork IP address in binary form
B. Replace the network and subnet portion of the address with all
1s
C. Replace the host portion of the address with all 0s
D. Convert the binary expression back to dotted-decimal notation
23
23
Subnet Mask
24
24
Examples of Subnet Mask
1. 194.78.112.6/28 255.255.255.240
2. 117.23.8.3/10 255.192.0.0
3. 156.132.64.12/19 255.255.224.0
4. 208.150.112.16/30 255.255.255.252
5. 91.118.125.2/16 255.255.0.0
25
25
Subneting
26
26
Useable Subnets and Host
MEMORIZE
1. Formula for calculating USEABLE Subnets (borrowed
bits):
2b - 2 = useable subnets
2u - 2 = useable hosts
27
27
Calculating Subnets and Hosts
28
28
Calculating Subnets and Hosts
The more subnets you create, the less hosts
each subnet will have
29
29
Boolean Operations
30
30
ANDing
31
31
Classful Subnetting
Things you know by default: Things you must always find out
first before finding your IP’s:
32
32
An IP address of 196.112.48.12 with the most
hosts:
1. Bits Borrowed 2
5. Increment 64
33
33
An IP address of 196.112.48.12/27:
1. Bits Borrowed 3
5. Increment 32
34
34
A class C address with 4 bits borrowed would
have:
1. Bits Borrowed 4
5. Increment 16
35
35
An IP address of 196.112.48.12/29:
1. Bits Borrowed 5
5. Increment 8
36
36
An IP address of 196.112.48.12 with the most
subnets:
1. Bits Borrowed 6
5. Increment 4
37
37
Class C Subnetting Chart
38
38
39
39
Private Addresses
The following rages are available for private
addressing:
Class A 10.0.0.0 – 10.255.255.255
Class B 172.16.0.0 – 172.31.255.255
Class C 192.168.0.0 – 192.168.255.255
1. Found in each class
2. Preserve IP addresses used on the Internet
3. Not routable or usable on the Internet
4. Added security
5. Used by:
A. Hosts that use Network Address Translation (NAT)
B. Proxy server to connect to a public network
C. Hosts that do not connect to the Internet at all
40
40
Automatic Private IP Addressing (APIPA)
41
41
Summary
42
42