Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 764 Bytes

Convert-Subnetmask.README.md

File metadata and controls

39 lines (25 loc) · 764 Bytes

Convert-Subnetmask

Convert a subnetmask to CIDR and vise versa.

Description

Convert a subnetmask like 255.255.255 to CIDR (/24) and vise versa.

Screenshot

Syntax

Convert-Subnetmask [[-CIDR] <Int32>] [<CommonParameters>]

Convert-Subnetmask [[-Mask] <IPAddress>] [<CommonParameters>]

Example 1

PS> Convert-Subnetmask -CIDR 24

Mask           CIDR
----           ----
255.255.255.0    24

Example 2

PS> Convert-Subnetmask -Mask 255.255.0.0

Mask        CIDR
----        ----
255.255.0.0   16