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 Netbox <=3.7
v1.4.x Netbox >=3.7 compatible with v3 and v4

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.10.tar.gz (48.4 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.10-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for netbox_ipcalculator-1.4.10.tar.gz
Algorithm Hash digest
SHA256 f4ec33d8aa77773d7c6a9a06cee6e1e45abebfe9c42c017294ccfdaa4f70c13b
MD5 a344a4c1dfa14bc62a6c77cc9045b522
BLAKE2b-256 926b0204fc14f4048b418c3400dff2ab76d7067542c3e54f276c233056e5f4f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_ipcalculator-1.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 1945c380ca1e7ed7150b8bea62e917aa4b086603dd026e3c4ed74334786fcdae
MD5 f3ff7aa63c44f2c92059176e6180b573
BLAKE2b-256 aea398aa37305cea98bdde5915cda2ae8255cb8303e5791b52401d87845cc107

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