cidr subnet
The cidr subnet
inspector allows you to represent a Classless Inter-Domain Routing (CIDR) subnet such as an IPv4 CIDR subnet "10.225.22.123/32" or an IPv6 CIDR subnet "C665:4BF6:F578:BA18:153D:F3AD:6270:52C6/128". In the edge case of a subnet mask that defines a subnet with a single address, the CIDR subnet will return the same CIDR value. An example of such a corner case would be the CIDR address "10.225.11.107/32".
Version | Platforms |
---|---|
11.0.4.0 | AIX, Debian, Mac, Raspbian, Red Hat, SUSE, Solaris, Ubuntu, Windows |
Creation
cidr subnet <string> : cidr subnet
cidr subnet of <network adapter interface> : cidr subnet
cidr subnet of <network adapter> : cidr subnet
cidr subnet of <network address list> : cidr subnet
cidr subnet of <network ip interface> : cidr subnet
wake on lan cidr subnet : cidr subnet
Properties
subnet mask of <cidr subnet> : ipv4or6 address
Casts
<cidr subnet> as string : string
Operators
<cidr subnet> = <cidr subnet> : boolean
<cidr subnet> = <string> : boolean
<cidr subnet> contains <cidr subnet> : boolean
<cidr subnet> contains <ipv4 address> : boolean
<cidr subnet> contains <ipv4or6 address> : boolean
<cidr subnet> contains <ipv6 address> : boolean
<string> = <cidr subnet> : boolean