假设我有136.181.0.0 / 16,我想把它分成11个子网
我得到/ 19?首先它是/ 16只有1个子网(实际上当尚未应用子网时,它仍称为网络地址)。从主机位借位1位,得到/ 17有两个子网。借用另一个,然后你将得到4个子网和18的前缀。再借一点,然后得到8个子网,其中/ 19作为CIDR。
在这里不确定9日,10日和11日..
1st 136.181.0.0/19
2nd 136.181.32.0/19
3rd 136.181.64.0/19
4th 136.181.96.0/19
5th 136.181.128.0/19
6th 136.181.160.0/19
7th 136.181.192.0/19
8th 136.181.224.0/19
9th 136.181.224.1/19
10th 136.181.224.33/19
11th 136.181.224.65/19
答案 0 :(得分:3)
136.181.0.0/16 (255.255.0.0)
(N = Network, S = Subnet, H = Host)
10001000.10110101.00000000.00000000
NNNNNNNN.NNNNNNNN.HHHHHHHH.HHHHHHHH
NNNNNNNN.NNNNNNNN.SSSSHHHH.HHHHHHHH
01: 136.181.00000000.00000000/19 (136.181.0.0)
02: 136.181.00010000.00000000/19 (136.181.16.0)
03: 136.181.00100000.00000000/19 (136.181.32.0)
04: 136.181.00110000.00000000/19 (136.181.48.0)
05: 136.181.01000000.00000000/19 (136.181.64.0)
06: 136.181.01010000.00000000/19 (136.181.80.0)
07: 136.181.01100000.00000000/19 (136.181.96.0)
08: 136.181.01110000.00000000/19 (136.181.112.0)
09: 136.181.10000000.00000000/19 (136.181.128.0)
10: 136.181.10010000.00000000/19 (136.181.144.0)
11: 136.181.10100000.00000000/19 (136.181.160.0)
12: 136.181.10110000.00000000/19 (136.181.176.0)
13: 136.181.11000000.00000000/19 (136.181.192.0)
14: 136.181.11010000.00000000/19 (136.181.208.0)
15: 136.181.11100000.00000000/19 (136.181.224.0)
16: 136.181.11110000.00000000/19 (136.181.240.0)
您需要11个子网,因此您需要4个子网位来创建16(2 ^ 4)个子网,其中有4094(2 ^ 12-2)个可用主机地址。
答案 1 :(得分:1)
As we require 11 subnets, we require 4 bits from the host side into the network side.
Number of bits on the network side is 20.
01: 136.181.00000000.00000000/20 (136.181.0.0)
02: 136.181.00010000.00000000/20 (136.181.16.0)
03: 136.181.00100000.00000000/20 (136.181.32.0)
04: 136.181.00110000.00000000/20 (136.181.48.0)
05: 136.181.01000000.00000000/20 (136.181.64.0)
06: 136.181.01010000.00000000/20 (136.181.80.0)
07: 136.181.01100000.00000000/20 (136.181.96.0)
08: 136.181.01110000.00000000/20 (136.181.112.0)
09: 136.181.10000000.00000000/20 (136.181.128.0)
10: 136.181.10010000.00000000/20 (136.181.144.0)
11: 136.181.10100000.00000000/20 (136.181.160.0)
Wasted IP Address = 5 * 2^12.