Skip to main content

convert_subnet: Convert Prefix Length To Subnet Mask & Vice-Versa

Project description

This Project Is Used To Convert Network Subnet Mask (For Example: 255.255.255.0) To Prefix Length/CIDR Suffix (For Example: 24) and Vice-Versa.

Installation

# pip install subnetinfo setuptools
# pip install convert_subnet

How To Use

# convert_subnet -s Subnet_Mask_Value
# convert_subnet -c Prefix_Length_Value

Example

Command Output
# convert_subnet -s 255.255.255.0 24
# convert_subnet -c 28 255.255.255.240

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

convert_subnet-3.1.2.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distributions

convert_subnet-3.1.2-py3.10.egg (4.0 kB view hashes)

Uploaded Source

convert_subnet-3.1.2-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

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