您需要使用VariableLengthSubnetMasking。
1.从大多数用户的子网开始,然后逐步向下。
- 客户支持 41 + 4
- Web 和数据库服务 37 + 4
- 销售额 32 + 3
- 行政 11 + 1
- 支持服务器 8 + 1
客户支持:需要 45 台主机
2^6= 64-2 = 62 usable hosts.
214.56.78.SSNNNNNN -> 2 subnet bits and 6 host bits
Customer Support: 214.56.78.0/26 - 214.56.78.1 - 214.56.78.63
Web 和数据库服务:需要 41 台主机
2^6 = 64-2 = 62 usable hosts
214.56.78.SSNNNNNN -> 2 subnet bits and 6 host bits
Web and Database Services: 214.56.78.64/26 - 214.56.78.64 - 214.56.78.127
销售:需要 35 台主机
2^6 = 64-2 = 62 usable hosts
214.56.78.SSNNNNNN -> 2 subnet bits and 6 host bits
Sales: 214.56.78.128/26 - 214.56.78.128 - 214.56.78.191
管理:需要 12 台主机
2^4 = 16-2 = 14 usable hosts
214.56.78.SSSSNNNN -> 4 subnet bits and 4 host bits
Administration: 214.56.78.192/28 - 214.56.78.192 - 214.56.78.207
支持服务器:需要 9 台主机
2^4 = 16-2 = 14 usable hosts
214.56.78.SSSSNNNN -> 4 subnet bits and 4 host bits
Support Servers: 214.56.78.208/28 - 214.56.78.208 - 214.56.78.223
未使用的池:剩下的
2^5= 32 - 2 = 30 usable hosts
214.56.78.SSSNNNNN -> 3 subnet bits and 5 host bits
Unused Pool: 214.56.78.224/27 - 214.56.78.224 - 214.56.78.255
概括!
Customer Support: 214.56.78.0/26
Web and Database Services: 214.56.78.64/26
Sales: 214.56.78.128/26
Administration: 214.56.78.192/28
Support Servers: 214.56.78.208/28
Unused Pool: 214.56.78.224/27