Skip to main content

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

Metadata

Release files for netbox-ipcalculator 1.4.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-ipcalculator 1.4.11
File Size Uploaded
netbox_ipcalculator-1.4.11.tar.gz 48.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for netbox-ipcalculator 1.4.11
File Interpreter ABI Platform
netbox_ipcalculator-1.4.11-py3-none-any.whl Python 3 none any Details

Total release size: 99.1 kB

Release files / netbox_ipcalculator-1.4.11.tar.gz

Download URL netbox_ipcalculator-1.4.11.tar.gz
Size 48.5 kB
Tags Source
SHA-256 checksum
How to use checksums
82a8a14326c70174a1e10af8cca085021f7a11d4ae4e57ec7986e5ec7e05b06e
BLAKE2b-256 checksum
How to use checksums
209567d8e23061a25299603bdd8d64521e69b8524a86e0a6d0ffa7ec13c13a22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / netbox_ipcalculator-1.4.11-py3-none-any.whl

Download URL netbox_ipcalculator-1.4.11-py3-none-any.whl
Size 50.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b693fff5416ff7ccf4f39d608e4dbb110a011ed558b68a1cb240fd65f3dbae27
BLAKE2b-256 checksum
How to use checksums
9e46f0b493e70c5b2610476cee33e11317302e8853d43abef9f87befd71dfc41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

1.4.11 This release

2 release files

1.4.10

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.0

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page