تقسيم الشبكات subnetting

52
كات ب ش ل م ا ي ش ق تSubnetting

Upload: lilian-mccoy

Post on 06-Jan-2018

454 views

Category:

Documents


5 download

DESCRIPTION

ما هو الـ IP Subnetting؟ هو تقسيم رقم شبكة Network Address إلى شبكات أصغر فكرة التقسيم تتلخص في حجز بعض البتات من جزء عنوان الجهاز في عنوان IP لتخصيصها كعنوان للشبكة الفرعية مما يعني تقليل عدد العناوين المتاحة للاستخدام من قبل الأجهزة.

TRANSCRIPT

Page 1: تقسيم الشبكات Subnetting

الشبكات تقسيمSubnetting

Page 2: تقسيم الشبكات Subnetting

الـ • هو ؟IP Subnettingما

شبكة • رقم تقسيم إلى Network Addressهوأصغر شبكات

من • البتات بعض حجز في تتلخص التقسيم فكرةعنوان في الجهاز عنوان لتخصيصها IP جزء

عدد تقليل يعني مما الفرعية للشبكة كعنواناألجهزة قبل من لالستخدام المتاحة .العناوين

Page 3: تقسيم الشبكات Subnetting

التقسيم • عملية من سنجنيها التي :الفوائدالشبكة -1 ازدحام عندك . Reduce Network Trafficتقليل كان أذا

بث بإرسال تقوم األجهزة بعض كبيرة، إلى Broadcastشبكة . قمت إذا ولكن الشبكة ازدحام إلى يؤدي وهذا األجهزة جميع

بينهم ووضعت صغيرة شبكات إلى الشبكة هذه Routerبتقسيمالـ أن حيث الشبكة أداء تحسين إلى ذلك Routerسيؤدي

جهاز بين البيانات نقل حالة في المعلومات بمرور فقط سيسمح . الـ يسمح ولن أخرى شبكة في وأخر شبكة بمرور Routerفي

. Broadcastالبث األخرى الشبكة في األجهزة إلى

لقلة. 2 حدثت إذا المشكلة معرفة وسهولة الشبكة إدارة تسهيل. الواحدة بالشبكة األجهزة عدد

Page 4: تقسيم الشبكات Subnetting

التفكير • قبل الشبكة مدير على يجب عام بشكل: يلي كما األمور بعض يحدد أن تقسيمها في

الحصول- 1 يريد التي الفرعية الشبكات عددعليها.

فرعية- 2 شبكة كل من يريد التي األجهزة عدد. تحتويها أن

Page 5: تقسيم الشبكات Subnetting

IP Addressing

255 255

DottedDecimal

Maximum

Network Host

128 64 32 16 8 4 2 1

11111111 11111111 11111111 11111111Binary

32 bits

172 16 122 204ExampleDecimalExampleBinary

128 64 32 16 8 4 2 1

128 64 32 16 8 4 2 1

128 64 32 16 8 4 2 1

5 الرابع ) ( الفصل الحاسب شبكات مبادئ

Page 6: تقسيم الشبكات Subnetting

IP Address Classes

Class A:

Class B:

Class C:

Class D: Multicast

Class E: Research

Network

Network Network

Network Network Network

8 bits 8 bits 8 bits 8 bits

Page 7: تقسيم الشبكات Subnetting
Page 8: تقسيم الشبكات Subnetting
Page 9: تقسيم الشبكات Subnetting
Page 10: تقسيم الشبكات Subnetting

الفرعية الشبكة Subnet أقنعةMasks Default Mask

Page 11: تقسيم الشبكات Subnetting

Default Mask

11 الرابع ) ( الفصل الحاسب شبكات مبادئ

Page 12: تقسيم الشبكات Subnetting

Default subnet

12 الرابع ) ( الفصل الحاسب شبكات مبادئ

Page 13: تقسيم الشبكات Subnetting

Subnet Mask Exercise Answers

Address Subnet Mask Class Subnet

172.16.2.10

10.6.24.20

10.30.36.12

255.255.255.0

255.255.240.0

255.255.255.0

B

A

A

172.16.2.0

10.6.16.0

10.30.36.0

Page 14: تقسيم الشبكات Subnetting

Addressing without Subnets

Network 172.16.0.0

172.16.0.0

172.16.0.1 172.16.0.2 172.16.0.3

...…

172.16.255.253 172.16.255.254

Page 15: تقسيم الشبكات Subnetting

Subnet Mask with Subnets

Page 16: تقسيم الشبكات Subnetting

Addressing with Subnets

Network 172.16.0.0

172.16.1.0 172.16.2.0

172.16.3.0

172.16.4.0

Page 17: تقسيم الشبكات Subnetting

على • دائرة networkضعالتالية : العناوين على من

177.100.18.4•119.18.45.0•209.240.80.78•199.155.77.56•117.89.56.45•215.45.45.0•192.200.15.0•95.0.21.90•33.0.0.0

على • دائرة من Hostضعالتالية : العناوين

•10.15.123.50•171.2.199.31•198.125.87.177•223.255.200.222•17.45.222.45•126.201.54.231•191.41.35.112•155.25.169.227•192.15.155.2

Page 18: تقسيم الشبكات Subnetting

على • دائرة networkضعالتالية : العناوين على من

177.100.18.4•119.18.45.0•209.240.80.78•199.155.77.56•117.89.56.45•215.45.45.0•192.200.15.0•95.0.21.90•33.0.0.0

على • دائرة من Hostضعالتالية : العناوين

•10.15.123.50•171.2.199.31•198.125.87.177•223.255.200.222•17.45.222.45•126.201.54.231•191.41.35.112•155.25.169.227•192.15.155.2

Page 19: تقسيم الشبكات Subnetting
Page 20: تقسيم الشبكات Subnetting
Page 21: تقسيم الشبكات Subnetting
Page 22: تقسيم الشبكات Subnetting

Addressing Summary Example

16172 2 160

10101100 00010000 1010000000000010 Host

Mask

Subnet

Broadcast

Last

First

172.16.2.160

255.255.255.192

4

1

Page 23: تقسيم الشبكات Subnetting

Addressing Summary Example

10101100

11111111

00010000

11111111 11111111

10100000

11000000

00000010 Host

Mask

Subnet

Broadcast

Last

First

172.16.2.160

255.255.255.192

1

2

16172 2 160

Page 24: تقسيم الشبكات Subnetting

Addressing Summary Example

10101100

11111111

00010000

11111111 11111111

10100000

11000000

00000010 Host

Mask

Subnet

Broadcast

Last

First

172.16.2.160

255.255.255.192

1

2

3

7

16172 2 160

Page 25: تقسيم الشبكات Subnetting

Addressing Summary Example

10101100

11111111

00010000

11111111 11111111

10100000

11000000

10000000

00000010 Host

Mask

Subnet

Broadcast

Last

First

172.16.2.160

255.255.255.192

1

2

3

4

16172 2 160

Page 26: تقسيم الشبكات Subnetting

Addressing Summary Example

10101100

11111111

00010000

11111111 11111111

10100000

11000000

10000000

00000010

10111111

Host

Mask

Subnet

Broadcast

Last

First

172.16.2.160

255.255.255.192

1

2

3

4

56

16172 2 160

Page 27: تقسيم الشبكات Subnetting

Addressing Summary Example

10101100

11111111

00010000

11111111 11111111

10100000

11000000

10000000

00000010

10111111

10000001

Host

Mask

Subnet

Broadcast

Last

First

172.16.2.160

255.255.255.192

1

2

3

4

56

16172 2 160

Page 28: تقسيم الشبكات Subnetting

Addressing Summary Example

10101100

11111111

00010000

11111111 11111111

10100000

11000000

10000000

00000010

10111111

10000001

10111110

Host

Mask

Subnet

Broadcast

Last

First

172.16.2.160

255.255.255.192

1

2

3

4

56

7

16172 2 160

Page 29: تقسيم الشبكات Subnetting

Addressing Summary Example

10101100

11111111

10101100

00010000

11111111

00010000

11111111

00000010

10100000

11000000

10000000

00000010

10101100 00010000 00000010 10111111

10101100 00010000 00000010 10000001

10101100 00010000 00000010 10111110

Host

Mask

Subnet

Broadcast

Last

First

172.16.2.160

255.255.255.192

1

2

3

4

56

7

8

16172 2 160

Page 30: تقسيم الشبكات Subnetting

Addressing Summary Example

10101100

11111111

10101100

00010000

11111111

00010000

11111111

00000010

10100000

11000000

10000000

00000010

10101100 00010000 00000010 10111111

10101100 00010000 00000010 10000001

10101100 00010000 00000010 10111110

Host

Mask

Subnet

Broadcast

Last

First

172.16.2.160

255.255.255.192

172.16.2.128

172.16.2.191

172.16.2.129

172.16.2.190

1

2

3

4

56

7

89

16172 2 160

Page 31: تقسيم الشبكات Subnetting

192.168.2.160 &192.168.2.200Subnet mask 255.255.255.192

172.16.2.160

172.16.2.200

255.255.255.192

172.16.2.192

172.16.2.128

0At the same

network connect

1 At different

network

Connect to gateway

Source address

Destination address

Subnet mask

Page 32: تقسيم الشبكات Subnetting

IP Host Address: 172.16.2.121Subnet Mask: 255.255.255.0

•Subnet Address = 172.16.2.0•Host Addresses = 172.16.2.1–172.16.2.254•Broadcast Address = 172.16.2.255•Eight bits of subnetting

Network Subnet Host

10101100 00010000 00000010 11111111

172.16.2.121:255.255.255.0:

1010110011111111

Subnet: 10101100 00010000

0001000011111111

00000010

00000010

1111111101111001 00000000

00000000

Class B Subnet Example

Broadcast:

Network

Page 33: تقسيم الشبكات Subnetting

11111000

IP Host Address: 192.168.5.121Subnet Mask: 255.255.255.248

Network Subnet Host

192.168.5.121: 1100000011111111

Subnet: 11000000 10101000

1010100011111111

00000101

00000101

1111111101111001

01111000

255.255.255.248:

Class C Subnet Planning Example

•Subnet Address = 192.168.5.120•Host Addresses = 192.168.5.121–192.168.5.126•Broadcast Address = 192.168.5.127•Five Bits of Subnetting

Broadcast:

NetworkNetwork

11000000 10101000 00000101 01111111

Page 34: تقسيم الشبكات Subnetting
Page 35: تقسيم الشبكات Subnetting
Page 36: تقسيم الشبكات Subnetting
Page 37: تقسيم الشبكات Subnetting
Page 38: تقسيم الشبكات Subnetting
Page 39: تقسيم الشبكات Subnetting

تمارين

Page 40: تقسيم الشبكات Subnetting

الحل ••172.16.45.14/30•172.16.45.00001110•255.255.255.11111100•---------------------------------•172.16.45.12

Page 41: تقسيم الشبكات Subnetting

•Q 2:

•192.168.5.33/27؟ • الزيادة كم

؟ • شبكة أول وعنوان

Page 42: تقسيم الشبكات Subnetting

الحل••192.168.5.33/ 27•192.168.5.00100001•255.255.255.11100000•----------------------------------•192.168.5.00100000• 192.168.5.32 192.168.5.64-------- ب • 32الزيادة؟ • األجهزة عدد

Page 43: تقسيم الشبكات Subnetting

الحل /28

255.255.255.111100002^4-2=14

Page 44: تقسيم الشبكات Subnetting

255.255.255.111000002^5-2=30

Page 45: تقسيم الشبكات Subnetting

Rick Graziani [email protected]

Step 1: Translate Host IP Address and Subnet Mask into binary notation

138. 101. 114. 250 IP Address 10001010 01100101 01110010 11111010 Mask 11111111 11111111 11111111 11000000 255. 255. 255. 192

Step 1: Convert to Binary128 64 32 16 8 4 2 1

Page 46: تقسيم الشبكات Subnetting

Rick Graziani [email protected]

Step 2: Determine the Network (or Subnet) where this Host address lives:

1 .Draw a line under the mask2 .Perform a bit-wise AND operation on the IP Address and the Subnet Mask

Note: 1 AND 1 results in a 1, 0 AND anything results in a 03 .Express the result in Dotted Decimal Notation

4 .The result is the Subnet Address of this Subnet or “Wire” which is 138.101.114.192

138. 101. 114. 250 IP Address 10001010 01100101 01110010 11111010 Mask 11111111 11111111 11111111 11000000 Network 10001010 01100101 01110010 11000000 138 101 114 192

Step 2: Find the Subnet Address

Page 47: تقسيم الشبكات Subnetting

Rick Graziani [email protected]

Step 2: Determine the Network (or Subnet) where this Host address lives:Quick method:

.1Find the last (right-most) 1 bit in the subnet mask..2Copy all of the bits in the IP address to the Network Address

.3Add 0’s for the rest of the bits in the Network Address

138. 101. 114. 250 IP Address 10001010 01100101 01110010 11111010 Mask 11111111 11111111 11111111 11000000 Network 10001010 01100101 01110010 11000000 138 101 114 192

Step 2: Find the Subnet Address

Page 48: تقسيم الشبكات Subnetting

Rick Graziani [email protected]

Step 3: Determine which bits in the address contain Network (subnet) information and which contain Host information:

•Use the Network Mask: 255.255.0.0 and divide (Great Divide) the from the rest of the address.

•Use Subnet Mask: 255.255.255.192 and divide (Small Divide) the subnet from the hosts between the last “1” and the first “0” in the subnet mask.

G.D. S.D.

IP Address 10001010 01100101 01110010 11 111010 Mask 11111111 11111111 11111111 11 000000 Network 10001010 01100101 01110010 11 000000 subnet host

counting range counting range

Step 3: Subnet Range / Host Range

Page 49: تقسيم الشبكات Subnetting

Rick Graziani [email protected]

Host Portion•Subnet Address: all 0’s

•First Host: all 0’s and a 1•Last Host: all 1’s and a 0

•Broadcast: all 1’s

G.D. S.D.

IP Address 10001010 01100101 01110010 11 111010 Mask 11111111 11111111 11111111 11 000000 Network 10001010 01100101 01110010 11 000000 subnet host

counting range counting range

First Host 10001010 01100101 01110010 11 000001 138 101 114 193 Last Host 10001010 01100101 01110010 11 111110 138 101 114 254 Broadcast 10001010 01100101 01110010 11 111111 138 101 114 255

Step 4: First Host / Last Host

Page 50: تقسيم الشبكات Subnetting

Rick Graziani [email protected]

G.D. S.D.

IP Address 10001010 01100101 01110010 11 111010 Mask 11111111 11111111 11111111 11 000000 Network 10001010 01100101 01110010 11 000000 subnet host

counting range counting range

First Host 10001010 01100101 01110010 11 000001 138 101 114 193 Last Host 10001010 01100101 01110010 11 111110 138 101 114 254 Broadcast 10001010 01100101 01110010 11 111111 138 101 114 255

•Total number of subnets–Number of subnet bits 10

–210 = 1,024–1,024 total subnets

•Subtract one “if” all-zeros subnet cannot be used•Subtract one “if” all-ones subnet cannot be used

Step 5: Total Number of Subnets

Page 51: تقسيم الشبكات Subnetting

Rick Graziani [email protected]

G.D. S.D.

IP Address 10001010 01100101 01110010 11 111010 Mask 11111111 11111111 11111111 11 000000 Network 10001010 01100101 01110010 11 000000 subnet host

counting range counting range

First Host 10001010 01100101 01110010 11 000001 138 101 114 193 Last Host 10001010 01100101 01110010 11 111110 138 101 114 254 Broadcast 10001010 01100101 01110010 11 111111 138 101 114 255

•Total number of hosts per subnet–Number of host bits 6

–26 = 64–64 host per subnets

•Subtract one for the subnet address•Subtract one for the broadcast address

–62 hosts per subnet

Step 6: Total Number of Hosts per Subnet

Page 52: تقسيم الشبكات Subnetting

A - Range (1-126) 255.0.0.0B - Range (128-191)

255.255.0.0C - Range (192-223)

255.255.255.0