| | 57 | |
| | 58 | = calculate netmask = |
| | 59 | * ipcount <= perlのNet::IPモジュールに含まれる |
| | 60 | * aptitude install libnet-ip-perl |
| | 61 | * /usr/share/doc/libnet-ip-perl/examples/ipcount |
| | 62 | {{{ |
| | 63 | Usage: |
| | 64 | ipcount [-r] [-d <prefix>] address |
| | 65 | |
| | 66 | -r: Print Reverse Ranges |
| | 67 | -d <prefix>: Cut down the original prefix in several prefixes |
| | 68 | |
| | 69 | The address range can be one of: |
| | 70 | |
| | 71 | ipcount IP + size |
| | 72 | ipcount IP1 - IP2 |
| | 73 | ipcount IP/len |
| | 74 | }}} |
| | 75 | * via [http://linux.mini13i.gotdns.org/?tool%2Fnetmask%B7%D7%BB%BB tool/netmask計算 - Linux Tips] |