可变长度子网掩码
Subnetting means dividing a network in multiple small networks. We use subnetting mainly to save the wastage of IP addresses. We will be discussing here subnetting of classful addressing. There are two types of subnetting,
子网划分是指将一个网络划分为多个小型网络。 我们主要使用子网划分来节省IP地址的浪费。 我们将在这里讨论分类寻址的子网划分。 子网划分有两种类型,
FLSM (Fixed Length Subnet Mask)
FLSM(固定长度子网掩码)
VLSM (Variable Length Subnet Mask)
VLSM(可变长度子网掩码)
We will be discussing here, how to perform subnetting step by step in both cases?
我们将在这里讨论两种情况下如何逐步进行子网划分?
1)FLSM(固定长度子网掩码) (1) FLSM (Fixed Length Subnet Mask))
Let’s, consider an IP address 198.168.10.0
让我们考虑一个IP地址198.168.10.0
Now we have to divide this IP address into 4 subnetwork parts. After dividing we have to find out the range of IP addresses blocks.
现在,我们必须将此IP地址划分为4个子网部分。 划分之后,我们必须找出IP地址块的范围。
4 Simple Steps for Calculating Network Blocks of IP Address
计算IP地址网络块的4个简单步骤
Step 1: Calculate the required subnet bit. In this subnetting process, we will borrow the bit from the host side.
步骤1:计算所需的子网位。 在此子网划分过程中,我们将从主机端借用该位 。
Now here is the question arise, which bits belong to the host side and network side?
现在出现问题了,哪些位属于主机端和网络端?
We will find it with the help of subnet masks. We are given a Class C IP address and default subnet mask for Class C is 255.255.255.0
我们将在子网掩码的帮助下找到它。 我们获得了C类IP地址,C类的默认子网掩码是255.255.255.0
Every octet consists of 8-bit in this case we are having 24 1’s in network bit.
每个八位位组由8位组成,在这种情况下,我们的网络位为24 1。