Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Subnetting formulas and cases

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Subnetting, find out five problems

1. How many subnets are there?

two。 How many hosts are there in each subnet

3. How many legal subnets are there?

4. What is the broadcast address of each subnet

5. Which are legitimate host numbers

For example:

192.168.10.0.Compact 26 subnetting

This address is a class c address with a default subnet mask of 255.255.255.0. The subnet is divided into four segments by three points, the first three segments are network bits, and the fourth segment is host bit, expressed by decimal system and transformed into binary bits 1111111111111111111111.00000000.

There are 24 1s in front and 8 zeros behind, so the default class c subnet is written as / 24

192.168.10.Compact 26, which is divided into binary 11111111111111111111111111000000, consisting of 26 network bits of 1 and 6 host bits of 0, which is 255.255.255.192 in decimal system.

1. How many subnets are there?

The number of subnets = 2 to the x power, x is the number of mask bits.

Mask bits = network bits-default network bits = 26-24 = 2

Number of subnets = 2 * 2 = 4

two。 Number of hosts in the subnet

The number of hosts in the subnet = 2 to the y power of-2, where y is the number of zeros in the subnet mask

/ 26 there are 6 zeros

Number of hosts in subnet = 2 * 6-2 = 62

3. Legal subnet

The subnet of / 26 is masked as decimal 255.255.255.192

Use 256-192 = 64, so the step size is 64

0 + 64 = 64

64 + 64 = 128

128 + 64 = 192

192 + 64 = 256

The legal subnet is 0 64 128 192

4. Broadcast address of the subnet

Broadcast address = next subnet-1

So the broadcast address of 0 is 64-1 = 63.

The broadcast address of 64 is 128-1 = 127

The broadcast address of 128 is 192-1 191

The broadcast address of 192 is 256-1 = 255

5. Legitimate host number

The value of the legal host number between subnets, minus the largest and lowest address in the subnet

So

The legal address of 0 is 1-62

The legal address of 64 is 65-126.

The legal address of 128 is 129-190

The legal address of 192 is 193-254

So

192.168.10.0

If the subnet is 255.255.255.64

The broadcast address of the subnet is 1-62

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 236

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report