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
In addition the plugin adds the ability to visualize and share the subnetting of a prefix into smaller subnets
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
Built Distribution
Hashes for netbox_ipcalculator-1.4.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 012a9687f99d747800b341776258a85e89f5dd19f0b8e375fab2594dcee3c3d2 |
|
MD5 | a160f5a645404bb6dc03b6486330724c |
|
BLAKE2b-256 | aecafd75f2f5be1ecbc56b418294b40511ffa7e0e7a15e244414bb61d8ef3b03 |
Hashes for netbox_ipcalculator-1.4.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c0db46a0ebb693b45ca61595ee53c301a3dd7d9f4a0ca85d32283d56e98ef0 |
|
MD5 | 1b630e2e2d05e01370887b99736a8bcc |
|
BLAKE2b-256 | 48eb53e593ff0de77c938d59c211cd09634667c41aac24b9a3b53630a65335c0 |