简体   繁体   English

了解子网划分

[英]Understanding subnetting

Assume your company is given an address of 200.5.16.0/24, 5 subnets are required. 假设您公司的地址为200.5.16.0/24,则需要5个子网。

I found that: Binary: 1111111.11111111.11111111.111000 我发现:二进制:1111111.11111111.11111111.111000

Decimal: 255.255.255.224 十进制:255.255.255.224

Create a table that contains the network addresses of the subnets created within your network? 是否创建一个表,其中包含在您的网络内创建的子网的网络地址? Write down the Network Addresses, 1st and 2nd valid IP addresses in CIDR 在CIDR中写下网络地址,第一和第二有效IP地址

(table displayed in below link) (表格显示在下面的链接中)

http://gyazo.com/d93608e491c5197b21d0d64c34c3904a http://gyazo.com/d93608e491c5197b21d0d64c34c3904a

Can someone do the first few for me and explain the process on how to do it? 有人可以帮我做头几件事,并解释如何做的过程吗? Thanks 谢谢

The process of dividing a network into smaller network sections is called subnetting. 将网络划分为较小的网络部分的过程称为子网划分。 This can be useful for many different purposes and helps isolate groups of hosts together and deal with them easily. 这对于许多不同的目的很有用,并有助于将主机组隔离在一起并轻松处理。

Each address space is divided into a network portion and a host portion. 每个地址空间都分为网络部分和主机部分。 The amount the address that each of these take up is dependent on the class that the address belongs to. 这些地址占用的地址数量取决于该地址所属的类。 For instance, for class C addresses, the first 3 octets are used to describe the network. 例如,对于C类地址,前3个八位位组用于描述网络。 For the address 192.168.0.15, the 192.168.0 portion describes the network and the 15 describes the host. 对于地址192.168.0.15,192.168.0部分描述了网络,而15则描述了主机。

By default, each network has only one subnet, which contains all of the host addresses defined within. 默认情况下,每个网络只有一个子网,其中包含其中定义的所有主机地址。 A netmask is basically a specification of the amount of address bits that are used for the network portion. 网络掩码基本上是用于网络部分的地址位数的规范。 A subnet mask is another netmask within used to further divide the network. 子网掩码是其中的另一个子网掩码,用于进一步划分网络。

Each bit of the address that is considered significant for describing the network should be represented as a "1" in the netmask. 在网络掩码中,被认为对描述网络有意义的地址的每一位都应表示为“ 1”。

For more details, please r 有关更多详细信息,请

http://www.cisco.com/c/en/us/support/docs/ip/routing-information-protocol-rip/13788-3.html http://www.cisco.com/c/en/us/support/docs/ip/routing-information-protocol-rip/13788-3.html

You already figured out that with this mask 1111111.11111111.11111111.11100000 you can create 5 networks, just put numbers in them: 您已经弄清楚,使用此掩码1111111.11111111.11111111.11100000 ,可以创建5个网络,只需在其中输入数字即可:

Mask: 11100000
Subnetworks:
    00000000 = 0
    00100000 = 32
    01000000 = 64
    01100000 = 96
    10000000 = 128
    10100000 = 160 - 192

The problem here is that you are not using the upper 64 addresses (192-255). 这里的问题是您没有使用高64位地址(192-255)。

Alternative 替代

You can make 4 subnetworks and split the last one: 您可以建立4个子网并拆分最后一个:

Mask: 11000000
Subnetworks:    
    00000000 = 0
    01000000 = 64
    10000000 = 128
    11000000 = 192  (split this one)

Subnetwork: 200.5.16.192/26
Mask: 11100000
Subnetworks:
    11000000 = 192
    11100000 = 224

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM