You are on page 1of 31

IP ADDRESSING AND SUBNETTING

© 2004, Cisco Systems, Inc. All rights reserved. 1


Tipo de Preguntas Subneteo

• Dada una dirección IP y una mascara de subred, cuantas


subredes hay? y cuantos host hay por cada subred?
• Dada una dirección IP y una mascara de subred, cual es el
numero de Subred?
• Dada una dirección IP y una mascara de subred, cual es la
dirección de broadcast de la Subred?
• Dada una dirección IP y una mascara de subred, cual es el
rango de direcciones IP válidas?

© 2004, Cisco Systems, Inc. All rights reserved. 2


IP Address Review

© 2004, Cisco Systems, Inc. All rights reserved. 3


IP Address Review

© 2004, Cisco Systems, Inc. All rights reserved. 4


Subdividing the Host Octets of a Class C
Address

© 2004, Cisco Systems, Inc. All rights reserved. 5


Subdividing the Host Octets of a Class B
Address

© 2004, Cisco Systems, Inc. All rights reserved. 6


Subdividing the Host Octets of a Class A
Address

© 2004, Cisco Systems, Inc. All rights reserved. 7


Subnetting Chart (Bit Position and Value)

© 2004, Cisco Systems, Inc. All rights reserved. 8


Subnetting Chart (Subnet Mask Identifier)

© 2004, Cisco Systems, Inc. All rights reserved. 9


Subnetting

Mascara /27: 11111111.11111111.11111111.11100000


255.255.255.224

© 2004, Cisco Systems, Inc. All rights reserved. 10


Subnetting Chart

© 2004, Cisco Systems, Inc. All rights reserved. 11


Subnetting Scheme

© 2004, Cisco Systems, Inc. All rights reserved. 12


Find the Subnet Mask

255.240.0.0
255.255.255.224
255.255.255.248

© 2004, Cisco Systems, Inc. All rights reserved. 13


Calculating the Subnet ID

© 2004, Cisco Systems, Inc. All rights reserved. 14


The Logical ANDing Process

© 2004, Cisco Systems, Inc. All rights reserved. 15


Finding the Answer Without Using Binary

  

© 2004, Cisco Systems, Inc. All rights reserved. 16


EJEMPLO: 130.4.102.1, MASK 255.255.255.0

  

© 2004, Cisco Systems, Inc. All rights reserved. 17


EJEMPLO: 130.4.102.1, MASK 255.255.255.0

  

© 2004, Cisco Systems, Inc. All rights reserved. 18


EJEMPLO: 130.4.102.1, MASK 255.255.255.0

  

TO FIND THE FIRST VALID IP ADDRESS IN THE SUBNET, COPY THE


SUBNET NUMBER, BUT ADD 1 TO THE FOURTH OCTET.

© 2004, Cisco Systems, Inc. All rights reserved. 19


EJEMPLO: 130.4.102.1, MASK 255.255.255.0

  

THE LAST VALID IP ADDRESS IN THE SUBNET CAN BE CALCULATED


EASILY: COPY THE BROADCAST ADDRESS, EXCEPT SUBTRACT 1
FROM THE FOURTH OCTET.

© 2004, Cisco Systems, Inc. All rights reserved. 20


EJEMPLO :130.4.102.1, MASK 255.255.252.0

  

© 2004, Cisco Systems, Inc. All rights reserved. 21


EJEMPLO :130.4.102.1, MASK 255.255.252.0

  

© 2004, Cisco Systems, Inc. All rights reserved. 22


EJEMPLO :130.4.102.1, MASK 255.255.252.0

FIRST, YOU FIND IS THE MAGIC NUMBER — WHICH IS 256 MINUS THE MASK’S
INTERESTING OCTET. 256 – 252, MAGIC NUMBER OF 4.
THE MULTIPLE OF THE MAGIC NUMBER CLOSEST TO BUT NOT MORE THAN THE
ADDRESS’S INTERESTING OCTET IS THE SUBNET’S INTERESTING OCTET VALUE.

© 2004, Cisco Systems, Inc. All rights reserved. 23


EJEMPLO :130.4.102.1, MASK 255.255.252.0

  

ADD THE MAGIC NUMBER TO THE INTERESTING OCTET VALUE OF THE


SUBNET NUMBER AND SUBTRACT 1. THE RESULT IS THE BROADCAST
ADDRESS’S VALUE IN THE INTERESTING OCTET. IN THIS CASE, THE VALUE
IS 100 + 4 (MAGIC NUMBER) – 1 = 103.

© 2004, Cisco Systems, Inc. All rights reserved. 24


Determining Subnet, Broadcast Address and Valid Host Range

Example 1:
Host: 172.16.10.33 Subnet Mask: 255.255.255.224
Is this a Class A, Class B or Class C address? Class B
Therefore how many bits make up the Network portion? 16
How many bits are in the Subnet Mask?
11111111.11111111.11111111.11100000 = 27
How many bits are left for Host addresses? 5
How many separate addresses in each subnet? 32
Which address represents the whole subnet? 172.16.10.32
Which address is used to broadcast to the subnet? 172.16.10.63
Which addresses are left in the valid host range?

First Valid: 172.16.10.33 Last Valid: 172.16.10.62


© 2004, Cisco Systems, Inc. All rights reserved. 25
Determining Subnet, Broadcast Address and Valid Host Range

Example 2:
Host: 192.168.100.25 Subnet Mask: 255.255.255.252
Is this a Class A, Class B or Class C address?
Therefore how many bits make up the Network portion?
How many bits are in the Subnet Mask?
How many bits are left for Host addresses?
How many separate addresses in each subnet?
Which address represents the whole subnet?
Which address is used to broadcast to the subnet?
Which addresses are left in the valid host range?
© 2004, Cisco Systems, Inc. All rights reserved. 26
EJERCICIOS

• 172.31.100.100, mask 255.255.192.0


• 172.31.200.10, mask 255.255.248.0
• 192.168.100.100, mask 255.255.255.248

© 2004, Cisco Systems, Inc. All rights reserved. 27


EJERCICIOS

© 2004, Cisco Systems, Inc. All rights reserved. 28


EJERCICIOS

© 2004, Cisco Systems, Inc. All rights reserved. 29


EJERCICIOS

© 2004, Cisco Systems, Inc. All rights reserved. 30


Gracias por su atención …

© 2004, Cisco Systems, Inc. All rights reserved. 31

You might also like