Skip to main content

Netbox IP Calculator and Subnet Splitter

Project description

IP Calculator

The calculator is JavaScript based and refreshes as you type. It will calculate the

  • IP Address
  • Network mask
  • Wildcard
  • Network address
  • Broadcast address
  • First Host IP
  • Last Host IP Number of Hosts in the network

Both IPv4 and IPv6 are supported

The IP Calculator is added to the views of

  • Aggregate
  • Prefix
  • IP Address

IP Calculator image

In addition the plugin adds the ability to visualize and share the subnetting of a prefix into smaller subnets

IP Calculator Subnet divider image

Installation

IPCalculater Version NetBox version Remarks
v0.0-1.3 <=3.7
v1.4.x >=3.7 and <=4.2 compatible with v3.7 and upto v4.2
v1.4.10 >=4.3 compatible with v4.3 and higher

Enable the plugin

Update the /opt/netbox/local_requirements.txt with (referenced with a dash)

netbox-ipcalculator

Edit the /opt/netbox/netbox/netbox/configuration.py and add the plugin (referenced with an underscore)

PLUGINS = ['netbox_ipcalculator']

Activation Option 1 - Install and activite the plugin, with NetBox 'upgrade.sh' script (fast)

Install the plugin

/opt/netbox/venv/bin/python3 -m pip install netbox-ipcalculator

collect static files (local jquery copy)

/opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py collectstatic 

Activation Option 2 - Install the plugin and run the NetBox 'upgrade.sh' (most reliable)

or run the ./upgrade.sh script (takes longer, but assures it will work after upgrades)

cd /opt/netbox
./upgrade.sh

Restart NetBox

sudo systemctl restart netbox

Thanks to DavidC for the idea and the javascript code of the Prefix join/split https://github.com/davidc/subnets

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_ipcalculator-1.4.11.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_ipcalculator-1.4.11-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

File details

Details for the file netbox_ipcalculator-1.4.11.tar.gz.

File metadata

  • Download URL: netbox_ipcalculator-1.4.11.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for netbox_ipcalculator-1.4.11.tar.gz
Algorithm Hash digest
SHA256 82a8a14326c70174a1e10af8cca085021f7a11d4ae4e57ec7986e5ec7e05b06e
MD5 b289f9f4dab64335e50bfc9e041853a9
BLAKE2b-256 209567d8e23061a25299603bdd8d64521e69b8524a86e0a6d0ffa7ec13c13a22

See more details on using hashes here.

File details

Details for the file netbox_ipcalculator-1.4.11-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_ipcalculator-1.4.11-py3-none-any.whl
Algorithm Hash digest
SHA256 b693fff5416ff7ccf4f39d608e4dbb110a011ed558b68a1cb240fd65f3dbae27
MD5 48cfafe7150a63013db784131c2c43d5
BLAKE2b-256 9e46f0b493e70c5b2610476cee33e11317302e8853d43abef9f87befd71dfc41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page