Datatypes › Internet

IPv4 routing prefix (subnet)

ID ipv4subnet

DatatypePersonal data (PII)identifier

Block of IPv4 addresses in CIDR notation (RFC 4632): a dotted-decimal address, a slash and a prefix length from 0 to 32, such as 192.0.2.0/24. Wikidata records the address blocks of organizations in property P3761. The regexp does not require the host bits to be zero.

Parent datatype
IP network prefix (IPv4 or IPv6 subnet) ipsubnet
Categories
Internet
Countries
Global (not tied to a country)
Languages
Common to most languages
Wikidata
P3761
Quality
100/100
Metacrafter rules
1 rule (0 by field name, 1 by value)
Supported by tools
metacrafter, pyWhat, validator.js

Regular expression

^(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}/(?:3[0-2]|[12]?[0-9])$

Python re syntax.

Test a value

Examples

ValueDescription
163.1.0.0/16 University of Oxford (example of Wikidata property P3761)
193.166.190.0/24 Helsinki University Hospital (example of Wikidata property P3761)
192.0.2.0/24 Documentation range TEST-NET-1 (RFC 5737)
192.0.2.0/33 invalid The prefix length is larger than 32
192.0.2.0 invalid No prefix length

Translations

LanguageNameDescription
RussianПрефикс сети IPv4 (подсеть)Блок IPv4-адресов в нотации CIDR, например 192.0.2.0/24.

Sources

Use this record