< Back
Show-SubnetAddressAndCIDR
Post
NAME Show-SubnetAddressAndCIDR
SYNOPSIS
Show the subnet address for some IPv4 address.
SYNTAX
Show-SubnetAddressAndCIDR [-IPAddress] <IPAddress> [-NetMask] <IPAddress> [<CommonParameters>]
DESCRIPTION
This function receives an IPv4 address and its netmask to calculate what is its network address and CIDR prefix.
PARAMETERS
-IPAddress <IPAddress>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NetMask <IPAddress>
The network mask for the IPv4 address.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author: Bruno B Silva - brunobritorj@outlook.com
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Show-SubnetAddressAndCIDR -IPAddress 192.168.0.80 -NetMask 255.255.255.192
192.168.0.64/26
RELATED LINKS
https://github.com/brunobritorj
SYNOPSIS
Show the subnet address for some IPv4 address.
SYNTAX
Show-SubnetAddressAndCIDR [-IPAddress] <IPAddress> [-NetMask] <IPAddress> [<CommonParameters>]
DESCRIPTION
This function receives an IPv4 address and its netmask to calculate what is its network address and CIDR prefix.
PARAMETERS
-IPAddress <IPAddress>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NetMask <IPAddress>
The network mask for the IPv4 address.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author: Bruno B Silva - brunobritorj@outlook.com
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Show-SubnetAddressAndCIDR -IPAddress 192.168.0.80 -NetMask 255.255.255.192
192.168.0.64/26
RELATED LINKS
https://github.com/brunobritorj