项目作者: kailashjoshi

项目描述 :
Ip Calculator (Python)
高级语言: Python
项目地址: git://github.com/kailashjoshi/Ipcalculator.git
创建时间: 2015-09-20T07:14:54Z
项目社区:https://github.com/kailashjoshi/Ipcalculator

开源协议:Apache License 2.0

下载


IP Calculator

Ip Subnet Calculator (IP address, subnet mask, Network ID, host address ranges, broadcast calculation)

Usage 1:

$python ip_calculator.py 192.168.0.1

Result

  1. Calculating the IP range of 192.168.0.1/24
  2. ==================================
  3. Netmask 255.255.255.0
  4. Network ID 192.168.0.0
  5. Subnet Broadcast address 192.168.0.255
  6. Host range 192.168.0.1 - 192.168.0.254
  7. Max number of hosts 254

Usage 2:

$python ip_calculator.py 192.168.0.1/12

Result

  1. Calculating the IP range of 192.168.0.1/12
  2. ==================================
  3. Netmask 255.240.0.0
  4. Network ID 192.160.0.0
  5. Subnet Broadcast address 192.175.255.255
  6. Host range 192.160.0.1 - 192.175.255.254
  7. Max number of hosts 1048574