将IP网络划分为4个子网

时间:2018-07-08 12:10:57

标签: networking network-programming ip subnet

我有一个任务:

  

将IP网络150.200.0.0的网络掩码设置为   255.255.0.0(/ 16)分成4个子网。

我需要填写一张表格,我用谷歌搜索并像这样填写它,不确定它是否正确。你能帮我吗?

+------+---------------+-------------+------------------------+-------------------+
| Bits | Subnet adress | Subnet mask | Computer address range | Broadcast address |
+------+---------------+-------------+------------------------+-------------------+
| ?    |  150.200.16.0 | 255.255.0.0 | 17-31                  |      150.200.16.0 |
| ?    |  150.200.32.0 | 255.255.0.0 | 33-47                  |      150.200.32.0 |
| ?    |  150.200.48.0 | 255.255.0.0 | 47-63                  |      150.200.48.0 |
| ?    |  150.200.64.0 | 255.255.0.0 | 65-79                  |      150.200.64.0 |
+------+---------------+-------------+------------------------+-------------------+

2 个答案:

答案 0 :(得分:0)

您不能仅仅像这样划分网段,您需要修改子网掩码,在这种情况下,将网络划分为4就是255.255.192.0。

第一段为150.200.0.1至150.200.63.254,广播为150.200.63.254

答案 1 :(得分:0)

好的,这是正确填充的表。我们除以255/4 = 64(这是子网地址中的一个步骤)。子网掩码255.555.0.0(二进制)11111111.11111111.00000000.00000000。如果我们划分为4个子网,则将11添加到第三个八位位组,如果将8个子网划分为111,以此类推。那么11111111.11111111.11000000.00000000 = 255.255.192.0。

+------+---------------+---------------+---------------------------------+-------------------+
| Bits | Subnet adress |  Subnet mask  |     Computer address range      | Broadcast address |
+------+---------------+---------------+---------------------------------+-------------------+
|   00 |   150.200.0.0 | 255.255.192.0 | 150.200.0.1 - 150.200.63.254    |    150.200.63.255 |
|   01 |  150.200.64.0 | 255.255.192.0 | 150.200.64.1 - 150.200.127.254  |   150.200.127.255 |
|   10 | 150.200.128.0 | 255.255.192.0 | 150.200.128.1 - 150.200.191.254 |   150.200.191.255 |
|   11 | 150.200.192.0 | 255.255.192.0 | 150.200.192.1 - 150.200.255.254 |   150.200.255.255 |
+------+---------------+---------------+---------------------------------+-------------------+