You are on page 1of 25

IPv4

IP ADDRESSING

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

10.10.10.10
What is this ?
Just Set of numbers; IP address without
network mask is just set of numbers.

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

10.10.10.10 /24
IP add is a 4Octate, 4byte, 32bit address

10 . 10 . 10 . 10

IIIIIIII IIIIIIII IIIIIIII IIIIIIII

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

2414 5262
Area Code Subscriber No.

10 . 10 . 10 . 10 / 24

IIIIIIII IIIIIIII IIIIIIII IIIIIIII

N/W Bits

Session Number
Presentation_ID

Host Bits

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

10 . 10 . 10 . 10 / 24
IIIIIIII

IIIIIIII

IIIIIIII

IIIIIIII

N/W Bits

N/W add

10 . 10 . 10 . 0 / 24

Host add

10 . 10 . 10 . 10 / 24

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

210. 10 . 10 . 10 / 8
What is N/W add?
What is Host add?

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

DECIMAL to BINARY CONVERSION

I I I I I I I I
7

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

BINARY TO DECIMAL CONVERSION

I I I I I I I I
10 -

130 -

255 -

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

10 . 10 . 10 . 10 / 24
IIIIIIII

IIIIIIII

IIIIIIII

IIIIIIII

IIIIIIII

IIIIIIII

IIIIIIII

0000000

255

Session Number
Presentation_ID

255

255

2006 Cisco Systems, Inc. All rights reserved.

Prefix Mask

Subnet Mask

Cisco Confidential

CLASS OF ADDRESS
CLASS A
Public
IP ADD
Distribution
purpose

1 126

CLASS B 128 191


CLASS C 192 223

Subnet
Mask
255.0.0.0

Prefix
Mask

/8

Hosts Per
Subnet
24

/16

255.255.0.0
255.255.255.0

/24

Multicast
purpose

CLASS D 224 239

/1 - /32

Research
purpose

CLASS E 240 255

/1 - /32

127 Universal Loopback


Session Number
Presentation_ID

16

10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

10

Hosts Per Bit

I I I I I I I I
8

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

11

How will you read this

130 . 20 . 20 . 0 / 16
Class B address with default mask of 16 bits

130 . 20 . 20 . 0 / 24
Class B address with Subnet mask of 24 bits
If mask is more then given mask it is called subnet

130 . 20 . 20 . 0 / 8

Class B address with Supernet mask of 8 bits


If mask is less then given mask it is called supernet

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

12

16.0.0.0 /8

US

BLR

BKC

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

13

BKC

16 . 20 . 20 . 0 / 24
30
Users

12
Users
Andheri

Vashi

MS

NP

24
Users

Session Number
Presentation_ID

28
Users

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

14

Bits to mask

I + I +I I+ I + I +I I +
128

Session Number
Presentation_ID

64

32

16

2006 Cisco Systems, Inc. All rights reserved.

+
2

Cisco Confidential

15

16 . 20 . 20 . 0 / 24

BKC

16
.20

33
/2
16
.

20
.

20
.

16.20.20.2/27

Andheri

16.20.20.130/27

30
Users

16.20.20.98/27

Vashi
16.20.20.226/27

16.20.20.34/27

16.20.20.66/27

MS
16.20.20.161/27

24
Users

.20
.97
/27

27

16.20.20.129/27

.65/
0.20
16.2

12
Users

16.20.20.1/27

16.20.20.225/27

NP
16.20.20.193/27

28
Users

16.20.20.162/27

16.20.20.194/27

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

16

16 . 20 . 20 . 0 / 24

BKC

16
.20

16
.2
0.
20
.6
/3

16.20.20.2/30

Andheri

16.20.20.130/27

30
Users

16.20.20.13/30

Vashi
16.20.20.226/27

16.20.20.5/30

16.20.20.9/30

MS
16.20.20.161/27

24
Users

.20
.14
/30

30

16.20.20.129/27

.10/
0.20
16.2

12
Users

16.20.20.1/30

16.20.20.225/27

NP
16.20.20.193/27

28
Users

16.20.20.162/27

16.20.20.194/27

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

17

GIVEN: 16

. 20 . 20 . 0 /24

Requirement : - I need 4 networks ; IP subnet


zero is not allowed
Q1) what is the first Valid host address
Q2) What is the 2nd last broadcast address

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

18

GIVEN: 16

. 20 . 20 . 0 /24

Requirement : - I need 6 host add


Q1) what is the first Valid host address
Q2) What is the 2nd last broadcast address

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

19

I I I I I I I I
0

/27

31 /27

32 /27

63 /27

64 /27

95 /27

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

20

GIVEN: 16

. 20 . 0 . 0 /16

Requirement : - I need 1000 host add


Q1) what is the first Valid host address
Q2) What is the 2nd last broadcast address

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

21

GIVEN: 16

. 20 . 0 . 0 /16

Requirement : - I need 500 N/W Add


Q1) what is the first Valid host address
Q2) What is the 2nd last broadcast address

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

22

GIVEN: 16

. 0 . 0 . 0 /8

Requirement : - I need 4096 N/W Add


Q1) what is the first Valid host address
Q2) What is the 2nd last broadcast address

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

23

16 . 20 . 20 . 0 / 24
IIIIIIII

N/W Bits

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

24

Session Number
Presentation_ID

2006 Cisco Systems, Inc. All rights reserved.

Cisco Confidential

25

You might also like