Documente Academic
Documente Profesional
Documente Cultură
Cisco Public
IP addressing works at
OSI model layer 3
TCP/IP model Internet layer
Application
Presentation
Session
Transport
Network
Data link
Physical
Data
stream
HTTP, FTP,
TFTP, SMTP
etc
Segment
TCP, UDP
Packet
IP
Frame
Ethernet,
WAN
technologies
Bits
Cisco Public
Application
Transport
Internet
Network Access
Addressing topics
Binary and decimal
Types of IP addresses
Assigning addresses
Network part and subnet masks
Calculating addresses
Ping and Traceroute Utilities
Cisco Public
Cisco Public
248 to binary
128
64
32
16
56
-32
24
24
-16
8
248
-128
120
120
-64
56
Cisco Public
187 to binary
128
64
32
16
59
-32
27
27
-16
11
187
-128
59
Cisco Public
11
-8
3
3
-2
1
89 to binary
128
64
32
16
89
-64
25
25
-16
9
Cisco Public
9
-8
1
00110100 to decimal
128
64
32
16
32
16
32
+16
+ 4
52
52
Cisco Public
01010101 to decimal
128
64
32
16
64
16
64
+16
+ 4
+ 1
85
85
Cisco Public
11001111 to decimal
128
64
32
16
128
64
128
+ 64
+ 8
+ 4
+ 2
+ 1
207
2006 Cisco Systems, Inc. All rights reserved.
207
Cisco Public
10
Cisco Public
11
IPv4 address
192.
168.
21.
17
11000000
10101000
00010101
00010001
octet
octet
octet
network part
octet
host part
255.
255.
11111111
11111111
11111111
00000000
Cisco Public
12
168.
21.
17
11000000
10101000
00010101
00010001
168.
21.
11000000
10101000
00010101
00000000
Cisco Public
13
Logical AND
192.
168.
21.
17
11000000
10101000
00010101
00010001
255.
255.
255.
11111111
11111111
11111111
00000000
192.
168.
21.
11000000
10101000
00010101
00000000
Cisco Public
14
168.
21.
17
11000000
10101000
00010101
00010001
168.
21.
255
11000000
10101000
00010101
11111111
Cisco Public
15
3 types of address
Every network has:
Network address the first one
Broadcast address the last one
Host addresses everything in between
Cisco Public
16
Classful addressing
A
10.
17.
network part
53.
host part
172.
16.
38.
network part
192.
201
host part
168.
network part
60
Cisco Public
21.
17
host part
17
Classful addressing
Easy to work out but very wasteful.
Routers and hosts still assume class subnet masks by
default
Class A
/8
255.0.0.0
Class B
/16
255.255.0.0
Class C
/24
255.255.255.0
Cisco Public
18
Classless addressing
Any suitable prefix can be used
We (and devices) need to know what the prefix is.
More flexible, less wasteful.
Cisco Public
19
16.
0.
10101100
00010000
00000000
00000000
Cisco Public
20
16.
0.
10101100
00010000
00000000
00000000
Cisco Public
21
16.
0.
10101100
00010000
00000000
00000000
Cisco Public
22
16.
0.
10101100
00010000
00000000
00000000
Cisco Public
23
16.
0.
10101100
00010000
00000000
00000000
Cisco Public
24
Calculating addresses
A host has IP address 192.168.1.70/24
What is the subnet mask?
What is the network address?
What is the broadcast address?
What is the range of host addresses in the network?
Cisco Public
25
Last octet
decimal
Full
Host
Subnet mask
Network
Broadcast
First host
Last host
Cisco Public
26
192.168.1.70/24
Last octet binary
Last octet
decimal
Host
01000110
70
192.168.1.70
Subnet mask
00000000
255.255.255.0
Network
00000000
192.168.1.0
Broadcast
11111111
255
First host
00000001
Last host
11111110
254
Cisco Public
Full
192.168.1.255
192.168.1.1
192.168.1.254
27
Calculating addresses
A host has IP address 192.168.1.70/26
What is the subnet mask?
What is the network address?
What is the broadcast address?
What is the range of host addresses in the network?
Cisco Public
28
Last octet
decimal
Full
Host
Subnet mask
Network
Broadcast
First host
Last host
Cisco Public
29
192.168.1.70/26
Last octet
binary
Last octet
decimal
Host
01000110
70
192.168.1.70
Subnet mask
11000000
192
255.255.255.192
Network
01000000
64
192.168.1.64
Broadcast
01111111
127
192.168.1.127
First host
01000001
65
192.168.1.65
Last host
01111110
126
192.168.1.126
Cisco Public
Full
30
Calculating addresses
A host has IP address 192.168.1.70/28
What is the subnet mask?
What is the network address?
What is the broadcast address?
What is the range of host addresses in the network?
Cisco Public
31
Last octet
decimal
Full
Host
Subnet mask
Network
Broadcast
First host
Last host
Cisco Public
32
192.168.1.70/28
Last octet
binary
Last octet
decimal
Host
01000110
70
192.168.1.70
Subnet mask
11110000
240
255.255.255.240
Network
01000000
64
192.168.1.64
Broadcast
01001111
79
192.168.1.79
First host
01000001
65
192.168.1.65
Last host
01001110
78
192.168.1.78
Cisco Public
Full
33
Cisco Public
34
Private IP addresses
Unrestricted use on private networks. Not routed across
the Internet.
10.0.0.0 10.255.255.255 (10.0.0.0/8)
172.16.0.0 172.31.255.255 (172.16.0.0/20)
192.168.0.0 192.168.255.255 (192.168.0.0/24)
Cisco Public
35
Public IP addresses
Routed over the Internet
Master holder is IANA
Assigned to regional registries and then to ISPs
ISPs allocate them to organisations and individual
users
Use is strictly controlled as duplicate addresses are not
allowed
Cisco Public
36
Special addresses
0.0.0.0 all addresses in default route. Hosts cannot be
given addresses starting 0.
127.0.0.1 is loopback. Hosts cannot be given addresses
starting 127.
240.0.0.0 and higher reserved for experimental
purposes.
169.254.0.0 - 169.254.255.255 local only
192.0.2.0 to 192.0.2.255 for teaching
Cisco Public
37
Cisco Public
38
Addressing hosts
Static addressing address is configured by an
administrator
Servers, printers, routers, switches need static
addresses
Dynamic addressing address is allocated
automatically by DHCP by leasing addresses from a
pool
Dynamic addressing is best for workstations
Cisco Public
39
Blocks of addresses
Use
Address range
Summary
Network address
192.168.1.0
192.168.1.0/25
User hosts
192.168.1.1-127
Servers
192.168.1.128 - 191
192.168.1.128/26
Peripherals
192.168.1.192 - 223
192.168.1.192/27
Network devices
192.168.1.224 - 253
192.168.1.224/27
Router
192.168.1.254
Broadcast
192.168.1.255
Cisco Public
40
Subnetting 192.168.1.0/24
Last octet binary
Address
192.168.1.0
00000000
Subnet mask
255.255.255.0
00000000
192.168.1.0
192.168.1.128
00000000
10000000
Subnet mask
255.255.255.128
10000000
Cisco Public
41
Subnetting 192.168.1.0/24
Borrow 2 bits from host part, give to network part, /26
Addresses
192.168.1.0
192.168.1.64
192.168.1.128
192.168.1.192
00000000
01000000
10000000
11000000
Subnet mask
255.255.255.192
11000000
Cisco Public
42
Subnetting 192.168.1.0/24
Borrow 3 bits from host part, give to network part, /27
Addresses
192.168.1.0
192.168.1.32
192.168.1.64
192.168.1.96
192.168.1.128
192.168.1.160
192.168.1.192
192.168.1.224
00000000
00100000
01000000
01100000
10000000
10100000
11000000
11100000
Subnet mask
255.255.255.224
11100000
Cisco Public
43
Subnetting 192.168.1.0/24
Borrow 4 bits from host part, give to network part, /28
192.168.1.0
192.168.1.16
192.168.1.32
192.168.1.48
192.168.1.64
192.168.1.80
192.168.1.96
192.168.1.112
192.168.1.128
192.168.1.144
192.168.1.160
192.168.1.176
192.168.1.192
192.168.1.208
192.168.1.224
192.168.1.240
00000000
00010000
00100000
00110000
01000000
01010000
01100000
01110000
10000000
10010000
10100000
10110000
11000000
11010000
11100000
11110000
11110000
And so on
2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
44
Subnetting 192.168.1.0/24
Every time you borrow another bit you:
Double the number of subnets
Halve the size of the subnets
Each subnet has a network address, a broadcast
address, and everything in between is a host address.
Here are some ways of visualising the process.
Cisco Public
45
Subnetting 192.168.1.0/24
Bits borrowed
No of networks
16
32
64
Prefix
/25
/26
/27
/28
/29
/30
128
64
32
16
No of hosts
126
62
30
14
Subnet mask
128
192
224
240
248
252
Cisco Public
46
Address space
Make a spreadsheet or table with numbers 0 to 255
Link to show table
Cisco Public
47
Subnet chart
Cisco Public
48
Subnetting
There are many subnet calculators, but you will not be
able to use them in exams.
Start with the biggest subnet and work down to the
smallest.
Make sure the subnets are valid sizes with valid subnet
masks.
Make sure that there are no overlaps.
Cisco Public
49
Cisco Public
50
IPv6
Development started in 1990s because of concerns about
IPv4 addresses running out
A whole new protocol suite not just layer 3
Uses 128-bit hierarchical addressing, written using
hexadecimal
Simpler header
Integrated security authentication, privacy
Quality of service mechanisms
Cisco Public
51
Subnetting - visual
Cisco Public
52
Prefix /24
Three octets in network
part, last octet in host part.
All possible numbers 0
255 in last octet belong in
the same network.
Network address yellow
Broadcast address blue
Subnet mask
255.255.255.0
Cisco Public
53
Prefix /25
First bit of fourth octet
taken into network part.
For every bit taken, double
number of networks, halve
their size.
Network address yellow
Broadcast address blue
Subnet mask
255.255.255.128
Cisco Public
54
Prefix /26
2 bits of fourth octet taken
into network part.
For every bit taken, double
number of networks, halve
their size.
Network address yellow
Broadcast address blue
Subnet mask
255.255.255.192
Cisco Public
55
Prefix /27
3 bits of fourth octet taken
into network part.
For every bit taken, double
number of networks, halve
their size.
Network address yellow
Broadcast address blue
Subnet mask
255.255.255.224
Cisco Public
56
Prefix /28
4 bits of fourth octet taken
into network part.
For every bit taken, double
number of networks, halve
their size.
Network address yellow
Broadcast address blue
Subnet mask
255.255.255.240
Cisco Public
57
Prefix /29
5 bits of fourth octet taken
into network part.
For every bit taken, double
number of networks, halve
their size.
Network address yellow
Broadcast address blue
Subnet mask
255.255.255.248
Cisco Public
58
Prefix /30
6 bits of fourth octet taken
into network part.
For every bit taken, double
number of networks, halve
their size.
Network address yellow
Broadcast address blue
Subnet mask
255.255.255.252
Cisco Public
59
Variable length
/27
/26
/25
Networks do not need to
be all the same size.
Cisco Public
60
Summary
Hierarchical Design model addresses performance,
scalability, maintainability & manageability issues.
Traffic Analysis is used to monitor network
performance.
Hierarchical Design Model is composed of 3 layers:
Access
Distribution
Core
Cisco Public
61
Detail
PT
1.2.4
Mandatory*
Lab
1.3.1
Mandatory
PT
1.3.2
Mandatory
Lab
1.3.3
Review carefully
Cisco Public
62
Cisco Public
63