如何计算 IP 范围
您好,有人可以帮助解决以下问题吗?该问题来自过去准备考试的论文。
考虑一个互连三个子网的路由器:子网 1、子网 2、子网 3。假设每个子网中的所有接口都需要具有前缀 223.1.17/24。还假设子网 1 需要支持最多 125 个不同的主机,子网 2 和 3 需要分别支持最多 60 个不同的主机。
提供三个网络地址(格式为 abcd/x),定义每个子网的 IP 地址范围的开头,并解释您的推理。
我认为答案如下,但我不确定。
子网 1:223.1.17.1/25
子网 2:223.1.17.128/26
子网 3:223.1.17.193/26
此致。
Hi would someone be able to assist with the following question? The question is from a past paper in preparation for an exam.
Consider a router that interconnects three subnets: Subnet 1, Subnet 2, Subnet 3. Suppose all of the interfaces in each of these subnets are required to have the prefix 223.1.17/24. Also suppose that subnet 1 is required to support up to 125 different hosts, and subnets 2 and 3 are each required to support up to 60 different hosts.
Provide three network addresses (of the form a.b.c.d/x) that define the beginning of the IP address range for each subnet, and explain your reasoning.
I think the answer is the following, but I'm not sure.
Subnet 1: 223.1.17.1/25
Subnet 2: 223.1.17.128/26
Subnet 3: 223.1.17.193/26
Regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 IP 计算器看到这一点。网上有很多网站也向您展示了更多详细信息。
我最喜欢的(包括 IPv6)位于 http://netools.ch< /a>
You can see that by using a IP calculator. There are many on the net that also show you some more details..
My favorite (including IPv6) is at http://netools.ch
不完全是,网络地址始终是子网中的第一个地址,因此答案为:
223.1.17.0/25,IP 地址范围的开头:223.1.17.1(直到 0.126)
223.1.17.128/26,IP 地址的开头范围:223.1.17.129(直到 0.190)
222.1.17.192/26,IP 地址范围的开头:223.1.17.193(直到 0.254)
除此之外,您的 CIDR 子网长度是正确的,1 需要至少 126 个主机(- BC 和 NA),这证明 /25 -> 是合理的24 位用于 C 类,1 位用于子网,7 位(=2^7 = 128 - 广播 - 网络地址 = 126)用于主机,2 号和 3 号每个至少需要 62 个主机(-BC 和 NA)。
Not quite, Network addresses are always the first Addresses in a Subnet, so the answers would be:
223.1.17.0/25, beginning of IP Address Range: 223.1.17.1 (until .126)
223.1.17.128/26, beginning of IP Address Range: 223.1.17.129 (until .190)
222.1.17.192/26, beginning of IP Address Range: 223.1.17.193 (until .254)
Other than that, your CIDR-Subnet Length is correct, 1 needs at least 126 Hosts (- BC and NA), which justifies /25 -> 24 bits for Class C, 1 bit for Subnet and 7 bit(=2^7 = 128 - Broadcast - Network Address = 126) for hosts, No. 2 and 3 need at least 62 Hosts (-BC and NA) each.