Classless Inter-Domain Routing (CIDR)

Map Of Internet 1973

About

Classless Inter-Domain Routing (CIDR) is a notation that defines a subnet (ip net range)

Syntax

CIDR notation:

IP Address/prefix

where:

Example

The world

0.0.0.0/0

where:

  • 0.0.0.0 is the wildcard IP address that match any possible machines

Only one IP

x.x.x.x/32

where the routing prefix 32 means that there is only one host on this network.

Example:

143.176.206.82/32

How to find the CIDR of one IP ?

In a whois request, you can see the CIDR back.

Example:

whois 172.70.250.60
NetRange:       172.64.0.0 - 172.71.255.255
CIDR:           172.64.0.0/13

Operation

Range to Cidr

In Postgress from numeric IP with inet_merge

SELECT 
    inet_merge(
        '0.0.0.0'::inet + ip_from, 
        '0.0.0.0'::inet + ip_to
   ) 
from ip where ctry = 'NL';

1)





Discover More
Firewalld - How to filter your traffic based on an IP, port or Region?

This page shows you how to filter your traffic based on a IP with firewalld rich rules. where: --permanent means that the rule will be used even after reboot. --add-rich-rule specifies the rich...
Firewalld - Howto's

A list of howto based on firewalld from country to subnet filtering as well as disabling it in rescue mode
Gcp Sql Gerardnico Public Ip
MySql - Google Cloud Platform Database Creation and Connection

Article the connection to a MySQL GCP (Google Cloud Platform) database with: the IP configuration (Private or Public access) Ssl and a...
Mask Format
Network - (Network|Subnet) Mask

subnet mask is the second part of an Ip address. It's also called the mask of a subnet because all hosts on a subnet have the same network mask. The maximum size of the network is given by the number...
Map Of Internet 1973
Network - IP Network

An IP network is a set of computer communicating with the TCP/IP (internet protocol suite). A network may be composed of several division called subnet that are connected through routers. The network...
Map Of Internet 1973
Network - Subnet (Network Range)

A subnet is technically a division of an network by range of ip address A subnet is also known as: a net range (ie 172.64.0.0 - 172.71.255.255) or a CIDR (different notation - ie 172.64.0.0/13) ...
Source

This page is the source definition of traffic in a firewalld zone. The source value can be seen in the zone options Is an optional empty-element tag and can be used several times. It's used to...
Spf Dns Zone
What is the Sender Policy Framework (SPF) in Email?

The Sender Policy Framework (SPF) is a framework that determines if the sender of a email transaction is valid. It's part of the email authentication framework with DKIM where the goal is to: prevent...



Share this page:
Follow us:
Task Runner