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.9.tar.gz (48.3 kB view details)

Uploaded Source

Built Distribution

netbox_ipcalculator-1.4.9-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netbox_ipcalculator-1.4.9.tar.gz
  • Upload date:
  • Size: 48.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for netbox_ipcalculator-1.4.9.tar.gz
Algorithm Hash digest
SHA256 241c9960e7e7ab4fd378586425b72d633719a1d3eb04bf608503554fc05a6033
MD5 ef7c6cf9bcb6a7679c32271cb88845f5
BLAKE2b-256 fce914995ab4a4b46f6921813b61e18f19c025ad6311df665443103643e4549b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_ipcalculator-1.4.9-py3-none-any.whl
Algorithm Hash digest
SHA256 612dd6967acbff97e12d39c992a302683c5bc847ceb7f16917d768793ff18826
MD5 4a330f46d7a89063d6513020fcbe3dd9
BLAKE2b-256 cc71cc209c4f468d3d29dbe9c5ad7881040c58780102a65880a1ef5961d223f5

See more details on using hashes here.

Supported by

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