Professional Documents
Culture Documents
TCPIP Addressing
TCPIP Addressing
Varun Jain
172.18.0.1 172.16.0.1
172.18.0.2 172.16.0.2
HDR SADA DATA
10.13.0.0 192.168.1.0
10.13.0.1 172.17.0.1 172.17.0.2 192.168.1.1
2
IP Addressing
32 bits
Dotted
Decimal Network Host
32 bits
Dotted
Decimal Network Host
128
64
32
16
8
4
2
1
128
64
32
16
8
4
2
1
128
64
32
16
8
4
2
1
128
64
32
16
8
4
2
1
4
IP Addressing (contd.)
32 bits
Dotted
Decimal Network Host
Binary 11111111111111111111111111111111
128
64
32
16
8
4
2
1
128
64
32
16
8
4
2
1
128
64
32
16
128
64
32
16
8
4
2
1
8
4
2
1
Example
Decimal
172 16 122 204
Example10101100 000100000111101011001100
Binary
5
IP Address Classes
Class D: Multicast
Class E: Research
6
IP Address Classes (contd.)
Bits: 1 8 9 16 17 24 25 32
0NNNNNNN Host Host Host
Class A:
Range (1-126)
Bits: 1 8 9 16 17 24 25 32
10NNNNNN Network Host Host
Class B:
Range (128-191)
1 8 9 16 17 24 25 32
Bits:
110NNNNN Network Network Host
Class C:
Range (192-223)
1 8 9 16 17 24 25 32
Bits:
1110MMMM Multicast
Multicast Group
Group Multicast
Multicast Group
Group Multicast
Multicast Group
Group
Class D:
Range (224-239)
7
Host Addresses
172.16.2.1 10.1.1.1
10.6.24.2
E1
172.16.3.10 E0 10.250.8.11
172.16.2.1
172.16.12.12 10.180.30.118
Routing Table
Network Interface
172.16.0.0 E0
172.16 . 12 . 12
10.0.0.0 E1
Network Host
8
Determining Available Host Addresses
Network Host
172 16 0 0
N
16
15
14
13
12
11
10
8
7
6
5
4
3
2
1
9
10101100 00010000 00000000 00000000 1
00000000 00000001 2
00000000 00000011 3
...
...
...
11111111 11111101 65534
11111111 11111110 65535
11111111 11111111 65536
- 2
2N-2 = 216-2 = 65534 65534
9
Private IP Addresses
Address Class Reserved address space
=======================================================
Class A 10.0.0.0 through 10.255.255.255
10
Decimal Equivalent Of Patterns
128 64 32 16 8 4 2 1
1 0 0 0 0 0 0 0 = 128
1 1 0 0 0 0 0 0 = 192
1 1 1 0 0 0 0 0 = 224
1 1 1 1 0 0 0 0 = 240
1 1 1 1 1 0 0 0 = 248
1 1 1 1 1 1 0 0 = 252
1 1 1 1 1 1 1 0 = 254
1 1 1 1 1 1 1 1 = 255
11
Addressing without Subnets
…...
172.16.0.0
Network 172.16.0.0
12
Addressing with Subnets
172.16.3.0
172.16.4.0
172.16.1.0 172.16.2.0
Network 172.16.0.0
13
How to create Subnets
14
Subnet Mask
15
Subnet Mask (contd.)
Network Host
IP
Address
172 16 0 0
Network Host
Default
Subnet
Mask
255 255 0 0
11111111 11111111 00000000 00000000
Also written as “/16” where 16 represents the number of 1s
in the mask.
Network Subnet Host
8-bit
Subnet 255 255 255 0
Mask
Also written as “/24” where 24 represents the number of 1s
in the mask.
16
Subnet Addressing
172.16.2.200 172.16.3.5
172.16.3.1
E1
172.16.2.2 E0 172.16.3.100
172.16.2.1
172.16.2.160 172.16.3.150
17
Subnet Addressing (contd.)
172.16.2.200 172.16.3.5
172.16.3.1
E1
172.16.2.2 E0 172.16.3.100
172.16.2.1
172.16.2.160 172.16.3.150
18
Subnet Basics
19
Subnet Mask Exercise
20
Subnet Mask Exercise (contd.)
21
Subnet Mask Exercise (contd.)
22
Subnet Mask Exercise (contd.)
23
Class C Subnet Planning example
24
Class B Subnet Planning example
25
Subnet Planning
20
20 subnets
subnets
55 hosts
hosts per
per subnet
subnet
Class
Class C
C address:
address:
192.168.5.0
192.168.5.0
192.168.5.16
Other
subnets
192.168.5.32 192.168.5.48
26
Broadcast Address Exercise
201.222.10.60 255.255.255.248
15.16.193.6 255.255.248.0
128.16.32.13 255.255.255.252
153.50.6.27 255.255.255.128
27
Broadcast Address Exercise Answers
28
Variable Length Subnet Masking
29
192.168.1.64 / 26
192.168.1.0 / 26
192.168.1.192 / 26
192.168.1.128 / 26
Before VLSM
192.168.2.0 / 26 192.168.2.64 / 26
192.168.1.0 / 26
192.168.1.192 / 30
192.168.1.64 / 26
192.168.1.196 / 30
After VLSM
192.168.1.200 / 30 192.168.1.128 / 26
30
Addressing with VLSM
31
Example
30 hosts
30 hosts
Point - to - point
30 hosts
30 hosts
192.168.2.0 / 24 30 hosts
32
Solution
192.168.2.0 / 27
0
/3
60
.1 192.168.2.32 / 27
8 .2
Point - to - point
. 16
2 / 30
19 1 64
.
8.2
.16
192
192.168.2.168 / 30 192.168.2.64 / 27
192
.16
8.2
.17
2/
30 192.168.2.96 / 27
19
2.
16
8.
2.
17
6
/3
0
192.168.2.128 / 27
33
Route Summarization
192.168.1.0 / 26
192.168.1.64 / 26 Advertised
summarized
route:
192.168.1.128 / 26
192.168.1.0 /24
192.168.1.192 / 26
34
Advantages of Summarization
35
Classless Inter-domain Routing
(CIDR)
36
CIDR Example
192.168.0.0 / 24
192.168.1.0 / 24
192.168.0.0 / 22
192.168.2.0 / 24
192.168.3.0 / 24
37
Hierarchical Addressing
38
Simple Hierarchical Addressing Example
Campus 2 Campus 3
Campus 1
10.2.0.0 / 16 10.3.0.0 / 16
10.1.0.0 / 16
39
Routing and Subnet Masks
CLASSFULL
172.16.0.0 / 16
CLASSLESS
172.16.1.0 / 24
40
Discontiguous Subnets
Router C
CLASSFULL
172.16.0.0 / 16 172.16.0.0 / 16
Router C
CLASSLESS
172.16.1.0 / 24 172.16.2.0 / 24
41
Performance Summarization
42
Route Summarization
192.168.5.208 /28
192.168.5.112 /28
C
192.168.5.32 /28
192.168.5.48 /28 192.168.5.96 /28
192.168.5.128 /28
192.168.5.144 /28 192.168.5.192 /28
192.168.5.176 /28
192.168.5.160 /28 A
192.168.5.64 /28
192.168.5.80 /28
43
B
192.168.5.208 /28
192.168.5.112 /28
C
192.168.5.32 /28
192.168.5.48 /28 192.168.5.96 /28
192.168.5.128 /28
192.168.5.144 /28 192.168.5.192 /28
192.168.5.176 /28
192.168.5.160 /28 A
192.168.5.64 /28
192.168.5.80 /28
192.168.5.64/26 This covers addresses 64–127, which are to the right of Router A.
192.168.5.192/27 This covers addresses 192–223, which are also to the right of Router A.
44
Summary
45
Summary
y VLSM allows you to have more than one subnet mask applied to the
same class address.
y VLSM’s advantages include more efficient use of addressing and route
summarization. Only classless protocols such as RIPv2, EIGRP, OSPF,
IS-IS, and BGP support VLSM.
y Route summarization is the ability to take a group of contiguous entries
in your routing table and advertise these entries as a single summarized
entry.
y CIDR is s special type of route summarization. CIDR allows you to
summarize a group of contiguous class network numbers.
y Summarization can be achieved only by laying out hierarchical
addresses in your network.
y It decreases routing table sizes, the amount of memory for routing, the
number of processing cycles required, and difficulties with
troubleshooting.
y When implementing route summarization, note that the routing protocol
must carry the subnet mask along with the routing entry: Only classless
protocols allow this process.
46
Questions
6. You are given a Class C network with 25 bits of networking. How many
subnets do you have?
A. 1 B. 2 C. 3 D. 4
47
7. You are given a Class C network with a subnet mask of 255.255.255.248.
How many host addresses are there on each subnet?
A. 4 B. 6 C. 8 D. 14
8. You are given a Class B network with a subnet mask of 255.255.255.192.
How many host addresses are there on each subnet?
A. 30 B. 62 C. 126 D. 254
9. You are given the following addressing information: 192.168.37.192/25.
What type of address is this?
A. Network B. Directed Broadcast C. Host
10. You are given the following addressing information: 10.0.8.0/22. What
type of address is this?
A. Network B. Directed Broadcast C. Host
11. VLSM allows you to summarize 192.168.2.0/24 and 192.168.3.0/24 as
192.168.2.0/25.
A. True B. False
12. VLSM allows a network segment to have more than one subnet mask.
A. True B. False
48
13. Which protocol supports VLSM?
A. RIP B. IGRP C. RIP and IGRP D. None of these
14. You are given a Class C network, 192.168.1.0/24. You need one network
with 120 hosts and two networks with 60 hosts. How many subnet masks do
you need?
A. 1 B. 2 C. 3 D. 4
15. You are given a class C network, 192.168.1.0/24. You need one network
with 120 hosts and three networks with 60 hosts. What subnet mask values
would you use?
A. 255.255.255.128 and 255.255.255.192
B. 255.255.255.128
C. 255.255.255.192
D. None of these
16. You are given a class C network, 192.168.1.0/24. You need three
networks with 60 hosts and two networks with 30 hosts. What are the subnet
mask values you could use?
A. 255.255.255.240 and 255.255.255.192
B. 255.255.255.224 and 255.255.255.240
C. 255.255.255.192 and 255.255.255.224
D. None of these
17. You are given this address space: 172.16.5.0/25. You need one network
with 64 hosts and two with 30 hosts. What are the most specific subnet mask
values to use?
A. /25 and /26 B. /26 and /27 C. /27 and /28 D. None of these
49