modul_04_subneting ipv4

31
Subneting IPv4 1

Upload: twentyniners

Post on 10-Apr-2018

229 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 1/31

Page 2: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 2/31

Layer 3 Devices

Routers

Interconnect network segments or entirenetworks.

 

2

.

Determines best path for data on an internetwork.

A.K.A Layer 3 Switching 

Page 3: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 3/31

Path Determination

The process the router uses to choose the next hop

in the path the packet travels.

The router uses the network address to identify thedestination network of a packet within an

3

internetwork. IP addresses can be assigned by a network

administrator or automatically (dynamically.)

Page 4: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 4/31

Layer 3 Packet/Datagram

VERS HLEN Service Type Total Length

 

4

 

Time to Live Protocol Header Checksum

Source IP Address

Destination IP AddressIP Options (if any) Padding

Data

Page 5: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 5/31

Network Layer Addresses

Network layer addresses are 32 bits long.

They are represented as four octets in dotted

5

233.14.17.0ec ma ormat.

The IP address has two components:

The Network ID

The Host Id

Page 6: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 6/31

Layer 3 Addresses

Network ID

Assigned by ARIN(www.arin.net)

Identifies the network to

Host ID

Assigned by a networkadministrator.

Identifies the specific

6

w c a ev ce sattached.

May be identified by one,two, or three of the first

three octets.

ev ce on a ne wor .

May be identified by one,two, or three of the lastthree octets.

Page 7: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 7/31

IP Addresses

32 bit address represented as 8 bit dotted decimals.

Different class addresses reserve different amounts of 

7

.

Class A N H H H

Class B N N H H

Class C N N N H

Page 8: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 8/31

Number of Hosts

Maximum number of hosts vary for each class.

Class A has 16,777,214 available hosts (224 –2)

Class B has 65,534 available hosts (216 –2)

Class C has 254 available hosts (28 –2)

8

The first address in each network is reserved for thenetwork address and the last address is reserved for

the broadcast address.

Page 9: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 9/31

Classes

How do you know what class an IP address

is in?

If the first octet is between:

 

9

– s a c ass a ress 128-191 it is a class B address

192 – 223 it is a class C address

Page 10: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 10/31

Recognizing Class in Binary

Format

128s place 64s place 32s place

 

10

 

Class B 1 0

Class C 1 1 0

Initial bitpattern infirst octet

of IPaddress.

Page 11: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 11/31

Page 12: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 12/31

Reserved Addresses

Broadcast Address – is used to send data to all of

the devices on a network. Broadcast IP addresses end with binary 1s in the

host part of the address.

12

Class B Broadcast Address example: 176.10.255.255

(Remember decimal 255 = binary 11111111)

Page 13: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 13/31

Basics of Subnetting

Subnetworks are smaller divisions of

networks.

They provide addressing flexibility.

 

13

. . . su nets Subnet addresses are assigned locally,

usually by a network administrator.

Subnets reduce a broadcast domain.

Page 14: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 14/31

Subnet Addresses

Include Class A, B, or C network portion plus

a subnet field and a host field. Bits are borrowed from the host field and are

desi nated as the subnet field.

14

 

Network Subnet Host

Page 15: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 15/31

How many bits can I borrow?

Size of Host Field Maximum # of borrowed bits

The minimum number of bits you can borrow is two.

15

Class A24 22

Class B 16 14

Class C 8 6

Page 16: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 16/31

Default Subnet Masks

Class A 255.0.0.0

16

 

Class B 255.255.0.0

Class C 255.255.255.0

Page 17: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 17/31

Calculating a Subnet

We will subnet the IP address:

223.14.17.0

What class IP address is this?

 

17

ass

Page 18: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 18/31

Step #1

Determine the default subnet mask

Class C default subnet mask:

18

255.255.255.0

Page 19: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 19/31

Step #2

Determine the number of subnets needed

and hosts on each to determine how manybits to borrow from the host ID.

19

13 subnets

10 hosts on each subnet

Page 20: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 20/31

Step #3

Figure the actual number of subnets and

hosts by borrowing bits from host ID.

Let’s see how many subnets and hosts we

20

.

Page 21: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 21/31

Step #3 continued…

223.14.17.0

21

X X X X H H H H

16 possiblesubnets

16 possiblehosts for each

subnet

Page 22: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 22/31

Step #3 continued…

We get 16 possible subnets and 16 possible hosts for each subnet because:

 

22

 

leaving you with 24 or 16 possible combinations.

The same goes for the 4 leftover host bits.

Important: There are only 14 available subnets and hosts on each subnet. Why?

Page 23: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 23/31

Step #3 continued…

Because you cannot use the first and last

subnet.

Because you cannot use the first and last

23

.

For each, one is the broadcast address andone is the network address.

Page 24: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 24/31

Step #4

Determine the subnet mask.

223.14.17.0

24

X X X X H H H H

Where X represents the borrowed bits forsubnetting.

Page 25: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 25/31

Step #4 continued…

Add the place values of X together to get the

last octet decimal value of the subnet mask.

25

128 + 64 + 32 + 16 = 240

The subnet mask is: 255.255.255.240

The subnet mask is used to reveal thesubnet and host address fields in IP

addresses.

Page 26: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 26/31

Step 5

Determine the ranges of host addresses for

each subnet.

26

Page 27: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 27/31

Step 5 continued…

Subnet # Subnet Bits Host Bits In Decimal1 0000 0000-1111 .0 -.15

2 0001 0000-1111 .16 - .31

 

27

- . - .

4 0011 0000-1111 .48 - .63

5 0100 0000-1111 .64 - .79

6 0101 0000-1111 .80 - .95

7 0110 0000-1111 .96 - .111

8 0111 0000-1111 .112 - .127

Page 28: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 28/31

Step 5 continued…

Subnet # Subnet Bits Host Bits In Decimal9 1000 0000-1111 .128 -.143

10 1001 0000-1111 .144 - .159

 

28

- . - .

12 1011 0000-1111 .176 - .191

13 1100 0000-1111 .192 - .207

14 1101 0000-1111 .208 - .223

15 1110 0000-1111 .224 - .239

16 1111 0000-1111 .240 - .255

Page 29: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 29/31

Step 5 continued…

There are 16 possible subnets.

There are 16 possible hosts on each subnet.

That equals 256 possible hosts.

29

What are our available subnets? What are our available hosts on each

subnet? Why?????

Page 30: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 30/31

Figuring Subnet

Network Addresses

Step #1: Change the IP host address to

binary. Step #2: Change the subnet mask to binary.

 

30

 

combine the two. Step #4:Convert the network binary address

to dotted decimal.

Page 31: Modul_04_Subneting IPv4

8/8/2019 Modul_04_Subneting IPv4

http://slidepdf.com/reader/full/modul04subneting-ipv4 31/31

Figuring Subnet

Network Addresses

IP Host 172.16.2.120Subnet Mask 255.255.255.0

31

. . .

11111111.11111111.11111111.00000000

10101100.00010000.00000010.00000000

172.16.2.0

This is the subnet network address. It is the lowestnumbered address on the subnet network. It can help

determine path.

 AND