Author | external help file | Module Guid | Module Name | online version | schema |
---|---|---|---|---|---|
Paul Boyer |
PSVaultNetworking-help.xml |
3bbe10b9-2f91-4569-9736-19d802abb414 |
PSVault-Networking |
2.0.0 |
Converts a subnet mask to a CIDR notation
Convert-SubnetMaskCIDR [[-SubnetMask] <String>] [<CommonParameters>]
Converts a subnet mask to a CIDR notation by first converting the subnet mask to a binary string. Then it summaries the binary string and converts the summaries to a CIDR notation.
Convert-SubnetMaskCIDR 255.255.255.0
Converts 255.255.255.0 to CIDR notation (/24)
The subnet mask to convert.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Paul Boyer Date: 07-07-2021
https://docs.netgate.com/pfsense/en/latest/network/cidr.html